/* =============================================================================
   Book a repair — the flow's components.
   =============================================================================

   Design tokens live in assets/css/frb-tokens.css, shared with the sell
   flow and loaded as a dependency of this file. The two features keep their
   own logic and their own shapes — this one is a wizard with steps, that one
   is a single scrolling page — but a customer meeting both should be in no
   doubt they are dealing with one shop.

   Three things govern what is written here.

   **It renders inside someone else's theme.** Forty shop sites, most of them
   running Elementor, each with opinions about `h2`, `button`, `p` and `img`.
   The reset is scoped and written as `.frb-app.frb-app :where(...)`: the
   doubled class gives it specificity (0,2,0) while `:where()` keeps the
   inner selectors at zero. Components that follow match that specificity and
   come later in the file, so they win ties, and a theme's `.entry-content p`
   (0,1,1) loses to both — with no `!important` anywhere.

   **Interactive states are declared, not inherited.** A theme's
   `.elementor-kit-5 button:hover` is (0,2,1) and beats the reset, so every
   hover, focus and active state re-declares colour *and* background at
   (0,3,1). Stating one without the other is what lets the cascade fill the
   gap from somewhere else.

   **Some of this is @wordpress/components.** The calendar is their
   DatePicker and several controls are their Button, so there are overrides
   against `.components-*` near the end. They are scoped under `.frb-app`,
   so nothing leaks into the rest of wp-admin or the page.

   Logical properties throughout, so the RTL build has something to flip.
   ========================================================================== */

/* ---------- Root and the hostile-theme reset ------------------------------ */

.frb-app {
	container-type: inline-size;
	container-name: frb;
	display: block;
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: var(--frb-max);
	margin-inline: auto;
	color: var(--frb-text);
	font-weight: var(--frb-fw-regular);
	font-size: var(--frb-fs-md);
	font-family: var(--frb-font);
	line-height: var(--frb-lh-md);
	letter-spacing: normal;
	text-align: start;
	text-transform: none;
	text-size-adjust: 100%;
}

.frb-app *,
.frb-app *::before,
.frb-app *::after { box-sizing: border-box; }

/*
 * The calendar is `@wordpress/components`' own widget and brings its own
 * layout — a grid of day cells inside a positioned container. Flattening it
 * with the reset below leaves the weekday names in a vertical list, so the
 * whole subtree is exempt. `:not(:where(…))` keeps that exemption at zero
 * specificity, so the rules it guards still sit at (0,2,0) exactly as the
 * component rules that follow expect.
 */
.frb-app.frb-app :where(div, section, aside, header, footer, nav, h1, h2, h3,
h4, h5, h6, p, ul, ol, li, fieldset, legend, figure, dl, dt, dd, label, span, a,
button, input, textarea, select, img, svg, progress, details, summary, strong, em,
i):not(:where(.components-datetime__date, .components-datetime__date *)) {
	position: static;
	inset: auto;
	float: none;
	inline-size: auto;
	min-inline-size: 0;
	max-inline-size: none;
	block-size: auto;
	min-block-size: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	letter-spacing: normal;
	vertical-align: baseline;
	/* Themes put `white-space: nowrap` on buttons. Every card in this flow
	   is a button, and a category called "Back Glass Replacement" then runs
	   straight out of its own box and under whatever sits beside it. */
	white-space: normal;
	text-align: inherit;
	text-shadow: none;
	text-decoration: none;
	text-transform: none;
	list-style: none;
	opacity: 1;
	transform: none;
	transition: none;
	animation: none;
	filter: none;
	appearance: none;
}

.frb-app.frb-app :where(div, section, aside, header, footer, nav, h1, h2, h3,
h4, h5, h6, p, ul, ol, li, fieldset, figure, dl, dt, dd, details,
summary):not(:where(.components-datetime__date, .components-datetime__date *)) { display: block; }
.frb-app.frb-app :where(span, a, label, strong, em, legend,
i):not(:where(.components-datetime__date, .components-datetime__date *)) { display: inline; }
.frb-app.frb-app :where(strong) { font-weight: var(--frb-fw-bold); }
.frb-app.frb-app :where(img) { display: block; max-inline-size: 100%; }
.frb-app.frb-app :where(svg):not(:where(.components-datetime__date *)) { display: block; flex: none; }
.frb-app.frb-app :where(button) { font-family: inherit; }
.frb-app.frb-app :where(button, label, summary, input[type="radio"], input[type="checkbox"]) { cursor: pointer; }

/*
 * The reset strips `appearance`, which leaves a checkbox as a zero-sized
 * nothing — and the terms box is the one control a booking cannot be made
 * without. Drawn here rather than restored, so it looks the same whatever
 * the host theme does to form controls.
 */
.frb-app.frb-app :where(input[type="checkbox"], input[type="radio"]) {
	display: inline-grid;
	flex: none;
	place-content: center;
	inline-size: 20px;
	block-size: 20px;
	border: var(--frb-bw-strong) solid var(--frb-border-control);
	border-radius: 5px;
	background: var(--frb-surface);
	transition: background-color var(--frb-dur-fast) var(--frb-ease),
		border-color var(--frb-dur-fast) var(--frb-ease);
}

.frb-app.frb-app :where(input[type="radio"]) { border-radius: var(--frb-radius-full); }

/*
 * The mark is a background image rather than a pseudo-element: an input is a
 * replaced element, and generated content on one is not reliably painted.
 *
 * The component library's own checked rule is (0,4,0), so its class is named
 * here alongside the bare input to clear it.
 */
.frb-app.frb-app :where(input[type="checkbox"]):checked,
.frb-app.frb-app .components-checkbox-control__input[type="checkbox"]:is(:checked, :indeterminate) {
	border-color: var(--frb-action);
	background:
		url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none" stroke="white" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 10.5l3.4 3.4L15 7"/></svg>')
		center / 100% no-repeat var(--frb-action);
}

.frb-app.frb-app :where(input[type="radio"]):checked {
	border-color: var(--frb-action);
	background:
		radial-gradient(circle at 50% 50%, var(--frb-white) 0 28%, transparent 29%)
		var(--frb-action);
}

.frb-app :is(a, button, input, textarea, select, summary, [tabindex]) {
	scroll-margin-block: var(--frb-s-4);
}

.frb-app .frb-sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* One focus recipe: a ring plus a halo of the opposite colour, so it stays
   visible on light and dark surfaces alike. */
.frb-app :is(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: var(--frb-focus-width) solid var(--frb-focus);
	outline-offset: var(--frb-focus-offset);
	box-shadow: 0 0 0 var(--frb-focus-offset) var(--frb-focus-halo);
}

/* ---------- Icons --------------------------------------------------------- */

.frb-app svg:not([fill]) {
	fill: none;
	stroke: currentcolor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Product imagery ------------------------------------------------
   Every catalog picture is a 1:1 JPEG of the device on a flat white canvas.
   Cutting each model out to a transparent PNG was not sustainable for the
   team at the rate the catalog changes, so the design absorbs the canvas
   instead of asking for it to be removed.

   `mix-blend-mode: multiply` is what does it. Multiply keeps the darker of
   what is painted, so a white canvas over a light well leaves the well
   exactly as it was — the rectangle vanishes and the device appears to sit
   on the well, the way a cut-out PNG would. The device itself is dark, and
   multiplying a dark pixel by a near-white one changes it by about half a
   percent, so nothing of the product is lost.

   Three things follow from that, and all three are wanted:

   - It needs a *light* backdrop. On a dark surface multiply would crush the
     picture to black, so the two dark places that show a device — the hero
     banner and the summary panel — give it a light tile to sit on rather
     than this treatment. See those rules below.
   - It adapts to whatever is behind it. On a tinted selected row the canvas
     takes the tint instead of staying white, which is exactly what a
     hand-cut image would have done.
   - A transparent PNG is unaffected: transparent pixels contribute nothing
     to a blend, so the old images and the new ones can sit side by side.

   Customer photo uploads are deliberately excluded. Those are real
   photographs with real backgrounds, not product shots, and multiplying one
   against a well would simply darken it. */

.frb-app :is(.frb-crumb__media, .frb-device-type-card__media, .frb-selector-card__image-tile, .frb-repair-category-card__media) img {
	mix-blend-mode: multiply;
}

/* ---------- Hero -----------------------------------------------------------
   The page's banner. Dark, because the summary panel is: those two are the
   only places here that speak for the shop rather than ask something. The
   sell flow's banner is the same shape for the same reason. */

.frb-app .frb-hero {
	position: relative;
	margin-block-end: var(--frb-s-5);
	padding: var(--frb-s-6) var(--frb-s-5);
	overflow: hidden;
	border-radius: var(--frb-radius-lg);
	background: var(--frb-glow), var(--frb-ink);
	color: var(--frb-on-dark);
}

.frb-app .frb-hero__inner {
	display: flex;
	gap: var(--frb-s-4);
	align-items: center;
	justify-content: space-between;
	inline-size: 100%;
	max-inline-size: var(--frb-max);
	/* No floor on a phone. This 150px exists to balance the artwork on the
	   right, and that artwork is hidden below 560px — so on a phone it was
	   150px of empty black above the fold, pushing the first question down
	   for nothing. Restored where the art comes back. */
	min-block-size: 0;
	margin-inline: auto;
}

.frb-app .frb-hero__text { min-inline-size: 0; }

.frb-app .frb-hero__lead {
	display: block;
	color: var(--frb-on-dark-muted);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	line-height: 1.2;
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
}

.frb-app .frb-hero__device {
	display: block;
	margin-block-start: var(--frb-s-2);
	overflow-wrap: anywhere;
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-2xl);
	line-height: 1.08;
	letter-spacing: var(--frb-tracking-tight);
	text-transform: uppercase;
	text-wrap: balance;

	/* The name arrives a moment after the rest, when the model is chosen.
	   Fading rather than appearing stops it reading as a glitch. */
	animation: frb-hero-in var(--frb-dur-base) var(--frb-ease-out);
}

