/* Black Friday 2026 offer banners (Claude Design "Black Friday banners").
   Loaded by layouts/site only while App\Support\BlackFridaySale::active().
   B00 .ae-bfo-card   home page, signed-in (partials/bf-offer/card)
   B01 .ae-bfo-strip  under the header, visitors (partials/bf-offer/strip)
   B02 .ae-bfo-widget sticky corner widget, visitors (partials/bf-offer/widget)
   Remove with the rest of the sale code after Dec 1 2026. */

.ae-bfo-strip,
.ae-bfo-card,
.ae-bfo-widget,
.ae-bfo-tab {
  --bfo-gold: #FBC901;
  --bfo-gold-dark: #D09700;
  --bfo-ink: #1A1A1A;
  --bfo-line: rgba(251, 201, 1, .4);
  --bfo-btn: linear-gradient(90deg, #FBC901 0%, #FBC901 77%, #D09700 100%);
  --bfo-font: 'Montserrat', 'Inter', system-ui, sans-serif;
  box-sizing: border-box;
}
.ae-bfo-strip *,
.ae-bfo-card *,
.ae-bfo-widget *,
.ae-bfo-tab * { box-sizing: border-box; }

.ae-bfo-deco {
  position: absolute;
  max-width: none;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Gold pill button with a light sweep */
.ae-bfo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bfo-btn);
  color: var(--bfo-ink) !important;
  font-family: var(--bfo-font);
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.1;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .15s ease, filter .15s ease;
}
.ae-bfo-btn:hover { filter: brightness(1.06); transform: translateY(-2px); }
.ae-bfo-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ae-bfo-btn::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 40px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: ae-bfo-shine 3.2s ease-in-out infinite;
  content: "";
}
.ae-bfo-btn > * { position: relative; }
.ae-bfo-btn img { flex: none; object-fit: contain; }
@keyframes ae-bfo-shine {
  0% { transform: translateX(-130%) skewX(-18deg); }
  60%, 100% { transform: translateX(900%) skewX(-18deg); }
}

/* WEEKLY 20% · MONTHLY 40% · YEARLY 50% */
.ae-bfo-chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-bfo-chips li {
  display: inline-flex;
  gap: 6px;
  margin: 0;
  padding: 7px 15px;
  border: 1px solid var(--bfo-line);
  border-radius: 999px;
  background: #17171D;
  color: #fff;
  font-family: var(--bfo-font);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
.ae-bfo-chips li b { color: var(--bfo-gold); font-weight: 800; }
.ae-bfo-chips li.is-best { border-color: transparent; background: var(--bfo-btn); color: var(--bfo-ink); }
.ae-bfo-chips li.is-best b { color: inherit; }

/* ------------------------------------------------------------ B01 strip */
/* Full-width bar above the site header. */
.ae-bfo-strip-wrap {
  padding: 0;
  margin: 0;
}
.ae-bfo-strip {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  width: 100%;
  min-height: 96px;
  margin: 0;
  padding: 20px 150px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #26262E;
  border-radius: 0;
  background: radial-gradient(120% 160% at 50% 0%, #1F1F26 0%, #101014 52%, #0A0A0D 100%);
  color: #fff;
  font-family: var(--bfo-font);
}
.ae-bfo-strip::before {
  position: absolute;
  z-index: -1;
  top: -70px;
  left: 50%;
  width: 600px;
  max-width: 100%;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 201, 1, .16) 0%, rgba(251, 201, 1, 0) 70%);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}
