.share-drawer {
  position: fixed;
  left: 16px;
  bottom: 0;
  z-index: 28;
  width: min(340px, calc(100vw - 32px));
  height: 220px;
  pointer-events: none;
}

.share-drawer__card {
  position: absolute;
  left: 0;
  bottom: 180px;
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 24px 24px 20px 20px;
  background: var(--panel-strong, rgba(35, 42, 52, 0.94));
  box-shadow: var(--shadow, 0 24px 56px rgba(0, 0, 0, 0.24));
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.share-drawer.is-open .share-drawer__card {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 1;
}

.share-drawer__bite {
  position: relative;
  width: 100%;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 185, 93, 0.2), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
}

.share-drawer__image {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 100%;
  height: 140px;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center bottom;
  display: block;
  user-select: none;
  pointer-events: none;
}

.share-drawer__content {
  display: grid;
  gap: 8px;
  padding: 0 2px 2px;
}

.share-drawer__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green, #34a593);
}

.share-drawer__title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.share-drawer__text {
  margin: 0;
  color: var(--muted, #b8b0a7);
  font-size: 0.88rem;
  line-height: 1.38;
}

.share-drawer__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.share-drawer__primary,
.share-drawer__ghost {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.share-drawer__primary:hover,
.share-drawer__ghost:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.share-drawer__primary:active,
.share-drawer__ghost:active {
  transform: translateY(1px) scale(0.985);
}

.share-drawer__primary {
  flex: 1 1 0;
  border: none;
  color: #fff;
  background: linear-gradient(135deg, var(--accent, #ff8d54), var(--accent-2, #ffc56f));
  box-shadow: 0 10px 24px rgba(227, 109, 51, 0.18);
}

.share-drawer__ghost {
  flex: 0 0 auto;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  background: var(--chip-bg, rgba(255, 255, 255, 0.06));
  color: var(--ink, #f6f0e7);
}

.share-drawer__peek {
  position: absolute;
  left: 0;
  bottom: -13px;
  width: 138px;
  height: 92px;
  z-index: 2;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.share-drawer__peek:hover {
  transform: translateY(-3px);
  filter: brightness(1.03);
}

.share-drawer__peek:active {
  transform: translateY(0) scale(0.985);
}

.share-drawer__peek::before {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 28px;
  border-radius: 999px 999px 0 0;
  background: var(--panel-strong, rgba(35, 42, 52, 0.94));
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-bottom: none;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.12);
}

.share-drawer__peek-image {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 158px;
  height: 158px;
  transform: translateX(-50%);
  object-fit: cover;
  object-position: center 82%;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
}

@media (max-width: 760px) {
  .share-drawer {
    left: 10px;
    width: min(300px, calc(100vw - 20px));
  }

  .share-drawer__card {
    bottom: 102px;
    padding: 14px;
  }

  .share-drawer__bite {
    height: 110px;
  }

  .share-drawer__image {
    height: 120px;
  }

  .share-drawer__peek {
    width: 116px;
    height: 80px;
  }

  .share-drawer__peek-image {
    width: 136px;
    height: 136px;
    bottom: -12px;
  }
}