@keyframes frb-hero-in {
	from { transform: translateY(4px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.frb-app .frb-hero__sub {
	margin-block-start: var(--frb-s-3);
	max-inline-size: 48ch;
	color: var(--frb-on-dark-soft);
	font-size: var(--frb-fs-md);
	line-height: var(--frb-lh-md);
	text-transform: none;
}

/* The artwork: the customer's own device once we know it, a brand motif
   until then. Hidden on the narrowest screens — at 390px the headline needs
   every pixel, and a 60px thumbnail confirms nothing.

   It is also the one place on this page where the device is shown against
   the dark. It used to be a bare image with a drop shadow, which is the right
   treatment for a cut-out and the wrong one for a white rectangle: the
   shadow drew a dark halo around a hard white edge and the whole thing read
   as a mistake.

   So the art becomes a deliberate product tile — rounded, inset from the
   banner's own padding, ringed and lifted off the dark. The picture then
   multiplies into the tile exactly as it does everywhere else, which is what
   stops a seam appearing between the tile's gradient and the image's flat
   white. The shadow moved from the picture to the tile, where it has an edge
   worth casting. */
.frb-app .frb-hero__art {
	display: none;
	flex: none;
	place-items: center;
	inline-size: 150px;
	block-size: 150px;
	padding: var(--frb-s-3);
	overflow: hidden;
	border-radius: var(--frb-radius-lg);
	background: var(--frb-surface-media);
	box-shadow:
		0 10px 30px rgb(0 0 0 / 45%),
		inset 0 0 0 var(--frb-bw) rgb(255 255 255 / 60%);
}

.frb-app .frb-hero__photo {
	inline-size: 100%;
	block-size: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
	animation: frb-hero-in var(--frb-dur-slow) var(--frb-ease-out);
}

.frb-app .frb-hero__motif {
	inline-size: 100%;
	block-size: 100%;
	color: var(--frb-red-700);
	opacity: 0.55;
}

/* `full_width="yes"`: step outside the theme's content column.

   `50% - 50vw` is the usual trick and it has a usual bug — `vw` counts the
   scrollbar, so on a desktop page with one the element ends up a scrollbar
   wider than the viewport and the whole page scrolls sideways. The width
   comes from a property that defaults to `100vw`, so this still works with
   no JavaScript, and is sharpened to the root's `clientWidth` — which
   excludes the scrollbar — once the bundle runs. */
/* Padding on the wrapper, not on `.frb-app` — that element is an
   inline-size container, and padding there would move every container
   query by 32px. */
.frb-booking-root {
	--frb-vw: 100vw;
	padding-inline: var(--frb-gutter);
}

/*
 * The whole root breaks out, not just the banner.
 *
 * Unlike the sell page, a shop's booking page is often on a narrow theme
 * template — the one this was built against gives the content column 756px,
 * which is under the 880px the two-column layout needs, so the summary
 * panel stays a bottom bar and the sidebar never appears. Widening the root
 * gives the flow the room the layout is designed around; `.frb-app` keeps
 * its own `max-inline-size`, so the content is still centred and still
 * capped, it is just no longer boxed in by the theme.
 */
.frb-booking-root--full {
	inline-size: var(--frb-vw);
	margin-inline: calc(50% - var(--frb-vw) / 2);
	padding-inline: var(--frb-s-4);
}

/* Inside a root that is already the viewport's width this resolves to zero
   on each side, which is what keeps the banner edge to edge either way. */
.frb-booking-root--full .frb-hero {
	inline-size: var(--frb-vw);
	margin-inline: calc(50% - var(--frb-vw) / 2);
	padding-inline: max(var(--frb-s-5), calc((var(--frb-vw) - var(--frb-max)) / 2));
	border-radius: 0;
}

/* ---------- Layout ---------------------------------------------------------
   One column with a bar pinned to the bottom; two columns with a sticky
   card from 880px up (see the container queries at the end). */

.frb-app .frb-layout { display: flex; flex-direction: column; gap: var(--frb-s-3); }
.frb-app .frb-main { display: grid; gap: var(--frb-s-5); align-content: start; min-inline-size: 0; }

/* ---------- Catalogue: device type, brand, model -------------------------- */

.frb-app .frb-catalog-screen { display: grid; gap: var(--frb-s-5); }

.frb-app .frb-catalog-step {
	padding: var(--frb-s-4);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-lg);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-card);
}

.frb-app .frb-catalog-step__heading {
	display: flex;
	gap: var(--frb-s-3);
	align-items: center;
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-lg);
	line-height: var(--frb-lh-lg);
	letter-spacing: var(--frb-tracking-tight);
}

/* The heading takes focus when a step becomes live, which must not look
   like a mouse user clicked it. */
.frb-app .frb-catalog-step__heading:focus { outline: none; }
.frb-app .frb-catalog-step__heading:focus-visible {
	outline: var(--frb-focus-width) solid var(--frb-focus);
	outline-offset: var(--frb-focus-offset);
}

.frb-app .frb-catalog-step__help {
	margin-block-start: var(--frb-s-2);
	color: var(--frb-text-muted);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
}

.frb-app .frb-catalog-step__body { margin-block-start: var(--frb-s-4); }

/* ---------- Trail ----------------------------------------------------------
   Every answered step, as one row of pills. Four collapsed cards still cost
   four cards of height; this costs one row. */

.frb-app .frb-trail__list { display: flex; flex-wrap: wrap; gap: var(--frb-s-2); }

.frb-app .frb-crumb {
	display: inline-flex;
	gap: var(--frb-s-2);
	align-items: center;
	max-inline-size: 100%;
	min-block-size: var(--frb-target);
	padding-inline: var(--frb-s-3);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-card);
	color: var(--frb-text-strong);
	text-align: start;
	cursor: pointer;
	transition: transform var(--frb-dur-fast) var(--frb-ease),
		border-color var(--frb-dur-fast) var(--frb-ease);
}

.frb-app .frb-crumb__media {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 30px;
	block-size: 30px;
	margin-inline-start: -6px;
	overflow: hidden;
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface-media);
	color: var(--frb-text-muted);
}

.frb-app .frb-crumb__media img {
	inline-size: 100%;
	block-size: 100%;
	padding: 3px;
	object-fit: contain;
}

.frb-app .frb-crumb__media .frb-image-placeholder__icon { inline-size: 16px; block-size: 16px; }

.frb-app .frb-crumb__value {
	overflow-wrap: anywhere;
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
}

.frb-app .frb-crumb__chevron { flex: none; inline-size: 16px; block-size: 16px; color: var(--frb-text-muted); }

/* The step number, matching the sell flow's. */
.frb-app .frb-catalog-step__number {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	inline-size: 26px;
	block-size: 26px;
	border-radius: var(--frb-radius-full);
	background: var(--frb-ink);
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	font-variant-numeric: tabular-nums;
	line-height: 1;
	letter-spacing: 0;
}

/* ---------- The model step -------------------------------------------------
   The one step where the amount of data is a design problem: a finished
   catalogue has hundreds of models under one brand. The server pages and the
   server searches — see src/shared/catalog/ModelSelector.js — so what is
   styled here is a search field, a count, and an explicit "show more".

   The field deliberately resembles the banner's device search without sharing
   its stylesheet: that one floats a dropdown over the page and this one
   filters the grid below it, and a control that looks identical but behaves
   differently is worse than two that look related. */

.frb-app .frb-model-search {
	margin-block-end: var(--frb-s-4);
}

/* Read, not seen: the placeholder says the same thing, and a label above a
   search box inside a step that is already titled "Which model?" is the third
   heading in a row. */
