/* Boston Recharge Black Friday popup (homepage only). Remove after 2026-11-30 along with js/bf-popup.js. */
.bfp {
  --bfp-navy: #0d2c4d;
  --bfp-navy-2: #0b4d73;
  --bfp-ink: #123a68;
  --bfp-ray: #c9d6e1;
  --bfp-sky: #b6c8d6;
  position: fixed; inset: 0; z-index: 10050;
  background: #fff;
  opacity: 0; transition: opacity .45s ease;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}
.bfp.is-open { opacity: 1; }
.bfp.is-closing { opacity: 0; pointer-events: none; }

.bfp-panel:focus { outline: none; }
.bfp-panel {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: radial-gradient(ellipse at 50% 35%, #fff 0%, #fff 40%, #eaf0f5 100%);
  color: var(--bfp-ink);
  transform: translateY(3%); opacity: 0;
  transition: transform .8s cubic-bezier(.2,.9,.25,1), opacity .5s ease;
}
.bfp.is-open .bfp-panel { transform: none; opacity: 1; }

/* sunburst rays behind the content */
.bfp-rays {
  position: absolute; left: 50%; top: 42%; width: max(160vw, 160vh); aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, var(--bfp-ray) 0deg 4deg, transparent 4deg 18deg);
  -webkit-mask: radial-gradient(circle, transparent 0 17%, #000 18% 46%, transparent 62%);
          mask: radial-gradient(circle, transparent 0 17%, #000 18% 46%, transparent 62%);
  opacity: .55; pointer-events: none;
  animation: bfp-spin 60s linear infinite;
}
@keyframes bfp-spin { to { rotate: 360deg; } }

.bfp-scroll {
  position: relative; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 44px) max(20px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 28px) max(20px, env(safe-area-inset-left, 0px));
}
.bfp-inner { width: 100%; max-width: 640px; margin: auto; }
.bfp-close {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 14px); right: max(14px, env(safe-area-inset-right, 0px)); z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(13,44,77,.08); color: var(--bfp-navy); font-size: 22px; line-height: 1;
  display: grid; place-items: center;
}
.bfp-close:hover { background: rgba(13,44,77,.16); }
.bfp-close:focus-visible, .bfp-btn:focus-visible { outline: 3px solid #0098D0; outline-offset: 3px; }

.bfp-logo { display: block; width: min(220px, 60%); height: auto; margin: 0 auto 10px; }
.bfp-title {
  margin: 0 0 18px; text-align: center;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: .95; letter-spacing: -.01em;
  color: var(--bfp-ink);
}
.bfp-title span { display: block; }

.bfp-deals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bfp-deal {
  display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 0;
  background: var(--bfp-navy); color: #fff; border-radius: 10px;
  padding: 12px 14px 12px 8px;
  box-shadow: 0 6px 16px rgba(13,44,77,.22);
}
.bfp-ico { display: grid; place-items: center; border-right: 2px solid rgba(255,255,255,.85); height: 100%; padding-right: 8px; }
.bfp-ico svg { width: 30px; height: 30px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bfp-copy { padding-left: 14px; min-width: 0; }
.bfp-deal h3 {
  margin: 0; color: #fff; font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(.98rem, 3.6vw, 1.18rem); line-height: 1.15; letter-spacing: 0;
}
.bfp-deal p {
  margin: 3px 0 0; color: #dbe6ef; font-weight: 700; text-transform: uppercase;
  font-size: clamp(.66rem, 2.5vw, .74rem); letter-spacing: .05em; line-height: 1.35;
}

.bfp-actions { position: relative; padding-top: 22px; }
.bfp-actions-inner { display: grid; gap: 8px; max-width: 640px; margin: 0 auto; }

/* desktop: bigger header, deals in two columns with Cyber Monday spanning the bottom */
@media (min-width: 900px) {
  .bfp-inner { max-width: 1060px; }
  .bfp-logo { width: 260px; }
  .bfp-title { font-size: clamp(3.4rem, 6.2vh, 4.6rem); margin-bottom: 26px; }
  .bfp-title span { display: inline; }
  .bfp-title span + span::before { content: " "; }
  .bfp-deals { grid-template-columns: 1fr 1fr; gap: 14px; }
  .bfp-deal { padding: 18px 20px 18px 10px; grid-template-columns: 64px 1fr; }
  .bfp-deal:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
  .bfp-ico svg { width: 36px; height: 36px; }
  .bfp-copy { padding-left: 18px; }
  .bfp-deal h3 { font-size: 1.3rem; }
  .bfp-deal p { font-size: .8rem; }
  .bfp-actions-inner { grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 20px; }
  .bfp-btn-primary { padding: 0 40px; min-height: 56px; font-size: 1.08rem; }
}
.bfp-btn {
  display: flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 1rem/1.2 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif; text-decoration: none;
}
.bfp-btn-primary { background: var(--bfp-navy-2); color: #fff; }
.bfp-btn-primary:hover { background: var(--bfp-navy); color: #fff; }
.bfp-btn-skip { background: transparent; color: var(--bfp-navy); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; font-weight: 600; }
.bfp-btn-skip:hover { color: var(--bfp-navy-2); }

/* entrance choreography */
.bfp-in { opacity: 0; transform: translateY(18px); }
.bfp.is-open .bfp-in { animation: bfp-rise .6s cubic-bezier(.2,.9,.25,1.1) forwards; animation-delay: calc(.25s + var(--d, 0) * .11s); }
.bfp.is-open .bfp-title.bfp-in { animation-name: bfp-pop; }
.bfp.is-open .bfp-deal.bfp-in { animation-name: bfp-slide; }
@keyframes bfp-rise { to { opacity: 1; transform: none; } }
@keyframes bfp-pop { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes bfp-slide { 0% { opacity: 0; transform: translateX(-28px); } 100% { opacity: 1; transform: none; } }
/* gentle float once everything has landed */
.bfp.is-settled .bfp-deal:nth-child(odd) .bfp-ico svg { animation: bfp-bob 3.2s ease-in-out infinite; }
.bfp.is-settled .bfp-deal:nth-child(even) .bfp-ico svg { animation: bfp-bob 3.2s ease-in-out -1.6s infinite; }
@keyframes bfp-bob { 50% { transform: translateY(-3px) rotate(-4deg); } }

html.bfp-lock, html.bfp-lock body { overflow: hidden !important; }

@media (max-width: 420px) {
  .bfp-scroll { padding: 26px 16px 10px; }
  .bfp-deal { grid-template-columns: 44px 1fr; padding: 10px 10px 10px 6px; }
  .bfp-ico svg { width: 26px; height: 26px; }
  .bfp-copy { padding-left: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .bfp, .bfp-panel { transition: none; }
  .bfp-rays, .bfp.is-settled .bfp-ico svg { animation: none; }
  .bfp-in, .bfp.is-open .bfp-in { animation: none; opacity: 1; transform: none; }
}