.ae-bfo-strip .ae-bfo-deco { z-index: -1; }
.ae-bfo-strip__balloons-l { top: -1px; left: 0; height: 112px; }
.ae-bfo-strip__balloons-r { top: -5px; right: 0; height: 117px; }
.ae-bfo-strip__gift { top: 49px; left: 0; width: 40px; transform: rotate(-9deg); }
.ae-bfo-strip__copy { min-width: 0; }
.ae-bfo-strip__eyebrow {
  margin: 0;
  color: var(--bfo-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.2px;
  line-height: 1.4;
}
.ae-bfo-strip__title {
  margin: 0;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.ae-bfo-strip .ae-bfo-chips { gap: 6px; }
.ae-bfo-strip .ae-bfo-chips li { padding: 5px 12px; font-size: 9.5px; }
.ae-bfo-strip .ae-bfo-btn { padding: 10px 24px; font-size: 11.5px; }
.ae-bfo-strip .ae-bfo-btn::before { width: 32px; }

@media (max-width: 991px) {
  .ae-bfo-strip { padding: 18px 70px; }
  .ae-bfo-strip__copy { text-align: center; }
}
@media (max-width: 760px) {
  .ae-bfo-strip { gap: 10px; padding: 16px 44px; }
  .ae-bfo-strip__balloons-l { height: 84px; opacity: .8; }
  .ae-bfo-strip__balloons-r { height: 88px; opacity: .8; }
  .ae-bfo-strip__gift { display: none; }
  .ae-bfo-strip__title { font-size: 16px; }
}
@media (max-width: 480px) {
  .ae-bfo-strip { padding: 14px 36px; }
  .ae-bfo-strip .ae-bfo-chips { display: none; }
  .ae-bfo-strip__balloons-l { height: 70px; left: -8px; }
  .ae-bfo-strip__balloons-r { height: 74px; right: -6px; }
}

/* ------------------------------------------------------------- B00 card */
.ae-plan.ae-bfo-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 0;
  padding: 46px 48px 44px;
  overflow: hidden;
  border: 1px solid #26262E;
  border-radius: 32px;
  background: radial-gradient(130% 120% at 50% 0%, #23232B 0%, #121217 46%, #0A0A0D 100%);
  color: #fff;
  text-align: center;
}
.ae-bfo-card::before {
  position: absolute;
  z-index: -1;
  top: -90px;
  left: 50%;
  width: 460px;
  max-width: 100%;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 201, 1, .2) 0%, rgba(251, 201, 1, 0) 70%);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}
.ae-bfo-card .ae-bfo-deco { z-index: -1; }
.ae-bfo-card__balloons-l { top: 0; left: 0; height: 240px; }
.ae-bfo-card__balloons-r { right: 0; bottom: -34px; height: 234px; }
.ae-bfo-card__gift-big { bottom: -14px; left: 9px; width: 86px; transform: rotate(-8deg); }
.ae-bfo-card__gift-small { bottom: 0; left: -7px; width: 46px; transform: rotate(10deg); }
.ae-bfo-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border: 1px solid var(--bfo-line);
  border-radius: 999px;
  background: rgba(251, 201, 1, .1);
  color: var(--bfo-gold);
  font-family: var(--bfo-font);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  line-height: 1.3;
}
/* Beats typography.css's site-wide heading rule (font + capitalize). */
.ae-plan.ae-bfo-card .ae-bfo-card__title {
  margin: 0;
  color: #fff;
  font-family: var(--bfo-font) !important;
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.02;
  text-transform: uppercase !important;
}
/* "BLACK FRIDAY" stays on one line: the size follows the card's width
   (about 6.4 font-sizes wide, minus the side padding), capped at 54px. */
.ae-plan.ae-bfo-card { container-type: inline-size; }
.ae-bfo-card__name {
  display: block;
  font-size: min(54px, calc((100cqw - 96px) / 6.4));
  white-space: nowrap;
}
.ae-bfo-card__sub {
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #FFE28A 0%, #FBC901 45%, #D09700 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .06em;
}
.ae-bfo-card__text {
  max-width: 380px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  line-height: 1.6;
}
.ae-bfo-card .ae-bfo-btn { gap: 11px; padding: 16px 42px; font-size: 15px; }
.ae-bfo-card .ae-bfo-btn::before { width: 46px; }

@media (max-width: 600px) {
  .ae-plan.ae-bfo-card { gap: 14px; padding: 34px 20px 40px; border-radius: 24px; }
  .ae-plan.ae-bfo-card .ae-bfo-card__title { font-size: 38px; }
  .ae-bfo-card__name { font-size: min(44px, calc((100cqw - 40px) / 6.4)); }
  .ae-bfo-card__sub { font-size: 18px; }
  .ae-bfo-card__balloons-l { height: 150px; opacity: .7; }
  .ae-bfo-card__balloons-r { height: 150px; opacity: .7; }
  .ae-bfo-card__gift-big { width: 64px; }
  .ae-bfo-card__gift-small { width: 36px; }
  .ae-bfo-card .ae-bfo-btn { padding: 14px 26px; font-size: 13px; }
}