.frb-app .frb-model-search__label,
.frb-app .frb-model-search__count:empty {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.frb-app .frb-model-search__field {
	display: flex;
	gap: var(--frb-s-2);
	align-items: center;
	padding-inline: var(--frb-s-4);
	min-block-size: var(--frb-control);
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface);

	/* A ring rather than a border, so focus can thicken it without the field
	   changing size and nudging the grid below. */
	box-shadow: inset 0 0 0 var(--frb-bw) var(--frb-border-control);
	transition: box-shadow var(--frb-dur-fast) var(--frb-ease);
}

/* Focused: the ring thickens and turns brand red, with a soft wash around
   it — the same treatment as the banner's search box, and deliberately not
   the black focus recipe. See --frb-focus-field-glow in frb-tokens.css. */
.frb-app .frb-model-search__field:focus-within {
	box-shadow:
		inset 0 0 0 var(--frb-bw-strong) var(--frb-action),
		var(--frb-focus-field-glow);
}

/* High contrast drops `box-shadow` entirely, so the ring above does not
   exist there and the field would focus invisibly. */
@media (forced-colors: active) {
	.frb-app .frb-model-search__field:focus-within {
		outline: var(--frb-focus-width) solid var(--frb-focus);
		outline-offset: 1px;
	}
}

.frb-app .frb-model-search__icon {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 20px;
	block-size: 20px;
	color: var(--frb-text-muted);
}

.frb-app .frb-model-search__icon svg {
	inline-size: 100%;
	block-size: 100%;
}

/* `all: unset` first: this runs inside forty themes we do not control, and
   several of them style every `input` on the page. */
.frb-app .frb-model-search__input {
	all: unset;
	flex: 1 1 auto;
	min-inline-size: 0;
	padding-block: var(--frb-s-3);
	color: var(--frb-text-strong);
	font-family: var(--frb-font);

	/* Never below 16px: iOS zooms the whole page on focus otherwise, and a
	   step that jumps when you tap the search box looks broken. */
	font-size: var(--frb-fs-md);
	line-height: var(--frb-lh-md);
}

.frb-app .frb-model-search__input::placeholder {
	color: var(--frb-text-muted);
	opacity: 1; /* Firefox dims placeholders of its own accord. */
}

.frb-app .frb-model-search__clear {
	all: unset;
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 32px;
	block-size: 32px;
	border-radius: var(--frb-radius-full);
	color: var(--frb-text-muted);
	cursor: pointer;
}

.frb-app .frb-model-search__clear svg {
	inline-size: 18px;
	block-size: 18px;
}

.frb-app .frb-model-search__clear:hover {
	background: var(--frb-grey-100);
	color: var(--frb-text-strong);
}

.frb-app .frb-model-search__clear:focus-visible {
	outline: var(--frb-focus-width) solid var(--frb-focus);
	outline-offset: var(--frb-focus-offset);
}

/* "Showing 24 of 183" — the answer to "is my model even in here?", which is
   why it is a live region rather than a caption. */
.frb-app .frb-model-search__count {
	margin-block: var(--frb-s-2) 0;
	color: var(--frb-text-muted);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
}

.frb-app .frb-model-more {
	margin-block-start: var(--frb-s-4);
}

/* Full width and quiet. It is the end of the list, not a call to action —
   the cards above it are what the step is asking about. */
.frb-app .frb-model-more__button {
	all: unset;
	display: block;
	box-sizing: border-box;
	inline-size: 100%;
	padding: var(--frb-s-3) var(--frb-s-4);
	min-block-size: var(--frb-target);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface-subtle);
	box-shadow: inset 0 0 0 var(--frb-bw) var(--frb-border);
	color: var(--frb-text-strong);
	font-family: var(--frb-font);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-md);
	line-height: var(--frb-lh-md);
	text-align: center;
	cursor: pointer;
}

.frb-app .frb-model-more__button:hover:not(:disabled) {
	background: var(--frb-grey-100);
}

.frb-app .frb-model-more__button:focus-visible {
	outline: var(--frb-focus-width) solid var(--frb-focus);
	outline-offset: var(--frb-focus-offset);
}

.frb-app .frb-model-more__button:disabled {
	cursor: default;
	opacity: 0.6;
}

.frb-app .frb-device-type-grid,
.frb-app .frb-selector-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
	gap: var(--frb-s-2);
}

.frb-app .frb-selector-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }

.frb-app .frb-device-type-card,
.frb-app .frb-selector-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--frb-s-2);
	align-items: center;
	block-size: 100%;
	padding: 6px 6px var(--frb-s-3);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	text-align: center;
	cursor: pointer;
	transition: transform var(--frb-dur-base) var(--frb-ease),
		box-shadow var(--frb-dur-base) var(--frb-ease),
		border-color var(--frb-dur-base) var(--frb-ease),
		background-color var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-device-type-card__media,
.frb-app .frb-selector-card__image-tile {
	display: grid;
	place-items: center;
	inline-size: 100%;
	max-block-size: 132px;
	padding: var(--frb-s-3);
	overflow: hidden;
	border-radius: calc(var(--frb-radius-md) - 4px);
	background: var(--frb-surface-media);
	aspect-ratio: 1 / 1;
}

.frb-app .frb-selector-card__image-tile { padding: var(--frb-s-2); aspect-ratio: 3 / 2; }

.frb-app .frb-device-type-card__image,
.frb-app .frb-selector-card__image {
	inline-size: 100%;
	block-size: 100%;
	object-fit: contain;
}

.frb-app .frb-device-type-card__label,
.frb-app .frb-selector-card__label {
	display: block;
	margin-block: auto;
	overflow-wrap: anywhere;
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
}

.frb-app .frb-device-type-card__footer { color: var(--frb-text-muted); font-size: var(--frb-fs-xs); }
.frb-app .frb-selector-card__icon { color: var(--frb-text-muted); }

/* The shop uploads these, so some are missing. A missing picture must read
   as deliberate rather than broken. */
.frb-app .frb-image-placeholder {
	display: grid;
	place-items: center;
	gap: var(--frb-s-1);
	inline-size: 100%;
	block-size: 100%;
	color: var(--frb-text-muted);
}

.frb-app .frb-image-placeholder__icon { inline-size: 26px; block-size: 26px; }
.frb-app .frb-image-placeholder__label { font-weight: var(--frb-fw-bold); font-size: var(--frb-fs-sm); }

/* ---------- Repair categories and options --------------------------------- */

/* "What needs fixing?" is a question with the same weight as "which model?"
   above it, so it is answered with cards, the way the sell flow asks about
   condition — not with a strip of tabs that reads as chrome. */
.frb-app .frb-repair-category-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: var(--frb-s-3);
}

