.bm-promo-spotlight {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 28px);
}

.bm-promo-spotlight.is-open {
  display: flex;
}

.bm-promo-spotlight__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bm-promo-spotlight__dialog {
  position: relative;
  width: min(100%, 42rem);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(251, 191, 36, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98));
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.3);
  padding: clamp(20px, 4vw, 30px);
  overflow: hidden;
}

.bm-promo-spotlight__dialog::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #10b981, #14b8a6, #f59e0b);
}

.bm-promo-spotlight__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.bm-promo-spotlight__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bm-promo-spotlight__eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b, #f97316);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.bm-promo-spotlight__title {
  margin: 16px 0 10px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: #061522;
}

.bm-promo-spotlight__lead {
  margin: 0;
  color: #475569;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.7;
}

.bm-promo-spotlight__code-band {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #06293e 0%, #0f766e 100%);
  color: #fff;
}

.bm-promo-spotlight__code-label {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.82;
}

.bm-promo-spotlight__code-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.bm-promo-spotlight__code-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 13px;
}

.bm-promo-spotlight__save-chip {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  text-align: center;
}

.bm-promo-spotlight__save-number {
  display: block;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-weight: 950;
  line-height: 1;
}

.bm-promo-spotlight__save-caption {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.bm-promo-spotlight__facts {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bm-promo-spotlight__fact {
  border-radius: 20px;
  border: 1px solid rgba(16, 185, 129, 0.12);
  background: rgba(255,255,255,0.86);
  padding: 14px 16px;
}

.bm-promo-spotlight__fact-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0f766e;
}

.bm-promo-spotlight__fact-value {
  margin-top: 8px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
  color: #0f172a;
}

.bm-promo-spotlight__offpeak {
  margin-top: 14px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: linear-gradient(180deg, rgba(254, 252, 232, 0.95), rgba(255, 251, 235, 0.95));
  padding: 14px 16px;
  color: #92400e;
}

.bm-promo-spotlight__offpeak strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: #7c2d12;
}

.bm-promo-spotlight__offpeak span {
  display: block;
  margin-top: 4px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bm-promo-spotlight__footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bm-promo-spotlight__primary,
.bm-promo-spotlight__secondary {
  border-radius: 16px;
  font-weight: 900;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.bm-promo-spotlight__primary {
  flex: 1 1 auto;
  padding: 14px 18px;
  border: 0;
  background: linear-gradient(135deg, #10b981 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.22);
}

.bm-promo-spotlight__primary:hover,
.bm-promo-spotlight__primary:focus-visible {
  transform: translateY(-1px);
}

.bm-promo-spotlight__secondary {
  flex: 0 0 auto;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(255,255,255,0.88);
  color: #334155;
}

.bm-promo-spotlight__primary:focus-visible,
.bm-promo-spotlight__secondary:focus-visible,
.bm-promo-spotlight__close:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

body.bm-promo-spotlight-open {
  overflow: hidden;
}

html[data-theme="dark"] .bm-promo-spotlight__dialog {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.16), transparent 30%),
    radial-gradient(circle at bottom left, rgba(250, 204, 21, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  border-color: rgba(71, 85, 105, 0.65);
}

html[data-theme="dark"] .bm-promo-spotlight__close,
html[data-theme="dark"] .bm-promo-spotlight__secondary,
html[data-theme="dark"] .bm-promo-spotlight__fact {
  background: rgba(15, 23, 42, 0.84);
  color: #e2e8f0;
  border-color: rgba(71, 85, 105, 0.55);
}

html[data-theme="dark"] .bm-promo-spotlight__title,
html[data-theme="dark"] .bm-promo-spotlight__fact-value {
  color: #f8fafc;
}

html[data-theme="dark"] .bm-promo-spotlight__lead {
  color: #cbd5e1;
}

html[data-theme="dark"] .bm-promo-spotlight__eyebrow {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
}

html[data-theme="dark"] .bm-promo-spotlight__fact-label {
  color: #5eead4;
}

html[data-theme="dark"] .bm-promo-spotlight__offpeak {
  background: linear-gradient(180deg, rgba(69, 26, 3, 0.5), rgba(51, 24, 0, 0.58));
  border-color: rgba(245, 158, 11, 0.3);
  color: #fde68a;
}

html[data-theme="dark"] .bm-promo-spotlight__offpeak strong {
  color: #fef3c7;
}

@media (max-width: 640px) {
  .bm-promo-spotlight {
    align-items: flex-end;
    padding: 10px;
  }

  .bm-promo-spotlight__dialog {
    width: 100%;
    border-radius: 24px 24px 18px 18px;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .bm-promo-spotlight__code-band,
  .bm-promo-spotlight__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .bm-promo-spotlight__save-chip {
    min-width: 0;
    width: 100%;
  }

  .bm-promo-spotlight__facts {
    grid-template-columns: 1fr;
  }

  .bm-promo-spotlight__primary,
  .bm-promo-spotlight__secondary {
    width: 100%;
    text-align: center;
  }
}

/* Collapsed promotion shares the support control geometry, but keeps a warmer offer accent. */
.bm-promo-coupon {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 10px));
  z-index: 96;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 36px max-content;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: calc(100vw - 32px);
  min-height: 50px;
  padding: 6px 13px 6px 6px;
  overflow: hidden;
  border: 1px solid rgba(251, 191, 36, .52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(251, 191, 36, .16), transparent 40%),
    linear-gradient(135deg, #0b5f59 0%, #0f766e 58%, #0c6c64 100%);
  color: #fff;
  box-shadow:
    0 13px 31px rgba(7, 43, 48, .23),
    0 3px 10px rgba(7, 43, 48, .14),
    0 0 0 1px rgba(245, 158, 11, .06);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  animation: bmPromoCouponIn .24s ease-out both, bmPromoCouponGlow 5.5s 1.4s ease-in-out infinite;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.bm-promo-coupon[hidden] {
  display: none !important;
}

.bm-promo-coupon::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -35%;
  width: 34%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,.2) 48%, transparent 100%);
  transform: translateX(-180%) rotate(8deg);
  animation: bmPromoCouponShine 5.5s 1.8s ease-in-out infinite;
}

.bm-promo-coupon::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #fde68a;
  box-shadow: 0 0 0 3px rgba(251,191,36,.10), 0 0 12px rgba(251,191,36,.55);
  pointer-events: none;
}