/* ----------------------------------------------------------- B02 widget */
.ae-bfo-widget {
  position: fixed;
  z-index: 1100;
  right: 20px;
  bottom: 20px;
  width: 292px;
  padding: 20px 20px 18px;
  overflow: hidden;
  border: 1px solid var(--bfo-line);
  border-radius: 22px;
  background: radial-gradient(140% 120% at 50% 0%, #23232B 0%, #111116 52%, #0A0A0D 100%);
  box-shadow: 0 18px 44px rgba(10, 10, 13, .45);
  color: #fff;
  font-family: var(--bfo-font);
  isolation: isolate;
}
.ae-bfo-widget::before {
  position: absolute;
  z-index: -1;
  top: -48px;
  left: 50%;
  width: 240px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(251, 201, 1, .22) 0%, rgba(251, 201, 1, 0) 70%);
  transform: translateX(-50%);
  content: "";
  pointer-events: none;
}
.ae-bfo-widget[hidden],
.ae-bfo-tab[hidden] { display: none !important; }
.ae-bfo-widget .ae-bfo-deco { z-index: -1; top: 76px; right: 0; height: 115px; opacity: .85; }
.ae-bfo-widget__close {
  position: absolute;
  z-index: 2;
  top: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.ae-bfo-widget__close:hover { background: rgba(255, 255, 255, .24); }
.ae-bfo-widget__close:focus-visible { outline: 2px solid var(--bfo-gold); outline-offset: 2px; }
.ae-bfo-widget__close svg { width: 10px; height: 10px; }
.ae-bfo-widget__body { display: flex; flex-direction: column; gap: 12px; }
.ae-bfo-widget__eyebrow {
  margin: 0;
  color: var(--bfo-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.2px;
}
.ae-bfo-widget__title {
  margin: 0;
  padding-right: 26px;
  color: #fff;
  font-family: var(--bfo-font) !important;
  font-size: 19px !important;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase !important;
}
.ae-bfo-count { display: flex; align-items: center; gap: 7px; }
.ae-bfo-count__unit { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.ae-bfo-count__digits { display: flex; gap: 2px; }
.ae-bfo-count__digits span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 22px;
  border: 1px solid rgba(251, 201, 1, .25);
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  color: var(--bfo-gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}
.ae-bfo-count__label {
  color: rgba(255, 255, 255, .55);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: .8px;
}
.ae-bfo-widget .ae-bfo-btn { display: flex; padding: 11px 0; font-size: 11.5px; }
.ae-bfo-widget .ae-bfo-btn:hover { transform: translateY(-1px); }
.ae-bfo-widget .ae-bfo-btn::before { width: 32px; }

/* Collapsed: gold side tab, vertically centred on the right edge */
.ae-bfo-tab {
  position: fixed;
  z-index: 1100;
  right: 0;
  bottom: 14vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 13px 18px 15px;
  overflow: hidden;
  border: 0;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #FBC901 0%, #F0B400 55%, #D09700 100%);
  box-shadow: -8px 0 24px rgba(251, 201, 1, .35), inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .18);
  color: var(--bfo-ink);
  font-family: var(--bfo-font);
  cursor: pointer;
  transition: transform .2s ease;
}
.ae-bfo-tab:hover { transform: translateX(-4px); }
.ae-bfo-tab:focus-visible { outline: 2px solid var(--bfo-ink); outline-offset: -4px; }
.ae-bfo-tab::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: ae-bfo-shine-v 3.2s ease-in-out infinite;
  content: "";
}
@keyframes ae-bfo-shine-v {
  0% { transform: translateY(-130%); }
  60%, 100% { transform: translateY(600%); }
}
.ae-bfo-tab > * { position: relative; }
.ae-bfo-tab img { width: 26px; height: 26px; object-fit: contain; }
.ae-bfo-tab__label {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  transform: rotate(180deg);
  writing-mode: vertical-rl;
}
.ae-bfo-tab .ae-bfo-tab__name { color: var(--bfo-ink) !important; font-size: 10px; font-weight: 800; letter-spacing: 1.3px; white-space: nowrap; }
.ae-bfo-tab__off {
  padding: 4px 3px;
  border-radius: 999px;
  background: var(--bfo-ink);
  color: var(--bfo-gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Phones/tablets: a slimmer side tab. */
@media (max-width: 760px) {
  .ae-bfo-tab { bottom: 10vh; gap: 7px; padding: 12px 7px 13px 8px; border-radius: 12px 0 0 12px; }
  .ae-bfo-tab img { width: 18px; height: 18px; }
  .ae-bfo-tab__label { gap: 6px; }
  .ae-bfo-tab .ae-bfo-tab__name { font-size: 8.5px; letter-spacing: 1px; }
  .ae-bfo-tab__off { padding: 3px 2px; font-size: 7.5px; letter-spacing: .6px; }
}

@media (max-width: 480px) {
  .ae-bfo-widget { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: min(292px, calc(100vw - 24px)); }
}

@media (prefers-reduced-motion: reduce) {
  .ae-bfo-btn::before,
  .ae-bfo-tab::before { animation: none; display: none; }
  .ae-bfo-btn,
  .ae-bfo-tab { transition: none; }
}