.frb-app .frb-repair-category-card {
	display: flex;
	gap: var(--frb-s-3);
	align-items: center;
	min-block-size: 72px;
	padding: var(--frb-s-3);
	border: var(--frb-bw-strong) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	text-align: start;
	cursor: pointer;
	transition: border-color var(--frb-dur-fast) var(--frb-ease),
		background-color var(--frb-dur-fast) var(--frb-ease),
		box-shadow var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-repair-category-card__media {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 44px;
	block-size: 44px;
	padding: var(--frb-s-2);
	border-radius: var(--frb-radius-sm);
	background: var(--frb-surface-media);
	color: var(--frb-text-brand);
}

.frb-app .frb-repair-category-card__icon { inline-size: 100%; block-size: 100%; object-fit: contain; }
.frb-app .frb-repair-category-card__media .frb-image-placeholder__icon { inline-size: 22px; block-size: 22px; }

.frb-app .frb-repair-category-card__name {
	min-inline-size: 0;
	overflow-wrap: anywhere;
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
}

/*
 * A tick, not just a tint: colour alone should never be the only cue.
 *
 * In the flow rather than absolutely placed, so it takes its own column
 * instead of landing on top of a long category name — "Screen Replacement"
 * was being overprinted by it.
 */
.frb-app .frb-repair-category-card__check {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 20px;
	block-size: 20px;
	margin-inline-start: auto;
	border-radius: var(--frb-radius-full);
	background: var(--frb-action);
	color: var(--frb-action-text);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity var(--frb-dur-fast) var(--frb-ease),
		transform var(--frb-dur-fast) var(--frb-ease);
}

.frb-app .frb-repair-category-card__check svg { inline-size: 12px; block-size: 12px; stroke-width: 3; }

.frb-app .frb-repair-category-card[aria-pressed="true"],
.frb-app .frb-repair-category-card.is-selected {
	border-color: var(--frb-border-selected);
	background: var(--frb-surface-selected);
}

.frb-app :is(.frb-repair-category-card[aria-pressed="true"], .frb-repair-category-card.is-selected) .frb-repair-category-card__check {
	opacity: 1;
	transform: none;
}

.frb-app :is(.frb-repair-category-card[aria-pressed="true"], .frb-repair-category-card.is-selected) .frb-repair-category-card__media {
	background: var(--frb-white);
}

.frb-app .frb-repair-sections { display: grid; gap: var(--frb-s-6); }

.frb-app .frb-repair-section__title {
	margin-block-end: var(--frb-s-2);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	line-height: 22px;
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-repair-section__description {
	margin-block-end: var(--frb-s-3);
	color: var(--frb-text-muted);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
}

.frb-app .frb-option-cards { display: grid; gap: var(--frb-s-3); }
.frb-app .frb-option-cards--grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.frb-app .frb-option-cards--two-up { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.frb-app .frb-option-cards--single-detail { grid-template-columns: 1fr; }

.frb-app .frb-option-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--frb-s-2);
	padding: var(--frb-s-4);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-card);
	transition: transform var(--frb-dur-base) var(--frb-ease),
		box-shadow var(--frb-dur-base) var(--frb-ease),
		border-color var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-option-card__label {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	line-height: 22px;
	letter-spacing: var(--frb-tracking-tight);
}

/* The ribbon is absolutely placed over the card's top-right corner, so the
   label on a recommended card has to stop short of it. */
.frb-app .frb-option-card.is-most-popular .frb-option-card__label { padding-inline-end: 120px; }

.frb-app .frb-option-card__description { color: var(--frb-text); font-size: var(--frb-fs-sm); line-height: var(--frb-lh-sm); }

/* The price is the thing being compared, so it carries the brand. */
.frb-app .frb-option-card__price {
	color: var(--frb-text-brand);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-xl);
	font-variant-numeric: tabular-nums;
	line-height: var(--frb-lh-xl);
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-option-card__price-base {
	margin-inline-start: var(--frb-s-2);
	color: var(--frb-text-muted);
	font-weight: var(--frb-fw-regular);
	font-size: var(--frb-fs-sm);
	text-decoration: line-through;
}

/*
 * One fact per row, never wrapped.
 *
 * Laid out side by side these wrapped at the narrowest card width and broke
 * between the label and its value — "Warranty" on one line, "12 months" on
 * the next under a different icon. A row each is a little taller and always
 * reads as icon, label, value.
 */
.frb-app .frb-option-card__meta {
	display: grid;
	gap: var(--frb-s-2);
	padding-block-start: var(--frb-s-3);
	border-block-start: var(--frb-bw) solid var(--frb-border);
}

.frb-app .frb-option-card__meta > li {
	display: grid;
	grid-template-columns: 16px minmax(0, auto) minmax(0, 1fr);
	gap: var(--frb-s-2);
	align-items: center;
}

.frb-app .frb-option-card__meta-text { display: contents; }
.frb-app .frb-option-card__meta-icon { flex: none; inline-size: 16px; block-size: 16px; color: var(--frb-text-brand); }

.frb-app .frb-option-card__meta-label {
	color: var(--frb-text-muted);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	white-space: nowrap;
}

.frb-app .frb-option-card__meta-value {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	text-align: end;
}

/* A ribbon is the one place a colour alone carries meaning, so it also
   says what it means in words. */
.frb-app .frb-option-card__ribbon {
	position: absolute;
	inset-block-start: var(--frb-s-3);
	inset-inline-end: var(--frb-s-3);
	padding: 3px 10px;
	border-radius: var(--frb-radius-full);
	background: var(--frb-ink);
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-xs);
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
}

/* The ribbon says which one the shop recommends; the card should look it
   too, so the eye lands there before it reads anything. */
.frb-app .frb-option-card.is-most-popular {
	border-color: var(--frb-border-selected);
	box-shadow: var(--frb-shadow-lift);
}

/*
 * A required choice that looked like a caption.
 *
 * The reset strips `appearance`, so the browser's own dropdown arrow goes
 * with it and what is left is text on a white rectangle — customers read
 * "Colour / Select…" as a label and then wondered why Book Repair was dead.
 * The control is drawn here instead: a real border, a chevron, and a brand
 * edge while it is still unanswered.
 */
.frb-app .frb-option-card__variant { display: grid; gap: 6px; }

.frb-app .frb-option-card__variant-label {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
}

.frb-app .frb-select { position: relative; display: block; }

.frb-app .frb-select__input {
	inline-size: 100%;
	min-block-size: var(--frb-control);
	padding-inline: var(--frb-s-4) var(--frb-s-8);
	border: var(--frb-bw-strong) solid var(--frb-border-control);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-md);
	font-family: inherit;
	line-height: var(--frb-lh-md);
	cursor: pointer;
}

.frb-app .frb-select__chevron {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: var(--frb-s-4);
	inline-size: 20px;
	block-size: 20px;
	color: var(--frb-text-strong);
	transform: translateY(-50%);
	pointer-events: none;
}

/* Unanswered, and the card's button is disabled until it is — so the edge
   that is holding things up is the one that stands out. */
.frb-app .frb-select__input[data-empty] {
	border-color: var(--frb-border-selected);
	color: var(--frb-text-muted);
}
.frb-app .frb-option-card__variant-hint { color: var(--frb-text-muted); font-size: var(--frb-fs-sm); }
.frb-app .frb-option-card__book { margin-block-start: auto; padding-block-start: var(--frb-s-2); }

/* ---------- Wizard shell and progress ------------------------------------- */

.frb-app .frb-wizard-shell { display: grid; gap: var(--frb-s-4); }

.frb-app .frb-wizard-shell__back-to-catalog {
	display: inline-flex;
	gap: var(--frb-s-2);
	align-items: center;
	justify-self: start;
	min-block-size: var(--frb-target);
	padding-inline: var(--frb-s-3);
	border: 0;
	border-radius: var(--frb-radius-full);
	background: transparent;
	color: var(--frb-text-brand);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	cursor: pointer;
	transition: background-color var(--frb-dur-fast) var(--frb-ease);
}

.frb-app .frb-wizard-shell__summary { display: grid; gap: var(--frb-s-3); }

/*
 * The progress tracker.
 *
 * A filled rail behind the nodes rather than a separate bar: one element
 * that both locates the customer and shows how far is left, instead of two
 * that have to agree. `--frb-progress` is set inline by the component.
 */
.frb-app .frb-progress-tracker {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--frb-steps, 4), 1fr);
	gap: var(--frb-s-2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.frb-app .frb-progress-tracker::before,
.frb-app .frb-progress-tracker::after {
	content: "";
	position: absolute;
	inset-block-start: 15px;
	block-size: 3px;
	border-radius: var(--frb-radius-full);
}

/* The rail, inset by half a node at each end so it never pokes out. */
.frb-app .frb-progress-tracker::before {
	inset-inline: calc(50% / var(--frb-steps, 4)) calc(50% / var(--frb-steps, 4));
	background: var(--frb-grey-100);
}

.frb-app .frb-progress-tracker::after {
	inset-inline-start: calc(50% / var(--frb-steps, 4));
	inline-size: calc( ( 100% - 100% / var(--frb-steps, 4) ) * var(--frb-progress, 0) );
	background: linear-gradient(90deg, var(--frb-red-700), var(--frb-red-600));
	transition: inline-size var(--frb-dur-slow) var(--frb-ease);
}

.frb-app .frb-progress-tracker__node {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 6px;
	justify-items: center;
	text-align: center;
}

.frb-app .frb-progress-tracker__index {
	display: grid;
	place-items: center;
	inline-size: 32px;
	block-size: 32px;
	border: var(--frb-bw-strong) solid var(--frb-border);
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface);
	color: var(--frb-text-muted);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	font-variant-numeric: tabular-nums;
	transition: background-color var(--frb-dur-base) var(--frb-ease),
		border-color var(--frb-dur-base) var(--frb-ease),
		color var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-progress-tracker__index svg { inline-size: 16px; block-size: 16px; stroke-width: 3; }

.frb-app .frb-progress-tracker__label {
	color: var(--frb-text-muted);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
}

.frb-app .frb-progress-tracker__node.is-done .frb-progress-tracker__index {
	border-color: var(--frb-action);
	background: var(--frb-action);
	color: var(--frb-action-text);
}

/* The current node is the only one with a halo — "you are here" should be
   findable without reading. */
.frb-app .frb-progress-tracker__node.is-current .frb-progress-tracker__index {
	border-color: var(--frb-action);
	background: var(--frb-surface);
	box-shadow: 0 0 0 4px var(--frb-red-50);
	color: var(--frb-text-brand);
}

.frb-app .frb-progress-tracker__node.is-current .frb-progress-tracker__label {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
}

.frb-app .frb-progress-tracker__node.is-done .frb-progress-tracker__label { color: var(--frb-text); }

/* ---------- Wizard step panels -------------------------------------------- */

.frb-app .frb-step-method,
.frb-app .frb-step-date-time,
.frb-app .frb-step-details,
.frb-app .frb-step-email {
	display: grid;
	gap: var(--frb-s-4);
	padding: var(--frb-s-4);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-lg);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-card);
	animation: frb-step-in var(--frb-dur-base) var(--frb-ease-out);
}

