/* Nextwave Black Friday Gift Card Popup — scoped styles */
.nw-bf-gift {
  --nw-bf-red: #9b1c2e;
  --nw-bf-red-deep: #6f1020;
  --nw-bf-green: #1f4d3a;
  --nw-bf-green-soft: #2f6b52;
  --nw-bf-gold: #c9a227;
  --nw-bf-gold-soft: #e6d08a;
  --nw-bf-cream: #fffaf3;
  --nw-bf-ink: #1c1714;
  --nw-bf-muted: #5c534c;
  --nw-bf-overlay: rgba(18, 10, 8, 0.72);
  --nw-bf-radius: 18px;
  --nw-bf-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --nw-bf-font: Georgia, "Times New Roman", serif;
  --nw-bf-sans: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  position: fixed;
  inset: 0;
  /* Above CookieYes / common chat widgets while the promo is open. */
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.nw-bf-gift[hidden] {
  display: none !important;
}

.nw-bf-gift *,
.nw-bf-gift *::before,
.nw-bf-gift *::after {
  box-sizing: border-box;
}

.nw-bf-gift--cafe {
  --nw-bf-red: #a41e32;
  --nw-bf-green: #234f3d;
  --nw-bf-sans: Graphik, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nw-bf-gift__backdrop {
  position: absolute;
  inset: 0;
  background: var(--nw-bf-overlay);
}

.nw-bf-gift__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 760px);
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 252, 248, 0.98)),
    var(--nw-bf-cream);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--nw-bf-radius);
  box-shadow: var(--nw-bf-shadow);
  color: var(--nw-bf-ink);
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.nw-bf-gift__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(28, 23, 20, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: #1c1714;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.nw-bf-gift__close:hover,
.nw-bf-gift__close:focus-visible {
  background: #fff;
  outline: 2px solid var(--nw-bf-gold);
  outline-offset: 2px;
}

.nw-bf-gift__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  min-height: 100%;
}

.nw-bf-gift__media {
  position: relative;
  min-height: 100%;
  background: var(--nw-bf-green);
  overflow: hidden;
}

.nw-bf-gift__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 77, 58, 0.05), rgba(111, 16, 32, 0.28));
  pointer-events: none;
}

.nw-bf-gift__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nw-bf-gift__content {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nw-bf-gift__eyebrow {
  margin: 0;
  font-family: var(--nw-bf-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nw-bf-red);
}

.nw-bf-gift__headline {
  margin: 0;
  font-family: var(--nw-bf-font);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: var(--nw-bf-red-deep);
  font-weight: 700;
}

.nw-bf-gift__support {
  margin: 0;
  font-family: var(--nw-bf-sans);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--nw-bf-muted);
}

.nw-bf-gift__tiers {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.nw-bf-gift__tier {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(31, 77, 58, 0.06);
  border: 1px solid rgba(31, 77, 58, 0.1);
  font-family: var(--nw-bf-sans);
  font-size: 0.9rem;
}

.nw-bf-gift__tier-buy {
  font-weight: 600;
  color: var(--nw-bf-ink);
}

.nw-bf-gift__tier-arrow {
  color: var(--nw-bf-gold);
  font-weight: 700;
}

.nw-bf-gift__tier-free {
  text-align: right;
  font-weight: 700;
  color: var(--nw-bf-green);
}

.nw-bf-gift__tier--featured {
  background: linear-gradient(135deg, rgba(155, 28, 46, 0.1), rgba(201, 162, 39, 0.22));
  border: 1px solid rgba(201, 162, 39, 0.65);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 1rem;
}

.nw-bf-gift__tier--featured .nw-bf-gift__tier-free {
  color: var(--nw-bf-red-deep);
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.nw-bf-gift__tier-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nw-bf-red);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
}

.nw-bf-gift__note {
  margin: 2px 0 0;
  font-family: var(--nw-bf-sans);
  font-size: 0.78rem;
  color: var(--nw-bf-muted);
}

.nw-bf-gift__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nw-bf-red), var(--nw-bf-red-deep));
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--nw-bf-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 22px rgba(111, 16, 32, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nw-bf-gift__cta:hover,
.nw-bf-gift__cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(111, 16, 32, 0.34);
  outline: 2px solid var(--nw-bf-gold);
  outline-offset: 2px;
}

.nw-bf-gift__urgency {
  margin: 0;
  font-family: var(--nw-bf-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nw-bf-green);
}

body.nw-bf-gift-lock {
  overflow: hidden !important;
  touch-action: none;
}

@media (max-width: 760px) {
  .nw-bf-gift {
    padding: 10px;
    align-items: flex-end;
  }

  .nw-bf-gift__dialog {
    width: 100%;
    max-height: min(94vh, 820px);
    border-radius: 16px 16px 12px 12px;
  }

  .nw-bf-gift__layout {
    grid-template-columns: 1fr;
  }

  .nw-bf-gift__media {
    height: 120px;
    min-height: 120px;
  }

  .nw-bf-gift__content {
    padding: 16px 16px 20px;
    gap: 8px;
  }

  .nw-bf-gift__headline {
    font-size: 1.4rem;
    padding-right: 36px;
  }

  .nw-bf-gift__support {
    font-size: 0.88rem;
  }

  .nw-bf-gift__tier {
    grid-template-columns: 1fr auto 1fr;
    font-size: 0.84rem;
    padding: 7px 10px;
  }

  .nw-bf-gift__tier--featured {
    font-size: 0.92rem;
  }

  .nw-bf-gift__cta {
    width: 100%;
    align-self: stretch;
  }

  .nw-bf-gift__close {
    top: 8px;
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nw-bf-gift__cta {
    transition: none;
  }

  .nw-bf-gift__cta:hover,
  .nw-bf-gift__cta:focus-visible {
    transform: none;
  }
}
