/* Black Friday Extended (black_friday_extended.py): campaign page, homepage banner + bar, Offers section,
   checkout sheet, receipt/voucher pages. Feonix purple-and-white, built on the fx tokens (css/fx-site.css). */

.fx-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bfx-muted { color: var(--fx-text-muted, #645677); font-weight: 400; }
.bfx-eyebrow { font: 600 var(--fx-step-meta, .875rem)/1.3 var(--fx-font-body, sans-serif); letter-spacing: .14em;
  text-transform: uppercase; color: var(--fx-text-muted, #645677); margin: 0 0 12px; }
.bfx-lock, .bfx-lock body { overflow: hidden; }

/* Light button on purple */
.fx .bfx-btn--light, .bfx-btn--light { background: #fff; color: var(--fx-purple, #2E1A47); border: 1px solid #fff; }
.fx .bfx-btn--light:hover { background: var(--fx-ground, #F4F1F7); }

/* ── Homepage bar (app bar slot, after the Dermalux bar has ended) ── */
.bfx-bar { background: var(--fx-purple, #2E1A47); color: #fff; }
.bfx-bar__link { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; padding: 10px 20px;
  color: #fff; text-decoration: none; font: 500 .9rem/1.35 var(--fx-font-body, sans-serif); text-align: center; }
.bfx-bar__eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: #CFC5DC; }
.bfx-bar__cta { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.bfx-bar__link:hover .bfx-bar__cta, .bfx-bar__link:focus-visible .bfx-bar__cta { text-decoration-thickness: 2px; }

/* ── Homepage banner section ── */
.bfx-home { background: radial-gradient(120% 140% at 85% 10%, #4B3470 0%, var(--fx-purple, #2E1A47) 55%, #1F1130 100%);
  color: #fff; padding: clamp(36px, 5vw, 72px) 0; overflow: hidden; }
.bfx-home__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bfx-home__eyebrow { font: 700 .8rem/1.3 var(--fx-font-body, sans-serif); letter-spacing: .16em; text-transform: uppercase; color: #CFC5DC; margin: 0 0 12px; }
.bfx-home__title { font: 600 clamp(2rem, 1.4rem + 2.6vw, 3.4rem)/1.05 var(--fx-font-display, sans-serif); margin: 0 0 14px; color: #fff; letter-spacing: -.01em; }
.bfx-home__save { font: 600 clamp(1.35rem, 1rem + 1.6vw, 2.1rem)/1.2 var(--fx-font-display, sans-serif); color: #fff; margin: 0 0 6px; max-width: 30ch; }
.bfx-home__basis { font-size: .88rem; line-height: 1.45; color: #CFC5DC; margin: 0 0 18px; max-width: 60ch; }
.bfx-home__lead { color: rgba(255,255,255,.9); font-size: var(--fx-step-lead, 1.1rem); line-height: 1.5; max-width: 60ch; margin: 0 0 4px; }
.bfx-home__end { display: inline-block; margin: 14px 0 20px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08); color: #fff; font-weight: 600; font-size: .95rem; }
.bfx-home__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 24px; }
.bfx-home__chips li { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; background: rgba(255,255,255,.06); min-width: 132px; }
.bfx-home__chips span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #CFC5DC; }
.bfx-home__chips strong { font: 600 1.35rem/1.1 var(--fx-font-display, sans-serif); }
.bfx-home__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.bfx-home__media { position: relative; height: clamp(220px, 26vw, 340px); }
.bfx-home__media img { position: absolute; bottom: 0; width: 46%; height: auto; border-radius: 18px; box-shadow: 0 24px 50px rgba(0,0,0,.35); background: #fff; }
.bfx-home__media img:first-child { left: 8%; transform: rotate(-5deg); }
.bfx-home__media img:last-child { right: 8%; bottom: 14px; transform: rotate(5deg); }

/* ── Offers page section ── */
.bfx-offer .offer-label { color: var(--fx-purple, #2E1A47); font-weight: 700; }
.bfx-offer__list { margin: 12px 0 0; padding-left: 1.1em; }
.bfx-offer__list li { margin: 4px 0; }
.bfx-offer .offer-media img { object-fit: contain; background: var(--fx-ground, #F4F1F7); }

/* ── Campaign page ── */
.bfx-hero { background: radial-gradient(110% 130% at 90% 0%, #4B3470 0%, var(--fx-purple, #2E1A47) 52%, #1F1130 100%);
  color: #fff; padding: clamp(48px, 6vw, 104px) 0 clamp(56px, 6vw, 96px); overflow: hidden; }
.bfx-hero .bfx-eyebrow { color: #CFC5DC; }
.bfx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.bfx-hero__title { font: 600 var(--fx-step-hero, 4rem)/1.0 var(--fx-font-display, sans-serif); margin: 0 0 18px; letter-spacing: -.02em; color: #fff; }
.bfx-hero__title span { color: #CFC5DC; font-weight: 400; }
.bfx-hero__lead { font-size: var(--fx-step-lead, 1.15rem); line-height: 1.6; color: rgba(255,255,255,.88); max-width: 58ch; margin: 0 0 26px; }
.bfx-countdown { margin: 0 0 26px; }
.bfx-countdown__label { margin: 0 0 10px; font-weight: 600; color: #fff; }
.bfx-countdown__units { display: flex; gap: 10px; }
.bfx-countdown__units span { display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 10px 8px;
  border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-size: .72rem;
  letter-spacing: .1em; text-transform: uppercase; color: #CFC5DC; }
.bfx-countdown__units b { font: 600 1.7rem/1.1 var(--fx-font-display, sans-serif); color: #fff; font-variant-numeric: tabular-nums; }
.bfx-hero__media { position: relative; height: clamp(300px, 34vw, 480px); }
.bfx-hero__media img { position: absolute; width: 50%; height: auto; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.bfx-hero__p1 { left: 4%; top: 6%; transform: rotate(-4deg); }
.bfx-hero__p2 { right: 4%; bottom: 0; transform: rotate(4deg); }
.bfx-hero__badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 118px; height: 118px; border-radius: 50%;
  background: #fff; color: var(--fx-purple, #2E1A47); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; font: 700 1.5rem/1.05 var(--fx-font-display, sans-serif); box-shadow: 0 14px 30px rgba(0,0,0,.3); }
.bfx-hero__badge small { font: 600 .68rem/1.2 var(--fx-font-body, sans-serif); letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; }
.bfx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.bfx-head { max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.bfx-head--left { margin-left: 0; text-align: left; }
.bfx-head__title { font: 600 var(--fx-step-h2, 2.4rem)/1.1 var(--fx-font-display, sans-serif); margin: 0 0 12px; color: var(--fx-text, #2E1A47); }
.bfx-head__lead { color: var(--fx-text-muted, #645677); line-height: 1.6; margin: 0; }

.bfx-packages { padding: var(--fx-section, 88px) 0; background: var(--fx-ground, #F4F1F7); }
.bfx-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fx-gap, 24px); }
.bfx-card article { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--fx-border, #E4DEEA);
  border-radius: 22px; overflow: hidden; box-shadow: 0 1px 2px rgba(46,26,71,.04), 0 12px 32px rgba(46,26,71,.06); }
.bfx-card__media img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.bfx-card__media--diagram { background: var(--fx-ground, #F4F1F7); }
.bfx-card__media--diagram img { object-fit: contain; padding: 10px 0; }
.bfx-card__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px); flex: 1; }
.bfx-card__audience { margin: 0; font: 700 .8rem/1.3 var(--fx-font-body, sans-serif); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-purple, #2E1A47); }
.bfx-card__audience span { font-weight: 500; color: var(--fx-text-muted, #645677); letter-spacing: .06em; }
.bfx-card__title { margin: 0; font: 600 var(--fx-step-h3, 1.35rem)/1.25 var(--fx-font-display, sans-serif); color: var(--fx-text, #2E1A47); }
.bfx-card__detail { margin: 0; color: var(--fx-text-muted, #645677); line-height: 1.55; font-size: var(--fx-step-small, .95rem); }
.bfx-card__price { margin: 4px 0 0; }
.bfx-card__total { font: 600 2.2rem/1 var(--fx-font-display, sans-serif); color: var(--fx-purple, #2E1A47); }
.bfx-prices { width: 100%; border-collapse: collapse; font-size: var(--fx-step-small, .95rem); }
.bfx-prices th, .bfx-prices td { padding: 7px 0; border-bottom: 1px solid var(--fx-hairline, #EFEBF2); text-align: left; font-weight: 400; }
.bfx-prices td { text-align: right; white-space: nowrap; }
.bfx-prices .bfx-total th, .bfx-prices .bfx-total td { font-weight: 700; border-bottom: 0; }
.bfx-was { display: block; font-size: .8rem; color: var(--fx-text-muted, #645677); }
.bfx-savings { margin: 0; padding: 12px 14px; list-style: none; background: var(--fx-ground, #F4F1F7); border-radius: 14px; font-size: .9rem; line-height: 1.5; }
.bfx-savings li + li { margin-top: 6px; }
.bfx-combined { padding-top: 6px; border-top: 1px solid var(--fx-border, #E4DEEA); }
.bfx-incl summary { cursor: pointer; font-weight: 600; color: var(--fx-purple, #2E1A47); }
.bfx-incl ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .92rem; line-height: 1.5; }
.bfx-card__practitioner { margin: 0; font-size: .9rem; font-weight: 600; }
.bfx-card__actions { display: grid; gap: 10px; margin-top: auto; }
.bfx-card__actions .fx-btn { width: 100%; justify-content: center; }
.bfx-card__learn { align-self: center; color: var(--fx-purple, #2E1A47); font-weight: 600; font-size: .92rem; text-underline-offset: 3px; }
.bfx-note { margin: 24px auto 0; max-width: 760px; text-align: center; font-size: .85rem; color: var(--fx-text-muted, #645677); }

.bfx-how { padding: var(--fx-section, 88px) 0; }
.bfx-steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fx-gap, 24px); }
.bfx-steps li { counter-increment: s; padding: 26px; border: 1px solid var(--fx-border, #E4DEEA); border-radius: 20px; }
.bfx-steps li::before { content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--fx-purple, #2E1A47); color: #fff; font-weight: 700; margin-bottom: 12px; }
.bfx-steps h3 { margin: 0 0 8px; font: 600 1.15rem/1.3 var(--fx-font-display, sans-serif); }
.bfx-steps p { margin: 0; color: var(--fx-text-muted, #645677); line-height: 1.55; }

.bfx-terms { padding: var(--fx-section, 88px) 0; background: var(--fx-ground, #F4F1F7); }
.bfx-terms__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); }
.bfx-terms__list { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; background: #fff; padding: clamp(20px, 3vw, 32px);
  border-radius: 20px; border: 1px solid var(--fx-border, #E4DEEA); line-height: 1.55; }
.bfx-terms__list dt { font-weight: 700; }
.bfx-terms__list dd { margin: 0; color: var(--fx-text-muted, #645677); }

.bfx-ended { padding: clamp(80px, 10vw, 160px) 0; text-align: center; }
.bfx-ended__inner { max-width: 640px; }
.bfx-ended__title { font: 600 var(--fx-step-h2, 2.4rem)/1.1 var(--fx-font-display, sans-serif); margin: 0 0 14px; }
.bfx-ended .bfx-actions { justify-content: center; margin-top: 24px; }

/* ── Checkout sheet ── */
.bfx-sheet[hidden] { display: none; }
.bfx-sheet { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.bfx-sheet__scrim { position: absolute; inset: 0; background: var(--fx-scrim, rgba(46,26,71,.55)); }
.bfx-sheet__panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff;
  border-radius: 22px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 80px rgba(31,17,48,.4); }
.bfx-sheet__close { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: var(--fx-ground, #F4F1F7);
  border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--fx-purple, #2E1A47); }
.bfx-sheet__title { font: 600 1.35rem/1.25 var(--fx-font-display, sans-serif); margin: 0 40px 6px 0; }
.bfx-sheet__total { margin: 0 0 18px; }
.bfx-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.bfx-form fieldset[hidden], .bfx-form [hidden] { display: none; }
.bfx-form legend { font-weight: 700; margin-bottom: 8px; }
.bfx-form label { display: block; font-size: .92rem; margin-bottom: 10px; }
.bfx-form input:not([type=radio]):not([type=checkbox]), .bfx-form textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 12px;
  border: 1px solid var(--fx-input-border, #857A95); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--fx-text, #2E1A47); }
.bfx-form input:focus-visible, .bfx-form textarea:focus-visible { outline: 2px solid var(--fx-purple, #2E1A47); outline-offset: 1px; }
.bfx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bfx-mode { display: flex; flex-wrap: wrap; gap: 10px; }
.bfx-mode legend { width: 100%; }
.bfx-mode label { flex: 1; min-width: 160px; border: 1px solid var(--fx-field-border, #D9D2E0); border-radius: 12px; padding: 12px; margin: 0; cursor: pointer; font-weight: 600; }
.bfx-mode label:has(input:checked) { border-color: var(--fx-purple, #2E1A47); background: var(--fx-ground, #F4F1F7); }
.bfx-check { display: flex !important; gap: 10px; align-items: flex-start; line-height: 1.45; }
.bfx-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--fx-purple, #2E1A47); }
.bfx-error { color: var(--fx-error, #9E3B31); background: var(--fx-error-wash, #F6E3DF); padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.bfx-submit { width: 100%; justify-content: center; margin-top: 8px; }
.bfx-submit[disabled] { opacity: .65; cursor: progress; }
.bfx-pay #bfx-payment-element { margin: 6px 0 14px; min-height: 120px; }
.bfx-linkbtn { display: block; margin: 12px auto 0; border: 0; background: none; color: var(--fx-purple, #2E1A47); text-decoration: underline; cursor: pointer; font: inherit; }
.bfx-secure { text-align: center; font-size: .82rem; margin: 10px 0 0; }

/* ── Confirmation / receipt / voucher pages ── */
.bfx-docwrap { padding: clamp(40px, 6vw, 88px) 0; background: var(--fx-ground, #F4F1F7); }
.bfx-docwrap__inner { max-width: 760px; }
.bfx-doc { background: #fff; border: 1px solid var(--fx-border, #E4DEEA); border-radius: 20px; padding: clamp(20px, 3vw, 36px); margin-bottom: 20px; }
.bfx-doc__eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; color: var(--fx-text-muted, #645677); margin: 0 0 8px; }
.bfx-doc__title { font: 600 1.5rem/1.25 var(--fx-font-display, sans-serif); margin: 0 0 12px; }
.bfx-doc__table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.bfx-doc__table th, .bfx-doc__table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--fx-hairline, #EFEBF2); }
.bfx-doc__table .num { text-align: right; white-space: nowrap; }
.bfx-doc__table tfoot th { border-bottom: 0; }
.bfx-confirm h1 { font: 600 var(--fx-step-h2, 2.2rem)/1.1 var(--fx-font-display, sans-serif); margin: 0 0 10px; }
.bfx-docactions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }

.bfx-voucher { background: #fff; border-radius: 22px; overflow: hidden; border: 1px solid var(--fx-border, #E4DEEA); box-shadow: 0 16px 40px rgba(46,26,71,.1); }
.bfx-voucher__head { display: flex; align-items: center; gap: 12px; background: var(--fx-purple, #2E1A47); color: #fff; padding: 20px 28px; }
.bfx-voucher__head p { margin: 0; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: .85rem; }
.bfx-voucher__head p:last-child { margin-left: auto; color: #CFC5DC; }
.bfx-voucher__body { padding: 28px; text-align: center; }
.bfx-voucher__to { font: 600 1.25rem/1.3 var(--fx-font-display, sans-serif); margin: 0 0 6px; }
.bfx-voucher__msg { font-style: italic; color: var(--fx-text-muted, #645677); margin: 0 0 14px; }
.bfx-voucher__body h2 { font: 600 1.6rem/1.2 var(--fx-font-display, sans-serif); margin: 10px 0 12px; }
.bfx-voucher__body ul { list-style: none; padding: 0; margin: 0 0 20px; line-height: 1.6; }
.bfx-voucher__code-label { margin: 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fx-text-muted, #645677); }
.bfx-voucher__code { display: inline-block; margin: 6px 0 14px; padding: 12px 20px; border: 2px dashed var(--fx-purple, #2E1A47); border-radius: 12px;
  font: 700 1.5rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.bfx-voucher__valid { margin: 0; }
.bfx-voucher__terms { padding: 20px 28px 26px; border-top: 1px solid var(--fx-hairline, #EFEBF2); font-size: .85rem; line-height: 1.5; }
.bfx-voucher__terms h3 { margin: 0 0 8px; font-size: .95rem; }
.bfx-voucher__terms ul { margin: 0 0 10px; padding-left: 1.1em; }

@media print {
  .fx-header, .fx-footer, .bfx-docactions, header, footer, .fx-appbar, .app-banner, nav { display: none !important; }
  .bfx-docwrap { background: #fff; padding: 0; }
  .bfx-voucher { box-shadow: none; break-inside: avoid; }
  .bfx-voucher__head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 1023px) {
  .bfx-grid, .bfx-steps { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .bfx-terms__grid { grid-template-columns: 1fr; }
}
@media (max-width: 819px) {
  .bfx-hero__grid, .bfx-home__grid { grid-template-columns: 1fr; }
  .bfx-hero__media { height: 280px; max-width: 420px; width: 100%; margin: 0 auto; }
  .bfx-home__media { display: none; }
  .bfx-countdown__units span { min-width: 0; flex: 1; }
}
@media (max-width: 560px) {
  .bfx-terms__list { grid-template-columns: 1fr; gap: 4px; }
  .bfx-terms__list dd { margin-bottom: 10px; }
  .bfx-row { grid-template-columns: 1fr; }
  .bfx-sheet { padding: 0; align-items: flex-end; }
  .bfx-sheet__panel { border-radius: 22px 22px 0 0; max-height: 94vh; }
  .bfx-home__chips li { flex: 1 1 40%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .bfx-hero__media img, .bfx-home__media img { transform: none; } }