@keyframes frb-step-in {
	from { transform: translateY(8px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

.frb-app .frb-step-method h2,
.frb-app .frb-step-date-time h2,
.frb-app .frb-step-details h2,
.frb-app .frb-step-email h2 {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-lg);
	line-height: var(--frb-lh-lg);
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-step-date-time__grid,
.frb-app .frb-step-details__grid,
.frb-app .frb-step-email__grid { display: grid; gap: var(--frb-s-5); }

.frb-app .frb-step-not-built { display: grid; gap: var(--frb-s-3); justify-items: start; }

.frb-app .frb-step-not-built__notice {
	padding: var(--frb-s-4);
	border: var(--frb-bw-strong) solid var(--frb-warning-text);
	border-radius: var(--frb-radius-md);
	background: var(--frb-warning-bg);
	color: var(--frb-text-strong);
}

/* ---------- Method cards --------------------------------------------------- */

.frb-app .frb-method-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: var(--frb-s-3);
}

.frb-app .frb-method-card {
	display: grid;
	gap: var(--frb-s-2);
	justify-items: center;
	padding: var(--frb-s-6) var(--frb-s-4);
	border: var(--frb-bw-strong) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	text-align: center;
	cursor: pointer;
	transition: transform var(--frb-dur-base) var(--frb-ease),
		border-color var(--frb-dur-base) var(--frb-ease),
		box-shadow var(--frb-dur-base) var(--frb-ease),
		background-color var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-method-card__icon {
	display: grid;
	place-items: center;
	inline-size: 56px;
	block-size: 56px;
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface-media);
	color: var(--frb-text-strong);
	transition: background-color var(--frb-dur-base) var(--frb-ease),
		color var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-method-card__icon svg { inline-size: 26px; block-size: 26px; stroke-width: 1.7; }

.frb-app .frb-method-card__label {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	line-height: 22px;
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-method-card__description { color: var(--frb-text-muted); font-size: var(--frb-fs-sm); line-height: var(--frb-lh-sm); }

/* ---------- Date and time -------------------------------------------------- */

.frb-app .frb-slot-groups { display: grid; gap: var(--frb-s-4); }

.frb-app .frb-slot-group__title {
	display: flex;
	gap: var(--frb-s-2);
	align-items: center;
	margin-block-end: var(--frb-s-2);
	color: var(--frb-text-muted);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-xs);
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
}

.frb-app .frb-slot-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
	gap: var(--frb-s-2);
}

.frb-app .frb-slot-grid__slot {
	display: flex;
	align-items: center;
	justify-content: center;
	min-block-size: var(--frb-target);
	padding: var(--frb-s-2);
	border: var(--frb-bw-strong) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: border-color var(--frb-dur-fast) var(--frb-ease),
		background-color var(--frb-dur-fast) var(--frb-ease),
		color var(--frb-dur-fast) var(--frb-ease);
}

/* ---------- Store location and map ----------------------------------------- */

/*
 * Closed by default (see StoreLocationPanel). Nothing in it is part of the
 * decision the step is asking for, and open it pushed that step's own Back
 * and Continue a map's height below the fold. The address is in the summary
 * line, so the useful part is readable without opening anything.
 */
.frb-app .frb-store-location {
	display: grid;
	gap: var(--frb-s-3);
	padding: var(--frb-s-3) var(--frb-s-4);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface-subtle);
}

.frb-app .frb-store-location__summary {
	display: flex;
	gap: var(--frb-s-3);
	align-items: center;
	min-block-size: var(--frb-target);
	list-style: none;
	cursor: pointer;
}

/* Safari draws its own disclosure triangle through a pseudo-element that
   `list-style: none` alone does not reach. */
.frb-app .frb-store-location__summary::-webkit-details-marker { display: none; }

.frb-app .frb-store-location__summary-text { display: grid; min-inline-size: 0; }

.frb-app .frb-store-location__summary-title {
	display: block;
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
}

.frb-app .frb-store-location__summary-sub {
	display: block;
	overflow: hidden;
	color: var(--frb-text-muted);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.frb-app .frb-store-location__chevron {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 20px;
	block-size: 20px;
	margin-inline-start: auto;
	color: var(--frb-text-muted);
	transition: transform var(--frb-dur-base) var(--frb-ease);
}

.frb-app .frb-store-location__chevron svg { inline-size: 20px; block-size: 20px; }
.frb-app .frb-store-location[open] .frb-store-location__chevron { transform: rotate(180deg); }

.frb-app .frb-store-location__pin {
	display: grid;
	flex: none;
	place-items: center;
	inline-size: 34px;
	block-size: 34px;
	border-radius: var(--frb-radius-full);
	background: var(--frb-red-50);
	color: var(--frb-text-brand);
}

.frb-app .frb-store-location__name {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-store-location__address,
.frb-app .frb-store-location__postcode { color: var(--frb-text); font-size: var(--frb-fs-sm); line-height: var(--frb-lh-sm); }

.frb-app .frb-store-location__distance {
	display: inline-block;
	margin-block-start: var(--frb-s-1);
	padding: 2px 10px;
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface);
	color: var(--frb-text-muted);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-xs);
}

.frb-app .frb-store-location__body { display: grid; gap: var(--frb-s-4); }

.frb-app .frb-store-location__details { display: grid; gap: var(--frb-s-1); }

/*
 * One row of three things you can do with this address. Two of them are
 * links and one is a component Button, so the shared class states the shape
 * and the `.components-button` override below only has to undo what the
 * library insists on.
 */
.frb-app .frb-store-location__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--frb-s-2);
	margin-block-start: var(--frb-s-3);
}

.frb-app .frb-store-location__action {
	display: inline-flex;
	gap: var(--frb-s-2);
	align-items: center;
	justify-content: center;
	min-block-size: var(--frb-target);
	padding-inline: var(--frb-s-4);
	border: var(--frb-bw-strong) solid var(--frb-border-control);
	border-radius: var(--frb-radius-full);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: 18px;
	text-align: center;
	transition: border-color var(--frb-dur-fast) var(--frb-ease),
		background-color var(--frb-dur-fast) var(--frb-ease),
		color var(--frb-dur-fast) var(--frb-ease);
}

/* The library's own secondary sizing is taller and squarer than the links
   beside it; this is what makes all three one row of matching chips. */
.frb-app .frb-store-location__actions .components-button.is-secondary {
	min-block-size: var(--frb-target);
	padding-inline: var(--frb-s-4);
	border: var(--frb-bw-strong) solid var(--frb-border-control);
	border-radius: var(--frb-radius-full);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
}

.frb-app .frb-store-map {
	inline-size: 100%;
	min-block-size: 220px;
	overflow: hidden;
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
}

.frb-app .frb-store-map__marker--selected { color: var(--frb-action); }
.frb-app .frb-store-map__marker--user { color: var(--frb-ink); }

/* ---------- The running summary panel --------------------------------------
   Narrow: a bar pinned to the bottom of the screen, collapsed to the device
   and the figure, expanding on request. Wide: a sticky card in the sidebar
   with everything visible at once. Same arrangement as the sell flow's
   price panel. */

.frb-app .frb-panel {
	--frb-focus: #fff;
	--frb-focus-halo: #000;

	/* Sticky is the resting state; `.is-pinned` promotes it to fixed while
	   the flow is on screen. A bottom-sticky box unpins the moment the end
	   of its container scrolls into view, which here is halfway down the
	   contact form — see the IntersectionObserver in FrbApp. */
	position: sticky;
	inset-block-end: 8px;
	z-index: 20;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas:
		"device device"
		"eyebrow toggle"
		"price price"
		"rows rows"
		"caveat caveat";
	gap: 2px var(--frb-s-3);
	align-items: center;
	max-block-size: 72vh;
	padding: var(--frb-s-3) var(--frb-s-4) max(var(--frb-s-3), env(safe-area-inset-bottom));
	overflow: auto;
	border: var(--frb-bw-strong) solid transparent;
	border-radius: var(--frb-radius-lg);
	background: var(--frb-glow), var(--frb-ink);
	box-shadow: var(--frb-shadow-float);
	color: var(--frb-on-dark);
	animation: frb-rise var(--frb-dur-slow) var(--frb-ease-out);
}

@keyframes frb-rise {
	from { transform: translateY(16px); opacity: 0; }
	to { transform: none; opacity: 1; }
}

/* The bar, while any of the flow is visible. Constrained and centred so a
   narrow component inside a wide viewport keeps its own width rather than
   spanning the window. */
.frb-app .frb-panel.is-pinned {
	position: fixed;
	/* Lines up with the page gutter above it. A fixed element is out of
	   the flow, so it does not inherit the wrapper's padding. */
	inset-inline: var(--frb-gutter);
	inset-block-end: var(--frb-s-2);
	max-inline-size: var(--frb-max);
	margin-inline: auto;
}

/* Room for it, since a fixed bar leaves the flow and stops reserving space. */
.frb-app .frb-layout { padding-block-end: var(--frb-bar-h); }

/* Nothing is committed to yet, and the dashed edge says so without words. */
.frb-app .frb-panel:not([data-state="priced"]) {
	border-style: dashed;
	border-color: var(--frb-border-on-dark);
}

