/* ═══════════════════════════════════════════════════════
   STICKY OFFER BAR (mobile only)

   The width rule is enforced here, not only in script: the
   bar exists only up to 768px, so a broken script can never
   put it in front of a desktop visitor. The exit-intent
   panel that shared this file was removed 2026-08-29.
═══════════════════════════════════════════════════════ */

.sticky-offer {
  --fo-card: rgba(16, 14, 44, 0.97);
  --fo-border: rgba(139, 127, 217, 0.34);
  --fo-text-1: #FFFFFF;
  --fo-text-2: #D8D5F0;
  --fo-text-3: #A8A5C8;
  --fo-gold: #FFD93D;
  --fo-gold-2: #F9C846;
  font-family: var(--font-secondary, 'Inter', sans-serif);
}

.sticky-offer[hidden] {
  display: none;
}

/* ── Sticky bar: mobile only ───────────────────────── */

.sticky-offer {
  display: none;
}

@media (max-width: 768px) {
  .sticky-offer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    background: var(--fo-card);
    border-top: 1px solid var(--fo-border);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.42);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform 0.28s ease;
  }

  .sticky-offer[data-shown] {
    transform: translateY(0);
  }

  .sticky-offer-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 560px;
    margin: 0 auto;
  }

  .sticky-offer-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .sticky-offer-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fo-text-1);
    line-height: 1.25;
  }

  .sticky-offer-price {
    font-size: 12px;
    color: var(--fo-text-3);
    line-height: 1.2;
  }

  .sticky-offer-button {
    flex: 0 0 auto;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--fo-gold) 0%, var(--fo-gold-2) 100%);
    color: #1A1608;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .sticky-offer-close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--fo-border);
    border-radius: 8px;
    color: var(--fo-text-3);
    cursor: pointer;
    padding: 0;
  }

  .sticky-offer-close svg {
    width: 12px;
    height: 12px;
  }

  /* Reserve the bar's height so it never sits over the footer or the
     last line of copy. The script sets the value it measured. */
  body.has-sticky-offer {
    padding-bottom: var(--sticky-offer-height, 68px);
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .sticky-offer {
    transition: none;
  }
}
