.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;
  }
}

/* v174: dismissed promo becomes a persistent floating coupon that can reopen the offer. */
.bm-promo-coupon {
  position: fixed;
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  z-index: 96;
  display: grid;
  grid-template-columns: 42px minmax(0, auto) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  max-width: min(92vw, 330px);
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(16, 185, 129, .36);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(6, 41, 62, .98), rgba(15, 118, 110, .98));
  color: #fff;
  box-shadow: 0 16px 38px rgba(6, 41, 62, .28);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  animation: bmPromoCouponIn .24s ease-out both;
}

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

.bm-promo-coupon::before,
.bm-promo-coupon::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--bm-promo-page-bg, #f8fafc);
  transform: translateY(-50%);
}

.bm-promo-coupon::before { left: -6px; }
.bm-promo-coupon::after { right: -6px; }

.bm-promo-coupon:hover,
.bm-promo-coupon:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px rgba(6, 41, 62, .34);
}

.bm-promo-coupon:focus-visible {
  outline: 3px solid rgba(16, 185, 129, .34);
  outline-offset: 3px;
}

.bm-promo-coupon__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbbf24, #f97316);
  color: #fff;
  font-size: 21px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}

.bm-promo-coupon__copy {
  min-width: 0;
  display: grid;
  line-height: 1.05;
}

.bm-promo-coupon__copy strong {
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
}

.bm-promo-coupon__copy small {
  margin-top: 4px;
  color: rgba(255,255,255,.78);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.bm-promo-coupon__code {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 10px;
  border-left: 1px dashed rgba(255,255,255,.35);
  color: #fef3c7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  white-space: nowrap;
}

html[data-theme="dark"] .bm-promo-coupon::before,
html[data-theme="dark"] .bm-promo-coupon::after {
  background: #0f172a;
}

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

@media (max-width: 640px) {
  .bm-promo-coupon {
    right: max(10px, env(safe-area-inset-right, 0px));
    bottom: max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
    grid-template-columns: 38px minmax(0, auto) auto;
    gap: 8px;
    min-height: 52px;
    max-width: calc(100vw - 20px);
    padding: 7px 10px 7px 8px;
    border-radius: 16px;
  }

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

  .bm-promo-coupon__copy strong { font-size: 14px; }
  .bm-promo-coupon__copy small { font-size: 9px; }
  .bm-promo-coupon__code { max-width: 72px; font-size: 10px; padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .bm-promo-coupon { 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, use a compact edge coupon so it never covers the primary submit CTA. */
@media (min-width: 641px) {
  .bm-promo-coupon--draw {
    top: 50%;
    right: 10px;
    bottom: auto;
    width: 116px;
    min-height: 54px;
    max-width: 116px;
    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: 14px;
  }

  .bm-promo-coupon--draw .bm-promo-coupon__copy small,
  .bm-promo-coupon--draw .bm-promo-coupon__code {
    display: none;
  }
}

@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;
  }
}