.frb-app .frb-panel__device {
	grid-area: device;
	display: flex;
	gap: var(--frb-s-2);
	align-items: center;
	min-inline-size: 0;
	margin-block-end: var(--frb-s-1);
}

.frb-app .frb-panel__thumb {
	flex: none;
	display: grid;
	place-items: center;
	inline-size: 32px;
	block-size: 32px;
	padding: 3px;
	border-radius: var(--frb-radius-sm);
	background: var(--frb-white);
	object-fit: contain;
}

.frb-app .frb-panel__thumb.frb-image-placeholder { color: var(--frb-grey-600); }
.frb-app .frb-panel__thumb .frb-image-placeholder__icon { inline-size: 18px; block-size: 18px; }

.frb-app .frb-panel__device-name {
	overflow: hidden;
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.frb-app .frb-panel__device-name--empty { color: var(--frb-on-dark-muted); font-weight: var(--frb-fw-regular); }

.frb-app .frb-panel__eyebrow {
	grid-area: eyebrow;
	color: var(--frb-on-dark-muted);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
}

.frb-app .frb-panel__price {
	grid-area: price;
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-2xl);
	font-variant-numeric: tabular-nums;
	line-height: var(--frb-lh-2xl);
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-panel__hint {
	grid-area: price;
	color: var(--frb-on-dark-soft);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
}

/* Collapsed by default on the bar: the rows are the thing a tap reveals. */
.frb-app .frb-panel__rows { grid-area: rows; display: none; }
.frb-app .frb-panel.is-expanded .frb-panel__rows { display: grid; gap: var(--frb-s-2); }

.frb-app .frb-panel__row {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: var(--frb-s-2) var(--frb-s-4);
	align-items: baseline;
	padding-block-start: var(--frb-s-2);
	border-block-start: var(--frb-bw) solid var(--frb-border-on-dark);
}

.frb-app .frb-panel__row-label {
	color: var(--frb-on-dark-muted);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
	white-space: nowrap;
}

.frb-app .frb-panel__row-value {
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	overflow-wrap: anywhere;
	text-align: end;
}

.frb-app .frb-panel__toggle {
	grid-area: toggle;
	justify-self: end;
	min-block-size: var(--frb-target);
	padding-inline: var(--frb-s-3);
	border: 0;
	border-radius: var(--frb-radius-full);
	background: transparent;
	color: var(--frb-on-dark-soft);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-xs);
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
	cursor: pointer;
}

.frb-app .frb-panel__caveat {
	grid-area: caveat;
	display: none;
	gap: var(--frb-s-2);
	align-items: center;
	margin-block-start: var(--frb-s-2);
	color: var(--frb-on-dark-muted);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
}

.frb-app .frb-panel.is-expanded .frb-panel__caveat { display: flex; }
.frb-app .frb-panel__caveat-icon { flex: none; inline-size: 14px; block-size: 14px; color: var(--frb-accent-on-dark); }

/* ---------- Summary --------------------------------------------------------- */

.frb-app .frb-summary-card {
	display: grid;
	gap: var(--frb-s-2);
	padding: var(--frb-s-4);
	border-radius: var(--frb-radius-lg);
	background: var(--frb-glow), var(--frb-ink);
	color: var(--frb-on-dark);
}

.frb-app .frb-summary-card > h3 {
	padding-block-end: var(--frb-s-3);
	border-block-end: var(--frb-bw) solid var(--frb-border-on-dark);
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-lg);
	line-height: var(--frb-lh-lg);
	letter-spacing: var(--frb-tracking-tight);
}

/*
 * Label and value on one line, the label quiet and the value plain: read as
 * a receipt rather than a paragraph. Below 420px the pairs stack, because a
 * store address will not share a line with its label on a phone.
 */
.frb-app .frb-summary-card > dl {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr);
	gap: var(--frb-s-2) var(--frb-s-5);
	align-items: baseline;
}

.frb-app .frb-summary-card dt {
	color: var(--frb-on-dark-muted);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	white-space: nowrap;
}

.frb-app .frb-summary-card dd {
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
	overflow-wrap: anywhere;
}

@media (max-width: 420px) {
	.frb-app .frb-summary-card > dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.frb-app .frb-summary-card dt { margin-block-start: var(--frb-s-3); }
	.frb-app .frb-summary-card dt:first-child { margin-block-start: 0; }
}

.frb-app .frb-summary-card strong,
.frb-app .frb-summary-card b { color: var(--frb-on-dark); }
.frb-app .frb-summary-card__extra { color: var(--frb-on-dark-muted); font-size: var(--frb-fs-sm); line-height: var(--frb-lh-sm); }

.frb-app .frb-summary-card__price {
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-2xl);
	font-variant-numeric: tabular-nums;
	line-height: var(--frb-lh-2xl);
	letter-spacing: var(--frb-tracking-tight);
}

/* ---------- Forms ------------------------------------------------------------ */

.frb-app .frb-customer-form { display: grid; gap: var(--frb-s-4); }
.frb-app .frb-customer-form__row { display: grid; grid-template-columns: 1fr; gap: var(--frb-s-3); }
.frb-app .frb-customer-form > .components-base-control { min-inline-size: 0; }
.frb-app .frb-customer-form__row > :is(.components-base-control, .frb-field-with-error) { min-inline-size: 0; }
.frb-app .frb-field { display: block; min-inline-size: 0; }

/* The two consent boxes and the business-customer one read as a group
   rather than as three more form fields. */
.frb-app .frb-customer-form > .components-checkbox-control { margin-block-start: calc(var(--frb-s-1) * -1); }

.frb-app .frb-field-error {
	display: flex;
	gap: var(--frb-s-2);
	align-items: flex-start;
	margin-block-start: 6px;
	color: var(--frb-error-text);
	font-weight: var(--frb-fw-medium);
	font-size: var(--frb-fs-sm);
	line-height: 20px;
}

/* `.frb-field-with-error` is only the wrapper that reserves room for a
   message; `.frb-field--invalid` is the state. */
.frb-app .frb-field--invalid .components-text-control__input {
	border-color: var(--frb-error-text);
	background: var(--frb-error-bg);
}

/* ---------- Buttons and navigation -------------------------------------------- */

.frb-app .frb-wizard-nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--frb-s-3);
	align-items: center;
	justify-content: space-between;
	margin-block-start: var(--frb-s-2);
}

.frb-app .frb-wizard-nav__submit { margin-inline-start: auto; }

/* ---------- Messages, loading --------------------------------------------------- */

.frb-app .frb-state-message {
	display: flex;
	gap: var(--frb-s-3);
	align-items: flex-start;
	padding: var(--frb-s-4);
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface-subtle);
	color: var(--frb-text);
	font-size: var(--frb-fs-sm);
	line-height: 20px;
}

.frb-app .frb-state-message--error {
	border-color: var(--frb-error-text);
	border-width: var(--frb-bw-strong);
	background: var(--frb-error-bg);
	color: var(--frb-text-strong);
}

/* Skeleton rather than a spinner wherever the shape is known, so nothing
   jumps when the content lands. */
.frb-app .frb-loading {
	min-block-size: 60px;
	border-radius: var(--frb-radius-md);
	background: linear-gradient(100deg, var(--frb-grey-100) 30%, var(--frb-red-50) 50%, var(--frb-grey-100) 70%);
	background-size: 300% 100%;
	animation: frb-shimmer 1.4s var(--frb-ease) infinite;
	color: transparent;
}

@keyframes frb-shimmer {
	from { background-position: 150% 0; }
	to { background-position: -150% 0; }
}

/* ---------- Confirmation ---------------------------------------------------------
   A ticket, like the sell flow's: nothing has been bought, and what the
   customer is holding is an appointment with a reference on it. */

.frb-app .frb-step-confirmation,
.frb-app .frb-step-email-confirm {
	max-inline-size: 560px;
	margin-inline: auto;
	overflow: hidden;
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-lg);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-card);
	text-align: center;
}

.frb-app .frb-confirmation__icon {
	display: grid;
	place-items: center;
	inline-size: 64px;
	block-size: 64px;
	margin: var(--frb-s-6) auto var(--frb-s-4);
	border-radius: var(--frb-radius-full);
	background: var(--frb-success-bg);
	color: var(--frb-success-text);
}

.frb-app .frb-confirmation__icon svg { inline-size: 30px; block-size: 30px; stroke-width: 2.4; }

/* "You're booked in!" is the answer the page exists to give, so it leads and
   the thanks beneath it steps back. */
.frb-app :is(.frb-step-confirmation, .frb-step-email-confirm) > h2 {
	padding-inline: var(--frb-s-5);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-2xl);
	line-height: var(--frb-lh-2xl);
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .frb-confirmation__thanks {
	margin-block-start: var(--frb-s-2);
	padding-inline: var(--frb-s-5);
	color: var(--frb-text);
	font-size: var(--frb-fs-md);
	line-height: var(--frb-lh-md);
}

