/* Gift Reveal Kit slide-in. Holiday 2026 only (gift-nudge.js stops showing it after December 30, 2026).
   Non-blocking: no backdrop, no focus trap, page stays fully usable behind it.
   Text pairings are the verified ones: Aubergine on Moonlight (light), Moonlight on Aubergine (dark). */

.gift-nudge[hidden] { display: none; }

.gift-nudge {
  position: fixed; z-index: 50;
  right: 1.25rem; bottom: 1.25rem;
  width: min(24rem, calc(100% - 2.5rem));
  max-height: calc(100vh - 2.5rem); overflow-y: auto;
  background: var(--moonlight); color: var(--aubergine);
  border: 1px solid var(--card-border); border-left: 6px solid var(--amethyst);
  border-radius: 10px; box-shadow: var(--shadow-2);
  padding: 1.5rem;
  --focus: var(--amethyst);
}
[data-theme="dark"] .gift-nudge {
  background: var(--aubergine); color: var(--moonlight);
  border-color: rgba(217, 204, 236, .5); border-left-color: var(--lilac);
  --focus: var(--lilac);
}

.gift-nudge__eyebrow {
  font-family: var(--font-display); font-weight: 600;
  font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amethyst); margin: 0 3rem .5rem 0;
}
[data-theme="dark"] .gift-nudge__eyebrow { color: var(--lilac); }

.gift-nudge__title {
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600;
  font-size: 1.5rem; line-height: 1.2; letter-spacing: 0;
  color: inherit; margin: 0 2.5rem .75rem 0; text-wrap: balance;
}
.gift-nudge p:not(.gift-nudge__eyebrow) { font-size: 1rem; line-height: 1.6; margin: 0 0 1.25rem; }
.gift-nudge .btn { padding: .875rem 1.5rem; font-size: 1rem; }

.gift-nudge__close {
  position: absolute; top: .5rem; right: .5rem;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; color: inherit; border: 0; border-radius: 50%; cursor: pointer;
}
.gift-nudge__close:hover { background: var(--card-bg); }
.gift-nudge__close svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .gift-nudge { transition: opacity 180ms ease, transform 180ms ease; }
  .gift-nudge:not(.is-in) { opacity: 0; transform: translateY(1rem); }
}

/* Phones and short screens (including 200% zoom on a laptop): keep the card compact and full width.
   The eyebrow repeats what the heading says, so it drops here. */
@media (max-width: 30em), (max-height: 32em) {
  .gift-nudge { left: .75rem; right: .75rem; bottom: .75rem; width: auto; padding: 1rem 1rem 1.125rem; }
  .gift-nudge__eyebrow { display: none; }
  .gift-nudge__title { font-size: 1.25rem; margin-bottom: .5rem; }
  .gift-nudge p:not(.gift-nudge__eyebrow) { margin-bottom: .875rem; }
  .gift-nudge .btn { padding: .75rem 1.25rem; }
  .gift-nudge__close { top: .25rem; right: .25rem; }
}

@media print { .gift-nudge { display: none !important; } }
