/* The Black Friday page's stopgap styles, loaded only there
   (black-friday/live.njk). Delete each block when Eddie ships it.
   Tokens only. */

/* STOPGAP until eddie-design-system#2701 (a sale-price component): the
   struck-through old price, then the new one. */
.bf-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: var(--ed-theme-spacing-sm); font-family: var(--ed-theme-typography-headline-sm-font-family); font-size: var(--ed-theme-typography-title-sm-font-size); font-weight: var(--ed-theme-typography-headline-sm-font-weight); text-transform: var(--ed-theme-typography-headline-sm-text-transform); line-height: 1; }
.bf-price__was { position: relative; text-decoration: none; opacity: .7; }
.bf-price__was::after { content: ""; position: absolute; inset-inline: -.1em; inset-block-start: 50%; border-block-start: var(--ed-theme-border-width-md) solid var(--ed-theme-color-border-brand); transform: rotate(-12deg); }
.bf-price__now { font-size: 1.25em; font-weight: inherit; }
.bf-price__note { font-size: var(--ed-theme-typography-body-default-font-size); }

/* STOPGAP until eddie-design-system#2702 (a product row and inline purchase
   options): poster | details | Buy, stacking on phones, and the options
   panel under the chosen row. */
.bf-offer__band { --ed-band-padding-block: var(--ed-theme-spacing-lg); }
.bf-offer__band .bf-offer { padding-inline: var(--ed-theme-spacing-lg); }
/* The band bleeds out by its own inset, so the bundle's poster and details
   line up exactly with the course rows below (Brad, Nov 10). The bleed is
   the container's gutter (md) at every width: with the wide (80rem)
   container filling a 1280px window, a larger bleed scrolls sideways. */
.bf-offer__band { margin-inline: calc(-1 * var(--ed-theme-spacing-md)); }
.bf-offer__band .bf-offer { padding-inline: var(--ed-theme-spacing-md); }
.bf-offer__row { display: grid; gap: var(--ed-theme-spacing-md); align-items: start; }
.bf-offer__title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ed-theme-spacing-sm) var(--ed-theme-spacing-md); }
.bf-offer__media img { display: block; inline-size: 100%; block-size: auto; }
@media all and (min-width: 48rem) {
	.bf-offer__row { grid-template-columns: 25.4rem 1fr auto; gap: var(--ed-theme-spacing-lg); }
}
/* The options sit in the row's details column, under the description (Nov 12
   working session): no box, no surface of their own, so inside the bundle's
   band they take the band's colours and the controls go knockout. A little
   extra room above sets them apart from the description. */
.bf-offer__options { margin-block-start: var(--ed-theme-spacing-sm); }
.bf-offer__options[hidden] { display: none; }
/* Eddie elements set their own display (ed-stack block, ed-radio-field-item
   contents), which beats the browser's [hidden] rule; this puts it back for
   the groups and options /assets/black-friday-buy.js shows and hides. */
.bf-offer__options [hidden] { display: none; }

/* STOPGAP until eddie-design-system#2707 (Brad, Nov 10):
   - ed-list has no way to drop one item's divider. None under the bundle row
     (its band sets it apart) and none under the last row, which sits right
     above the "Need help deciding?" band. Light-DOM rules beat :host.
   - ed-hero heights are viewport-relative (sm is 25vh), so on a short window
     the banner gets short enough to clip the lettering. A grid host lets a
     min-height stretch the hero's inner box. At visualzzz's default text
     scale (Brad's Nov 10 URL) the lettering grows with the banner's width,
     so the height does too: 30vw, never under 20rem (432px at 1440). */
.bf-offers > ed-list-item:first-child,
.bf-offers > ed-list-item:last-child { border-block-end: 0; }
/* Room under the last row before the "How can we help you?" band (Ian,
   Nov 16): xl here plus the page stack's xl, 64px, like the padded rows. */
.bf-offers > ed-list-item:last-child { padding-block-end: var(--ed-theme-spacing-xl); }
/* One rhythm from the banner to the last row (Brad, Nov 10): 32px (xl)
   between every pair. The section header already sits xl above its body, so
   the first item tops it up to xl (ed-section pads its body 1rem below
   60rem, 2rem from there); default ed-list spacing (1rem a side) makes
   every other row gap xl, divider centred. */
.bf-offers > ed-list-item:first-child { padding-block-start: var(--ed-theme-spacing-md); }
@media all and (min-width: 60rem) {
	.bf-offers > ed-list-item:first-child { padding-block-start: 0; }
}
.bf-banner { display: grid; min-block-size: max(20rem, 30vw); }

/* STOPGAP until eddie-design-system#2729 (ed-counter button variant):
   the seat counter's −/+ are default ed-buttons, which Eddie 0.74 tokens made
   cream (background-subtle); on 0.70 they were orange, which is what the
   course sites' PPP license counter still shows. Point the default-button
   tokens at the primary ones for this counter only, so it matches. Disabled
   (− at one seat) keeps Eddie's own disabled colours. */
[data-bf-seats] {
	--ed-theme-button-color-background-default: var(--ed-theme-button-primary-color-background-default);
	--ed-theme-button-color-background-hover: var(--ed-theme-button-primary-color-background-hover);
	--ed-theme-button-color-background-active: var(--ed-theme-button-primary-color-background-active);
	--ed-theme-button-color-border-default: var(--ed-theme-button-primary-color-border-default);
	--ed-theme-button-color-border-hover: var(--ed-theme-button-primary-color-border-hover);
	--ed-theme-button-color-border-active: var(--ed-theme-button-primary-color-border-active);
	--ed-theme-button-color-content-default: var(--ed-theme-button-primary-color-content-default);
	--ed-theme-button-color-content-hover: var(--ed-theme-button-primary-color-content-hover);
	--ed-theme-button-color-content-active: var(--ed-theme-button-primary-color-content-active);
}

/* STOPGAP: the hero's deadline (Ian, Nov 15) looks like the homepage hero's
   primary lg button but isn't one: nothing to click. Built from ed-button's
   own tokens (primary colours, button-lg type, its border and radius).
   Eddie has no large non-interactive label: ed-tag and ed-badge stop at md
   (eddie-design-system#2732). */
.bf-hero-flag {
	margin: 0;
	padding: var(--ed-theme-spacing-md) var(--ed-theme-spacing-xl);
	border: var(--ed-theme-border-width-md) solid var(--ed-theme-button-primary-color-border-default);
	border-radius: var(--ed-theme-border-radius-md);
	background-color: var(--ed-theme-button-primary-color-background-default);
	color: var(--ed-theme-button-primary-color-content-default);
	font-family: var(--ed-theme-typography-button-lg-font-family);
	font-weight: var(--ed-theme-typography-button-lg-font-weight);
	font-size: var(--ed-theme-typography-button-lg-font-size);
	line-height: var(--ed-theme-typography-button-lg-line-height);
	letter-spacing: var(--ed-theme-typography-button-lg-letter-spacing);
	text-transform: var(--ed-theme-typography-button-lg-text-transform);
	text-align: center;
}