.frb-app :is(.frb-step-confirmation, .frb-step-email-confirm) > p {
	padding-inline: var(--frb-s-5);
	color: var(--frb-text);
	font-size: var(--frb-fs-sm);
	line-height: var(--frb-lh-sm);
}

/* The reference is read down the phone and quoted at the counter, so it is
   the largest thing here and selectable in one tap. The caption shrinks
   rather than the code, and the code never breaks across lines. */
.frb-app .frb-confirmation__reference {
	display: grid;
	gap: var(--frb-s-1);
	margin: var(--frb-s-5) var(--frb-s-5) var(--frb-s-4);
	padding: var(--frb-s-4) var(--frb-s-3);
	border-radius: var(--frb-radius-md);
	background: var(--frb-glow), var(--frb-ink);
	color: var(--frb-on-dark-muted);
	font-size: var(--frb-fs-xs);
	line-height: var(--frb-lh-xs);
	letter-spacing: var(--frb-tracking-caps);
	text-transform: uppercase;
}

.frb-app .frb-confirmation__reference strong {
	display: block;
	color: var(--frb-on-dark);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-2xl);
	font-variant-numeric: tabular-nums;
	line-height: var(--frb-lh-2xl);
	letter-spacing: 0.04em;
	text-transform: none;
	white-space: nowrap;
	user-select: all;
}

/* The receipt is a list of pairs; centring it strands long values like a
   store address away from their label. */
.frb-app :is(.frb-step-confirmation, .frb-step-email-confirm) .frb-summary-card {
	margin-inline: var(--frb-s-5);
	text-align: start;
}

.frb-app .frb-confirmation__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--frb-s-3);
	justify-content: center;
	padding: var(--frb-s-5);
}

/* ---------- @wordpress/components overrides -------------------------------------
   The calendar is their DatePicker and most controls are their Button, so
   these exist to bring those into the system. Scoped under `.frb-app`, so
   nothing leaks into the rest of the page or wp-admin. */

.frb-app .components-button {
	min-block-size: var(--frb-control);
	padding: 0 var(--frb-s-6);
	border-radius: var(--frb-radius-full);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-md);
	font-family: inherit;
	letter-spacing: var(--frb-tracking-tight);
}

.frb-app .components-button.is-primary {
	border: var(--frb-bw-strong) solid var(--frb-action);
	background: var(--frb-action);
	box-shadow: none;
	color: var(--frb-action-text);
}

.frb-app .components-button.is-secondary {
	border: var(--frb-bw-strong) solid var(--frb-ink-action);
	background: var(--frb-surface);
	box-shadow: none;
	color: var(--frb-ink-action);
}

/* Tertiary is the quiet one in this component library: a way back, not a way
   forward. Outlining it would give the step two buttons of equal weight. */
.frb-app .components-button.is-tertiary {
	border: var(--frb-bw-strong) solid transparent;
	background: transparent;
	box-shadow: none;
	color: var(--frb-text-brand);
}

.frb-app .components-button.is-small { min-block-size: var(--frb-target); padding-inline: var(--frb-s-4); font-size: var(--frb-fs-sm); }

.frb-app .components-button:disabled,
.frb-app .components-button[aria-disabled="true"] {
	border-color: var(--frb-surface-disabled);
	background: var(--frb-surface-disabled);
	color: var(--frb-text-disabled);
	opacity: 1;
}

/* `inline-size: 100%` because the reset sets it to `auto`, and an `auto`
   textarea falls back to its `cols` attribute — about 40 characters — so it
   sat at half the width of the inputs above it. */
.frb-app :is(.components-text-control__input, .components-textarea-control__input, .components-select-control__input) {
	inline-size: 100%;
	min-block-size: var(--frb-control);
	padding: 0 var(--frb-s-4);
	border: var(--frb-bw-strong) solid var(--frb-border-control);
	border-radius: var(--frb-radius-sm);
	background: var(--frb-surface);
	box-shadow: none;
	color: var(--frb-text-strong);
	font-size: var(--frb-fs-md);
	font-family: inherit;
	line-height: var(--frb-lh-md);
}

.frb-app .components-textarea-control__input { min-block-size: 88px; padding-block: var(--frb-s-3); }

.frb-app :is(.components-base-control__label, .components-input-control__label) {
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-bold);
	font-size: var(--frb-fs-sm);
	text-transform: none;
}

/* The library overlays its own tick on the input, positioned absolutely. The
   reset puts it back in flow, where it reads as a second, floating check —
   and we draw our own on the box anyway, so it goes. */
.frb-app .components-checkbox-control__checked { display: none; }

.frb-app .components-checkbox-control__input-container {
	display: inline-flex;
	flex: none;
	inline-size: 20px;
	block-size: 20px;
}

/* The row's own gap comes from an inline custom property set to zero, which
   a stylesheet cannot reach, so the space is put on the label. */
.frb-app .components-checkbox-control__label { margin-inline-start: var(--frb-s-3); }

/* The calendar. Days are buttons, so the system's own button rules would
   stretch them into pills — reset the shape, then style the grid. */
.frb-app .components-datetime__date {
	padding: 0;
	border: var(--frb-bw) solid var(--frb-border);
	border-radius: var(--frb-radius-md);
	background: var(--frb-surface);
}

.frb-app .components-datetime__date .components-button {
	min-block-size: 0;
	padding: 0;
	border: 0;
	border-radius: var(--frb-radius-sm);
	font-size: var(--frb-fs-sm);
}

.frb-app .components-datetime__date [role="application"] { padding: var(--frb-s-3); }

.frb-app .components-datetime__date .components-datetime__date-help-button { margin: 0 var(--frb-s-3) var(--frb-s-3); }

/* The subtree is exempt from the reset, so the theme reaches the day buttons
   and paints them its own link colour. Every one of them is restated here. */
.frb-app .components-datetime__date__day {
	border-radius: var(--frb-radius-full);
	color: var(--frb-text-strong);
	font-weight: var(--frb-fw-medium);
	font-family: inherit;
}

/* The chosen day is painted by the library itself, from the accent variable
   set in frb-tokens.css; only its weight is ours. */
.frb-app .components-datetime__date__day[aria-label*="Selected"] { font-weight: var(--frb-fw-bold); }

.frb-app .components-datetime__date__day:disabled {
	background: transparent;
	color: var(--frb-text-disabled);
	text-decoration: line-through;
}

/* A day with a booking already on it. */
.frb-app .components-datetime__date .components-datetime__date--has-events button::after {
	background: var(--frb-action);
}

/* ---------- Interactive states, defended ------------------------------------------
   The reset covers the base state only. A theme's `.elementor-kit-5
   button:hover` is (0,2,1) and beats it, so the moment anything is hovered
   the shop's theme supplies the colour — on the site this was built
   against, white text on indigo. Everything below re-declares colour *and*
   background at (0,3,1). */

.frb-app.frb-app :where(a, button, summary, label, input, textarea, [tabindex]):is(:hover, :focus, :active, :visited) {
	color: inherit;
	text-decoration: none;
}

/*
 * `:not(...)` on every hover rule below that has a matching selected rule.
 * Hover is (0,3,1) and selected is (0,3,0), so without it moving the
 * pointer over the card you have already chosen repaints it as unchosen.
 */
.frb-app.frb-app :is(.frb-device-type-card, .frb-selector-card, .frb-option-card):is(:hover, :focus-visible):not([aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-control);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-lift);
	color: var(--frb-text-strong);
	transform: translateY(-2px);
}

.frb-app.frb-app :is(.frb-device-type-card, .frb-selector-card):is([aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-selected);
	background: var(--frb-surface-selected);
	box-shadow: 0 0 0 1px var(--frb-border-selected);
	color: var(--frb-text-strong);
	transform: none;
}

/* A pill is a button, so the theme reaches it the same way it reaches the
   cards — colour and background both restated. */
.frb-app.frb-app .frb-crumb:is(:hover, :focus-visible) {
	border-color: var(--frb-border-control);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
	transform: translateY(-1px);
}

.frb-app.frb-app .frb-repair-category-card:is(:hover, :focus-visible):not([aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-control);
	background: var(--frb-surface);
	box-shadow: var(--frb-shadow-lift);
	color: var(--frb-text-strong);
}

.frb-app.frb-app .frb-repair-category-card:is([aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-selected);
	background: var(--frb-surface-selected);
	color: var(--frb-text-strong);
}

.frb-app.frb-app .frb-method-card:is(:hover, :focus-visible) {
	border-color: var(--frb-border-selected);
	background: var(--frb-surface-selected);
	box-shadow: var(--frb-shadow-lift);
	color: var(--frb-text-strong);
	transform: translateY(-2px);
}

.frb-app.frb-app .frb-method-card:is(:hover, :focus-visible) .frb-method-card__icon {
	background: var(--frb-action);
	color: var(--frb-action-text);
}