.bm-promo-coupon:hover,
.bm-promo-coupon:focus-visible {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(253, 224, 71, .72);
  box-shadow:
    0 17px 36px rgba(7, 43, 48, .27),
    0 4px 12px rgba(7, 43, 48, .16),
    0 0 22px rgba(245, 158, 11, .14);
}

.bm-promo-coupon:focus-visible {
  outline: 3px solid rgba(245, 158, 11, .20);
  outline-offset: 2px;
}

.bm-promo-coupon__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(253, 224, 71, .28);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(251,191,36,.22), rgba(245,158,11,.08));
  color: #fde68a;
  font-size: 19px;
  font-weight: 950;
  text-shadow: 0 1px 9px rgba(245,158,11,.28);
}

.bm-promo-coupon__copy {
  min-width: 0;
  display: block;
  line-height: 1.1;
}

.bm-promo-coupon__copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,.12);
}

/* Secondary coupon details remain available in the expanded offer. */
.bm-promo-coupon__copy small,
.bm-promo-coupon__code {
  display: none;
}

@keyframes bmPromoCouponIn {
  from { opacity: 0; transform: translateY(9px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes bmPromoCouponGlow {
  0%, 84%, 100% { box-shadow: 0 13px 31px rgba(7,43,48,.23), 0 3px 10px rgba(7,43,48,.14), 0 0 0 rgba(245,158,11,0); }
  91% { box-shadow: 0 14px 33px rgba(7,43,48,.24), 0 3px 10px rgba(7,43,48,.14), 0 0 22px rgba(245,158,11,.18); }
}

@keyframes bmPromoCouponShine {
  0%, 82% { transform: translateX(-180%) rotate(8deg); opacity: 0; }
  86% { opacity: 1; }
  94%, 100% { transform: translateX(520%) rotate(8deg); opacity: 0; }
}

@media (max-width: 640px) {
  .bm-promo-coupon {
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    grid-template-columns: 34px max-content;
    gap: 8px;
    width: max-content;
    max-width: calc(100vw - 24px);
    min-height: 46px;
    padding: 6px 11px 6px 6px;
    border-radius: 15px;
  }

  .bm-promo-coupon__icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 17px;
  }

  .bm-promo-coupon__copy strong {
    font-size: 13.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bm-promo-coupon,
  .bm-promo-coupon::before { animation: none; transition: none; }
}

/* v178: keep the promo dialog inside the real mobile viewport and let its body scroll. */
@media (max-width: 640px) {
  .bm-promo-spotlight {
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding:
      max(8px, env(safe-area-inset-top, 0px))
      10px
      max(8px, env(safe-area-inset-bottom, 0px));
  }

  .bm-promo-spotlight__dialog {
    flex: 0 0 auto;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: max(18px, calc(14px + env(safe-area-inset-bottom, 0px)));
  }


  .bm-promo-spotlight__title {
    margin-top: 12px;
    font-size: clamp(1.6rem, 7.4vw, 2rem);
  }

  .bm-promo-spotlight__lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .bm-promo-spotlight__code-band,
  .bm-promo-spotlight__facts,
  .bm-promo-spotlight__footer {
    margin-top: 14px;
  }

  .bm-promo-spotlight__fact,
  .bm-promo-spotlight__offpeak {
    padding: 12px 14px;
  }

  .bm-promo-spotlight__primary,
  .bm-promo-spotlight__secondary {
    padding: 13px 16px;
  }
}

/* On the drawing page desktop, keep the same visual language in a compact edge slot. */
@media (min-width: 641px) {
  .bm-promo-coupon--draw {
    top: 50%;
    right: 10px;
    bottom: auto;
    width: 118px;
    min-height: 54px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
    padding: 7px 9px;
    border-radius: 17px;
    animation: none;
    transform: translateY(-50%);
  }

  .bm-promo-coupon--draw:hover,
  .bm-promo-coupon--draw:focus-visible {
    transform: translateY(calc(-50% - 2px));
  }

  .bm-promo-coupon--draw .bm-promo-coupon__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .bm-promo-coupon--draw .bm-promo-coupon__copy strong {
    font-size: 13.5px;
  }
}

@supports not (height: 100dvh) {
  @media (max-width: 640px) {
    .bm-promo-spotlight__dialog {
      max-height: calc(100vh - 16px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
  }
}

/* Common phone widths can keep the key promo and actions on one row to avoid an unnecessarily tall sheet. */
@media (min-width: 360px) and (max-width: 640px) {
  .bm-promo-spotlight__code-band {
    flex-direction: row;
    align-items: stretch;
  }

  .bm-promo-spotlight__save-chip {
    width: auto;
    min-width: 104px;
    padding-inline: 12px;
  }

  .bm-promo-spotlight__footer {
    flex-direction: row;
    align-items: stretch;
  }

  .bm-promo-spotlight__primary {
    width: auto;
    min-width: 0;
  }

  .bm-promo-spotlight__secondary {
    width: auto;
    flex: 0 0 auto;
  }
}