.frb-app.frb-app .frb-slot-grid__slot:is(:hover, :focus-visible):not(:disabled, [aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-control);
	background: var(--frb-surface);
	color: var(--frb-text-strong);
}

.frb-app.frb-app .frb-slot-grid__slot:is([aria-pressed="true"], .is-selected) {
	border-color: var(--frb-border-selected);
	background: var(--frb-surface-selected);
	color: var(--frb-text-brand);
}

.frb-app.frb-app .frb-slot-grid__slot:disabled {
	border-color: var(--frb-border);
	background: var(--frb-surface-disabled);
	color: var(--frb-text-disabled);
	cursor: not-allowed;
	text-decoration: line-through;
}

.frb-app.frb-app .frb-repair-category-tab:is(:hover, :focus-visible):not([aria-selected="true"]) {
	background: var(--frb-surface);
	color: var(--frb-text-strong);
}

/* All three chips, links and component Button alike, land on the same
   hover — and both colour and background are restated, so a theme's
   `button:hover { color: #fff }` cannot leave white text on white. */
.frb-app.frb-app .frb-store-location__action:is(:hover, :focus-visible) {
	border-color: var(--frb-ink-action);
	background: var(--frb-ink-action);
	color: var(--frb-white);
}

.frb-app.frb-app .frb-wizard-shell__back-to-catalog:is(:hover, :focus-visible) {
	background: var(--frb-surface-selected);
	color: var(--frb-text-brand);
}

.frb-app.frb-app .components-button.is-primary:is(:hover, :focus) {
	border-color: var(--frb-action-hover);
	background: var(--frb-action-hover);
	color: var(--frb-action-text);
}

.frb-app.frb-app .components-button.is-primary:active {
	border-color: var(--frb-action-active);
	background: var(--frb-action-active);
	color: var(--frb-action-text);
}

.frb-app.frb-app .components-button.is-secondary:is(:hover, :focus, :active) {
	border-color: var(--frb-ink-action);
	background: var(--frb-ink-action);
	color: var(--frb-white);
}

/* A tint, not an inversion: the quiet button must stay quiet when reached
   for, and a background is set alongside the colour so a theme's
   `button:hover { color: #fff }` cannot leave white text on white. */
.frb-app.frb-app .components-button.is-tertiary:is(:hover, :focus, :active) {
	border-color: transparent;
	background: var(--frb-surface-selected);
	color: var(--frb-text-brand);
}

/* The chosen day is excluded: it is already filled with the accent, and a
   tint over it would read as a different day being hovered. */
.frb-app.frb-app .components-datetime__date button:is(:hover, :focus-visible):not(:disabled, [aria-label*="Selected"]) {
	background: var(--frb-surface-selected);
	color: var(--frb-text-brand);
}

.frb-app.frb-app .components-datetime__date button[aria-pressed="true"]:is(:hover, :focus) {
	background: var(--frb-action-hover);
	color: var(--frb-action-text);
}

.frb-app.frb-app :is(.components-text-control__input, .components-textarea-control__input):is(:hover, :focus) {
	background: var(--frb-surface);
	color: var(--frb-text-strong);
}

.frb-app.frb-app :is(.components-text-control__input, .components-textarea-control__input):focus {
	border-color: var(--frb-focus);
	box-shadow: none;
}

/* ---------- Wider containers ------------------------------------------------------ */

@container frb (min-width: 560px) {
	.frb-app .frb-catalog-step,
	.frb-app :is(.frb-step-method, .frb-step-date-time, .frb-step-details, .frb-step-email) { padding: var(--frb-s-5); }

	.frb-app .frb-catalog-step__heading { font-size: var(--frb-fs-xl); line-height: var(--frb-lh-xl); }
	.frb-app .frb-catalog-step__number { inline-size: 28px; block-size: 28px; }
	.frb-app .frb-customer-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.frb-app .frb-progress-tracker__label { font-size: var(--frb-fs-sm); }
	.frb-app .frb-hero { padding: var(--frb-s-7) var(--frb-s-6); }
	.frb-app .frb-hero__inner { min-block-size: 150px; }
	.frb-app .frb-hero__art { display: grid; }
	.frb-app .frb-hero__device { font-size: 40px; }
}

@container frb (min-width: 880px) {
	.frb-app .frb-step-date-time__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
	.frb-app .frb-hero__device { font-size: var(--frb-fs-price); line-height: var(--frb-lh-price); }

	/*
	 * Two columns, and the panel becomes a sticky card beside the flow.
	 *
	 * `align-items` is deliberately left alone: `start` would shrink the
	 * row to the panel's own height, and a sticky box cannot travel outside
	 * its own grid area, so it would scroll away with the page. The columns
	 * stretch to the row instead, and `block-size: fit-content` keeps the
	 * panel itself short.
	 */
	.frb-app .frb-layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) var(--frb-sidebar);
		gap: var(--frb-s-6);
		padding-block-end: 0;
	}

	/* Nothing to sit beside once the booking is made. */
	.frb-app .frb-layout--alone { grid-template-columns: minmax(0, 1fr); }

	.frb-app .frb-panel,
	.frb-app .frb-panel.is-pinned {
		position: sticky;
		inset-block: var(--frb-sticky-top) auto;
		inset-inline: auto;
		max-inline-size: none;
		block-size: fit-content;
		margin-inline: 0;
		grid-template-columns: 1fr;
		grid-template-areas: "device" "eyebrow" "price" "rows" "caveat";
		gap: var(--frb-s-2);
		max-block-size: none;
		padding: var(--frb-s-6);
		overflow: visible;
		box-shadow: var(--frb-shadow-lift);
		animation: none;
	}

	/* Everything is visible at once up here, so there is nothing to toggle. */
	.frb-app .frb-panel__toggle { display: none; }
	.frb-app .frb-panel__rows { display: grid; gap: var(--frb-s-2); }
	.frb-app .frb-panel__caveat { display: flex; }
	.frb-app .frb-panel__price { font-size: var(--frb-fs-price); line-height: var(--frb-lh-price); }
	.frb-app .frb-panel__device-name { font-size: var(--frb-fs-md); white-space: normal; }
	.frb-app .frb-panel__thumb { inline-size: 40px; block-size: 40px; }
}

@supports not (container-type: inline-size) {
	@media (min-width: 768px) {
		.frb-app .frb-catalog-step,
		.frb-app :is(.frb-step-method, .frb-step-date-time, .frb-step-details, .frb-step-email) { padding: var(--frb-s-5); }

		.frb-app .frb-catalog-step__heading { font-size: var(--frb-fs-xl); line-height: var(--frb-lh-xl); }
		.frb-app .frb-customer-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		.frb-app .frb-hero__inner { min-block-size: 150px; }
		.frb-app .frb-hero__art { display: grid; }
		.frb-app .frb-hero__device { font-size: 40px; }
	}

	@media (min-width: 1024px) {
		.frb-app .frb-step-date-time__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
		.frb-app .frb-hero__device { font-size: var(--frb-fs-price); line-height: var(--frb-lh-price); }

		.frb-app .frb-layout {
			display: grid;
			grid-template-columns: minmax(0, 1fr) var(--frb-sidebar);
			gap: var(--frb-s-6);
			padding-block-end: 0;
		}

		.frb-app .frb-layout--alone { grid-template-columns: minmax(0, 1fr); }

		.frb-app .frb-panel,
		.frb-app .frb-panel.is-pinned {
			position: sticky;
			inset-block: var(--frb-sticky-top) auto;
			inset-inline: auto;
			max-inline-size: none;
			block-size: fit-content;
			margin-inline: 0;
			grid-template-columns: 1fr;
			grid-template-areas: "device" "eyebrow" "price" "rows" "caveat";
			gap: var(--frb-s-2);
			max-block-size: none;
			padding: var(--frb-s-6);
			overflow: visible;
			box-shadow: var(--frb-shadow-lift);
			animation: none;
		}

		.frb-app .frb-panel__toggle { display: none; }
		.frb-app .frb-panel__rows { display: grid; gap: var(--frb-s-2); }
		.frb-app .frb-panel__caveat { display: flex; }
		.frb-app .frb-panel__price { font-size: var(--frb-fs-price); line-height: var(--frb-lh-price); }
		.frb-app .frb-panel__device-name { font-size: var(--frb-fs-md); white-space: normal; }
		.frb-app .frb-panel__thumb { inline-size: 40px; block-size: 40px; }
	}
}

/* ---------- Reduced motion and print -------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.frb-app *,
	.frb-app *::before,
	.frb-app *::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.frb-app :is(.frb-device-type-card, .frb-selector-card, .frb-option-card, .frb-method-card):hover { transform: none; }
	.frb-app .frb-loading { background: var(--frb-grey-100); }
}

@media print {
	.frb-app :is(.frb-wizard-nav, .frb-progress-tracker, .frb-store-map) { display: none; }
	.frb-app .frb-confirmation__reference { background: none; color: #000; border: 2px solid #000; }
}
