/**
 * WC2026 - reusable component styles
 * ==================================
 *
 * Depends on tokens.css, which must be enqueued first.
 *
 * Rules for anything added here:
 *   1. No hardcoded colours, font sizes or spacing values. Add a token.
 *   2. Class names are generic (.rp-card, not .rp-category-page-card) so the
 *      next page built can reuse them without a rename.
 *   3. Nothing is scoped to the WooCommerce category template. The only
 *      WooCommerce-specific rules are the resets at the bottom, kept apart
 *      deliberately so they are easy to find and delete.
 *
 * Block index:
 *   1. Layout      .rp-container, .rp-grid
 *   2. Card        .rp-card and its elements
 *   2b. Cat card   .rp-cat-grid, .rp-cat-card
 *   3. Price       .rp-price
 *   4. Button      .rp-btn
 *   4b. Forms      .rp-form, .rp-field, .rp-check, .rp-captcha
 *   5. Read more   .rp-clamp
 *   6. Load more   .rp-loadmore
 *   7. Single prod  .rp-product
 *   8. Breadcrumb   .rp-breadcrumb
 *   9. Gallery      .rp-gallery
 *  10. Header      .rp-header, .rp-nav
 *  11. Utilities   .rp-visually-hidden
 *  14. WooCommerce structural resets   <- out of order in the body, not a typo
 *  12. Newsletter  .rp-newsletter
 *  13. Footer      .rp-footer
 *  18. Delivery    .rp-delivery   <- at the end of the file, after 17
 *  19. Be Inspired .rp-inspirations (listing)
 *  19b. Be Inspired item  .rp-inspiration / .rp-collage
 *
 * THE ORDER ABOVE IS THE ORDER IN THE FILE, including 14 sitting between 11 and
 * 12. A hand-maintained index on a 2,000-line stylesheet drifts - this one had
 * already lost 4b and 4c - so it is written to match reality rather than to
 * look tidy. If it drifts again, that is the file asking to be split.
 */


/* ===================================================================
 * 0. Reset
 *
 * A global border-box, added deliberately rather than as part of a bug fix.
 *
 * WHY: without it, every component that pairs a width with padding has to
 * remember to say box-sizing itself, and the one that forgot made the flyout
 * panel rows 302px wide inside a 270px panel - pushing their chevrons outside
 * the menu and, on the last item, past the viewport edge.
 *
 * Components that already declare border-box are unaffected. Anything relying
 * on content-box would change, which is why this was applied as its own change
 * with a pass over each page rather than bundled into that fix.
 * =================================================================== */

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


/**
 * Font smoothing, so macOS stops rendering the type heavier than the artwork.
 *
 * The weights themselves are NOT wrong - that was measured rather than assumed
 * on 10 September 2026. Every token maps 1:1 to the Figma ramp (Regular 400,
 * Medium 500, Semi Bold 600, Bold 700, Extra Bold 800), and rendering the same
 * strings at the same size against the file's own hugging text nodes put the
 * browser within ~1% of Figma's widths, slightly NARROWER, across the whole
 * ramp. Synthesised or over-heavy weights would read several percent wide.
 *
 * What differs is rasterisation: macOS defaults to subpixel antialiasing, which
 * fattens stems, where Figma draws with grayscale. This is the standard remedy
 * and is a no-op on Windows and Android, so it cannot make those thinner.
 */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


/* ===================================================================
 * 1. Layout
 * =================================================================== */

/* Footer at the window's bottom on short pages: main takes the spare height.
 * The admin bar's height is subtracted, or logged-in pages always scroll. */
body {
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
	min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
	margin: 0;
}

#main {
	flex: 1 0 auto;
}

/**
 * Space between the content and the full-width bands above and below it.
 *
 * BOTH SIDES. Figma's "v-padding" variable is 80, and the design applies it
 * top and bottom — measured on two frames to be sure:
 *
 *   category  Body Wrap 1126 tall, wrapper 966 at y=80  -> 80 below
 *   product   Product List 766 tall, wrapper 606 at y=80 -> 80 below
 *
 * Setting only padding-block-start left the last row of cards, and the end of a
 * product description, butted straight against the newsletter band.
 *
 * Applied to the content wrapper rather than to the breadcrumb or the grid, so
 * it holds on pages that have neither.
 *
 * The visible gap is larger than 80px because the newsletter band carries its
 * own 80px of top padding. That is the design's doing, not double-spacing here.
 */
/* 40 above, 80 below. The frames put the breadcrumb 40px under the nav bar;
 * the 80 below is the rhythm down to the newsletter band. */
/* BOTH page wrappers, not just .rp-container. The spacing belongs to the
 * wrapper rather than to .rp-breadcrumb - see the note above, a page with no
 * breadcrumb still needs it - which means every wrapper has to carry it.
 * .rp-page (brochure bands) did not, so its trail sat against the nav bar. */
main.rp-container,
main.rp-page {
	padding-block-start: var(--rp-page-top);
}

/* Bottom only on .rp-container: a band page ends in a band, and the last one
 * already carries its own 80px down to the newsletter. */
main.rp-container {
	padding-block-end: var(--rp-v-padding);
}

/**
 * --rp-container-max is the CONTENT width, so the gutter has to be added to the
 * max-width rather than taken out of it. Without the calc, border-box spends the
 * padding inside the 1200 and every page runs 40px narrow - cards at 275 instead
 * of Figma's 285, product columns at 550 instead of 570.
 *
 * .rp-header__inner and .rp-home-wrap already do this; this rule did not, which
 * is why the home page measured right and nothing else did.
 */
.rp-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--rp-container-max) + (2 * var(--rp-space-lg)));
	margin-inline: auto;
	padding-inline: var(--rp-space-lg);
}

/**
 * Card grid.
 *
 * Column counts are fixed per breakpoint rather than auto-fitting, because
 * the design specifies exactly 4 / 2 / 1 and an auto-fit track would give 5
 * columns at 1200px. minmax(0, 1fr) rather than minmax(230px, 1fr) so a
 * narrow viewport shrinks the cards instead of overflowing the page.
 */
.rp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	column-gap: var(--rp-grid-gap-x);
	row-gap: var(--rp-grid-gap-y);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.rp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.rp-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}


/* ===================================================================
 * 2. Card
 * =================================================================== */

.rp-card {
	display: flex;
	flex-direction: column;
	min-width: 0;                       /* lets long titles wrap instead of stretching the track */
	background: var(--rp-surface-card);
	overflow: hidden;
	font-family: var(--rp-font-family);
}

/**
 * The card carries two links to the same product - one on the image, one on
 * the text block. They are separate because the button between them is also a
 * link, and anchors cannot nest.
 *
 * The image link is aria-hidden and tabindex="-1" in the template, so this is
 * one tab stop and one accessible name, not two.
 */
.rp-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rp-card__link--info {
	width: 100%;
	min-width: 0;
}

/* No hover underline by client decision, matching .rp-cat-card. Kept on
 * focus-visible so keyboard users still get the text cue. */
.rp-card__link--info:focus-visible .rp-card__title {
	text-decoration: underline;
}

.rp-card__link:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

/**
 * Media.
 *
 * A fixed aspect ratio keeps the grid rows aligned; `contain` shows the whole
 * photograph inside it.
 *
 * THE HISTORY MATTERS, because this flipped twice. It was `contain`, then
 * `cover` when the source turned out to be WooCommerce's 1:1 hard crop - all
 * `contain` was preserving was a crop, in a box the wrong shape for it. The
 * source is now `medium_large`, which is uncropped (see
 * wc2026_card_image_size), so `contain` shows the real photo and `cover` would
 * start throwing parts of it away again. Change the size and the fit together
 * or not at all.
 */
.rp-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--rp-card-media-ratio);
	/* Shows while the image loads and on products with no photo. Cream rather
	 * than white: Figma runs the image well in the same Light 1 as the panel. */
	background: var(--rp-surface-card-detail);
	overflow: hidden;
}

.rp-card__media img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;

	/* Same timing as the category card and the View arrow. */
	transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Within 3% of 4:3 the photo fills the box instead - same rule as the gallery,
 * decided by wc2026_card_image_fill_class(). Anything else still letterboxes. */
.rp-card__media .rp-card__image--fill {
	object-fit: cover;
}

/**
 * The hover zoom - 4%, client 14 Aug 2026, matching the category card.
 *
 * `.rp-card:hover` and NOT `a:hover`, because this card has TWO anchors - the
 * image and the text block - plus a button between them. Hanging it off either
 * link would leave the zoom dead over half the tile.
 *
 * It is weaker here than on a category card and that is the image fit, not the
 * rule: `contain` letterboxes, so 5% shrinks the bands as much as it grows the
 * product - and much of this catalogue is shot small in a large white studio
 * frame, so a good part of what scales is empty background. It gets its full
 * effect if .rp-card__media img ever goes to `cover`, which is the deferred
 * double-crop decision in CLAUDE.md.
 *
 * `overflow: hidden` on .rp-card__media is what clips the overflow at 104%.
 */
@media (hover: hover) {
	.rp-card:hover .rp-card__media img {
		transform: scale(var(--rp-card-hover-zoom));
	}
}

@media (prefers-reduced-motion: reduce) {
	.rp-card__media img {
		transition: none;
	}

	.rp-card:hover .rp-card__media img {
		transform: none;
	}
}

/* Detail block - the cream panel under the photo.
 *
 * flex: 1 1 auto so the panel absorbs any leftover card height; that is what
 * gives rp-card__detail-inner something to distribute with space-between. */
.rp-card__detail {
	display: flex;
	flex: 1 1 auto;
	justify-content: center;
	box-sizing: border-box;
	min-height: var(--rp-card-detail-height);
	/* 10 top/bottom, 4 each side - the 277 inner wrap inside a 285 card. */
	padding: var(--rp-space-xs) var(--rp-space-2xs);
	background: var(--rp-surface-card-detail);
}

/* space-between pins the button to the bottom, so buttons line up across a
 * row even when titles wrap to different line counts */
.rp-card__detail-inner {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-space-3xs);
	min-width: 0;
}

.rp-card__info {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rp-space-3xs);
	width: 100%;
	min-width: 0;
}

.rp-card__title {
	margin: 0;
	padding: 0;
	color: var(--rp-text-heading);
	font-size: var(--rp-type-card-title-size);
	font-weight: var(--rp-type-heading-sm-weight);
	line-height: var(--rp-type-heading-sm-leading);
	text-align: center;
	overflow-wrap: break-word;
}

/* Meta row: "Stock # S789" on the left, dimensions or availability on the right */
.rp-card__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rp-space-xs);
	width: 100%;
	color: var(--rp-text-muted);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-type-body-sm-leading);
}

.rp-card__meta-item {
	margin: 0;
	white-space: nowrap;
}

.rp-card__meta-label {
	font-size: var(--rp-type-label-sm-size);
	font-weight: var(--rp-font-weight-medium);
}

.rp-card__meta-strong {
	font-weight: var(--rp-font-weight-bold);
}

/* Figma "Card": the whole "STOCK # 560" in Primary Green (client, 8 Oct 2026). */
.rp-card__meta-item--stock {
	color: var(--rp-colour-primary-green);
}

.rp-card__meta-item:not(.rp-card__meta-item--stock) {
	color: var(--rp-card-meta-text-colour);
}

/* The pipe belongs to the second item, so a card with only one item has none. */
.rp-card__meta-item + .rp-card__meta-item {
	display: flex;
	align-items: center;
	gap: var(--rp-card-meta-pipe-gap);
	margin-left: calc(var(--rp-card-meta-pipe-gap) - var(--rp-space-xs));
}

.rp-card__meta-item + .rp-card__meta-item::before {
	content: "";
	width: 1px;
	height: var(--rp-card-meta-pipe-height);
	background: var(--rp-card-meta-pipe-colour);
}


/* ===================================================================
 * 2b. Category card
 *
 * Figma "3-Product Categories Grid" (79:546) and "category-card" (388:62982).
 *
 * A category page draws EITHER these or product cards, never both - the branch
 * is in woocommerce/archive-product.php. Nothing here is shared with .rp-card
 * on purpose: they look nothing alike, and forcing a common base would leave
 * both fighting it.
 * =================================================================== */

/* WooCommerce's own wrapper, so the class is not rp-prefixed. Applies to the
   product grid too - both sit directly under this header with no margin. */
.term-description {
	padding-block-end: var(--rp-term-description-gap);
}

/* The h1 owns the gap. Without this the first <p>'s 16 adds to it once clamped (overflow stops the collapse). */
.term-description > *:first-child,
.term-description > *:first-child > *:first-child {
	margin-block-start: 0;
}

/* 60 down, 20 across — NOT 20 both ways, which is what this said until
 * 11 August 2026. Both frames that draw this grid put the cards on a 410 pitch
 * against a 350 height: "3-Product Categories Grid" (79:546) and
 * "10-Inspirations Grid" (85:1662). --rp-grid-gap-y already existed and the
 * product grid already used it; this rule simply never did. */
/* TWO ACROSS ON A PHONE, not the frames' one — client, 17 August 2026. A
 * single 362-wide tile per row turned a handful of child categories into a
 * page of scrolling. Deliberate divergence; the 3-column desktop state is
 * unchanged.
 *
 * The 60px row gap goes with it: it is the frames' rhythm for a 350-tall card,
 * and against a ~155-tall one it reads as a gap between sections rather than
 * between rows. */
.rp-cat-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--rp-grid-gap-x);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 600px) {
	.rp-cat-grid {
		gap: var(--rp-grid-gap-y) var(--rp-grid-gap-x);
	}
}

@media (min-width: 992px) {
	.rp-cat-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* The card is ~171 wide at 402 (two across), so 20px caps would wrap a
 * three-word category to three lines. Type and padding scale down here. */
@media (max-width: 599px) {
	.rp-cat-grid .rp-cat-card__info {
		padding: var(--rp-space-xs);
	}

	.rp-cat-grid .rp-cat-card__title {
		font-size: var(--rp-type-body-size);
	}
}

.rp-cat-card {
	position: relative;
	aspect-ratio: var(--rp-cat-card-ratio);
	overflow: hidden;

	/* Shows through when a category has no thumbnail. WooCommerce's placeholder
	 * is not used - at this size a grey square reads as a broken page. */
	background: var(--rp-surface-card-detail);
}

.rp-cat-grid--square .rp-cat-card {
	aspect-ratio: var(--rp-cat-card-ratio-square);
}

/* Category grids (All Products, subcategories): 4 across from 992, 2 below,
 * 20px both ways — client brief, 16 Nov 2026. Inspirations keep 3 and the 60 row gap. */
@media (min-width: 600px) {
	.rp-cat-grid--square {
		row-gap: var(--rp-grid-gap-x);
	}
}

@media (min-width: 992px) {
	.rp-cat-grid--square {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.rp-cat-card__link {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.rp-cat-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;

	/* cover, not contain - unlike product photos these are crops chosen to fill
	 * a tile, and letterboxing them would leave bands of flat colour. */
	object-fit: cover;

	/* Matches the View arrow's timing, so the two read as one gesture rather
	 * than as two animations that happen to share a trigger. */
	transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Square studio shots (wc2026_category_image_is_square): shown whole, not cropped. */
.rp-cat-card__image--contain {
	object-fit: contain;
}

/**
 * The hover zoom - 4%, client 14 Aug 2026.
 *
 * ONLY the image moves. The scrim and the title are siblings, not children, so
 * transforming the card would take the words with it.
 *
 * `cover` is what makes this work: the picture already fills the tile, so
 * scaling it crops rather than revealing an edge. The PRODUCT card is
 * deliberately not given this - .rp-card__media img is `contain`, so a zoom
 * there mostly enlarges the letterbox and the white studio background that
 * much of the catalogue is shot on.
 *
 * `.rp-cat-card__link:hover` and not the card, because the card is one link and
 * the hover has to answer the whole tile - the same reasoning as the arrow.
 *
 * Without `hover: hover` the transform latches after a tap and every tile in
 * the grid stays stuck zoomed; `:hover` has no counterpart to "the finger left".
 */
@media (hover: hover) {
	.rp-cat-card__link:hover .rp-cat-card__image {
		transform: scale(var(--rp-card-hover-zoom));
	}
}

/* Decoration - it says nothing the tile does not already say in words - so it
 * is dropped rather than shortened, as the arrow's is. */
@media (prefers-reduced-motion: reduce) {
	.rp-cat-card__image {
		transition: none;
	}

	.rp-cat-card__link:hover .rp-cat-card__image {
		transform: none;
	}
}

/* The scrim band is as tall as the title plus equal padding above and below -
 * a fixed min-height left too much dark above the text (client, 9 Oct 2026). */
/* A category with no thumbnail. The tile is Light 1 either way (see .rp-cat-card
 * above); this is what stops it reading as an image that failed to load.
 *
 * Centred on the WHOLE tile, not on the picture area above the info bar -
 * insetting by the bar's height sat it visibly high. The scrim is a gradient
 * that only darkens the last strip, so nothing collides at the middle. */
.rp-cat-card__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--rp-space-sm);
	padding: var(--rp-space-md);
	text-align: center;
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-medium);
	line-height: 1.3;
	color: var(--rp-text-muted);
}

/* preserveAspectRatio="none" on the file, so BOTH axes are set - a width alone
 * would let it stretch to whatever box it lands in. */
.rp-cat-card__placeholder-icon {
	display: block;
	width: 44px;
	height: 43px;
}

.rp-cat-card__info {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 5px;
	padding: 17px var(--rp-space-md);
	background: var(--rp-cat-card-scrim);
}

.rp-cat-card__title {
	color: var(--rp-text-on-dark);
	font-size: var(--rp-type-h3-caps-size);
	font-weight: var(--rp-type-h3-caps-weight);
	line-height: 1.1;
	text-align: center;
	text-transform: uppercase;
	overflow-wrap: break-word;
	text-shadow: var(--rp-cat-card-text-shadow);
}

/* No hover underline by client decision. Kept on focus-visible so keyboard
   users still get the text cue, not just the outline below. */
.rp-cat-card__link:focus-visible .rp-cat-card__title {
	text-decoration: underline;
}

.rp-cat-card__link:focus-visible {
	outline: 2px solid var(--rp-text-on-dark);
	outline-offset: -4px;
}


/* ===================================================================
 * 3. Price
 *
 * WooCommerce emits <del> before <ins> for a sale price. The design shows the
 * current price first, so the two are swapped with flex `order` rather than by
 * overriding the template - keeping the markup standard means WooCommerce's own
 * price filters keep working untouched.
 *
 * THE TRAP, and it has already been fallen into once:
 *
 * A price range is "<span>$950</span> - <span>$1,195</span>". In a flex
 * container that bare " - " between the two spans becomes an ANONYMOUS FLEX
 * ITEM, and anonymous items are always order: 0 with no way to select them.
 * Putting `order: 1` on the amount spans therefore sorted the dash in front of
 * both prices: "- $950 $1,195".
 *
 * So the container is only a flex container when there is actually something to
 * reorder. Ranges stay in normal inline flow, where the separator sits wherever
 * the markup puts it and no anonymous item is created.
 *
 * Do not add `order` to anything but del/ins, and do not make this flex
 * unconditionally.
 * =================================================================== */

.rp-price {
	display: block;
	width: 100%;
	margin: 0;
	padding-bottom: var(--rp-space-3xs);
	color: var(--rp-text-heading);
	font-size: var(--rp-type-price-size);
	line-height: var(--rp-type-price-leading);
	text-align: center;
}

/* Keep a single figure from breaking mid-number, while still letting a long
 * range wrap rather than overflow a narrow card. */
.rp-price .woocommerce-Price-amount,
.rp-price .amount {
	white-space: nowrap;
}

/* Sale prices only - the one case that needs reordering.
 *
 * Without :has() support this degrades to WooCommerce's own order (was-price
 * first, then current). Readable, just the wrong emphasis. */
.rp-price:has(del) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--rp-space-md);
}

.rp-price:has(del) ins {
	order: 1;
}

.rp-price:has(del) del {
	order: 2;
}

/* THE VARIATIONS TABLE STACKS ITS TWO FIGURES, sale on top - client, 12 August
 * 2026. The cell is narrow and a row is one variation, so side by side put two
 * prices on one short line and read as a range.
 *
 * `order` rather than DOM order: wc_format_sale_price() emits <del> first, and
 * the markup is WooCommerce's to decide. Same trick .rp-price:has(del) uses,
 * and the same degradation without :has() support - WooCommerce's own order,
 * readable but the wrong emphasis.
 *
 * On the inner span, never the td: a flex td stops being a table cell, its
 * border ends short of the row's and the row lines jump. */
.rp-variations__price:has(del) {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rp-variations__price:has(del) ins {
	order: 1;
}

.rp-variations__price:has(del) del {
	order: 2;
}

/* WooCommerce's stylesheets are dequeued, so the table's own del/ins carry no
 * styling of their own - <ins> would otherwise be underlined by the browser. */
.rp-variations__col-price ins {
	background: none;
	color: inherit;
	text-decoration: none;
}

.rp-variations__col-price del {
	color: inherit;
	font-weight: var(--rp-type-price-was-weight);
	text-decoration: line-through;
	opacity: 1;
}

/* Current price - the sale price and a plain non-sale price both */
.rp-price ins,
.rp-price > .woocommerce-Price-amount,
.rp-price > .amount {
	background: none;
	color: inherit;
	font-weight: var(--rp-type-price-weight);
	text-decoration: none;
}

/* Was-price */
.rp-price del {
	color: inherit;
	font-weight: var(--rp-type-price-was-weight);
	text-decoration: line-through;
	opacity: 1;
}

/* On a card the price sits under the title in size and weight - see the tokens. */
.rp-card .rp-price {
	font-size: var(--rp-type-price-card-size);
}

.rp-card .rp-price ins,
.rp-card .rp-price > .woocommerce-Price-amount,
.rp-card .rp-price > .amount {
	font-weight: var(--rp-type-price-card-weight);
}

/* "Enquire for price" and other bare strings returned by the price filter */
.rp-price--text {
	font-weight: var(--rp-type-price-weight);
}

/* The card's "Enquire for price" is set exactly like a card price - client, 15
 * September 2026. Size and colour come from .rp-card .rp-price; only the weight
 * needs restating because .rp-price--text would make it extra bold. */
.rp-price--enquire {
	font-weight: var(--rp-type-price-card-weight);
}

/**
 * Product page size. Figma "Price Wrap" (85:5057).
 *
 * The ONLY difference between the card price and the product page price is this
 * block — 24px, left-aligned, near-black, with the was-price in grey rather than
 * the card's muted brown. Figma's gap is 16; it uses the shared 15px step.
 *
 * That is the whole reason the live site's `$position` parameter ('summ' vs
 * 'meta') does not exist here. It was presentation dressed as an argument.
 */
.rp-price--lg {
	width: auto;
	margin: var(--rp-space-sm) 0 0;
	padding-bottom: 0;
	color: var(--rp-colour-ink);
	font-size: var(--rp-type-price-lg-size);
	text-align: left;
}

.rp-price--lg:has(del) {
	justify-content: flex-start;
	gap: var(--rp-space-md);
}

/* Under the title in size and weight, as on the card - see the token. */
.rp-price--lg ins,
.rp-price--lg > .woocommerce-Price-amount,
.rp-price--lg > .amount,
.rp-price--lg.rp-price--text {
	font-weight: var(--rp-type-price-lg-weight);
}

.rp-price--lg del {
	color: var(--rp-colour-ink-muted);
	font-weight: var(--rp-font-weight-medium);
}


/* ===================================================================
 * 4. Button
 *
 * A TYPE SYSTEM, not a set of one-off buttons. Every button on the site is
 * .rp-btn plus one colourway, and optionally one size modifier. Nothing should
 * ever restyle a button inline or invent a fourth colour.
 *
 *   .rp-btn              base - Figma "Button/Primary": Inter Medium 14,
 *                        uppercase, 80x17 padding, 180px minimum
 *   .rp-btn--cream       Colour/Light 3 ground, brown label
 *   .rp-btn--green       Colour/Dark Green ground, light label
 *   .rp-btn--white       white ground, dark green label
 *   .rp-btn--compact     the card's tighter button: 100px, bold, not uppercase
 *   .rp-btn--on-dark     cream label swap for use on the footer band
 *
 * The three colourways match the variants already documented for the SvelteKit
 * frontend - rp2024-frontend/docs/{cream,green,white}-button.md. Same names on
 * purpose, so a design conversation about "the cream button" means one thing
 * across both codebases.
 *
 * A BUTTON IS OFTEN AN <a>, AND THAT MAKES IT VULNERABLE. .rp-btn--green is one
 * class; any two-class descendant rule that colours anchors outranks it. That
 * happened on 10 August: the account area's link rule painted the dashboard's
 * Log out button dark green on dark green and underlined it - an invisible
 * label - because .rp-btn is not the .button class that rule excluded.
 *
 * SO EVERY BROAD ANCHOR RULE MUST EXCLUDE .rp-btn. There are two, and both do:
 *   account.css   .woocommerce-MyAccount-content a:not(.button):not(.rp-btn)
 *   section 20    the authored-copy list, whose containers hold editor HTML
 *
 * Raising the type's own specificity was considered and rejected - it is an
 * arms race against the next selector, and !important is not used anywhere in
 * this file. The rule is the exclusion.
 * =================================================================== */

.rp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: var(--rp-button-min-width);
	padding: var(--rp-button-padding-y) var(--rp-button-padding-x);
	border: 0;
	border-radius: 0;
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-button-size);
	font-weight: var(--rp-type-button-weight);
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 120ms ease-in-out, color 120ms ease-in-out;
}

.rp-btn:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

/* WooCommerce toggles these while an ajax add-to-cart is in flight. */
.rp-btn.loading,
.rp-btn.added {
	opacity: 0.75;
}


/* ---- Colourways ---- */

.rp-btn--green {
	background: var(--rp-colour-dark-green);
	color: var(--rp-colour-light-1);
}

.rp-btn--green:hover,
.rp-btn--green:focus {
	background: var(--rp-button-bg-hover);
	color: var(--rp-colour-light-1);
}

.rp-btn--cream {
	background: var(--rp-colour-light-3);
	color: var(--rp-colour-primary-brown);
}

.rp-btn--cream:hover,
.rp-btn--cream:focus {
	background: var(--rp-colour-light-1);
	color: var(--rp-colour-primary-brown);
}

.rp-btn--white {
	background: var(--rp-colour-white);
	color: var(--rp-colour-dark-green);
}

.rp-btn--white:hover,
.rp-btn--white:focus {
	background: var(--rp-colour-light-1);
	color: var(--rp-colour-dark-green);
}

/* The footer's cream button labels in dark green rather than brown - the only
 * difference between it and the newsletter's. A modifier rather than a fourth
 * colourway, because the ground is identical. */
.rp-btn--on-dark.rp-btn--cream {
	color: var(--rp-colour-dark-green);
}


/* ---- Sizes ---- */

/**
 * The card button. Figma "Button" inside Product Detail (I85:5520;77:1122).
 *
 * Genuinely a different type, not just a smaller one: bold rather than medium,
 * sentence case rather than uppercase, and sized to sit inside a 230px card.
 */
.rp-btn--compact {
	min-width: var(--rp-button-compact-width);
	padding: var(--rp-button-compact-pad-y) var(--rp-button-compact-pad-x);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: var(--rp-type-body-sm-leading);
	text-transform: none;
}


/* ===================================================================
 * 4b. Forms
 *
 * Generic on purpose - .rp-field, not .rp-login-field. The account forms are
 * the first user, and the contact, enquiry and recycle forms are the next ones.
 *
 * Surfaces follow the Figma "9-Enquire Form" frame (383:53931), which is also
 * where the SvelteKit constants.scss takes them from: the page sits on the warm
 * ground, a panel sits on it in Light 1, and only the inputs inside a panel are
 * white. Getting that the wrong way round - a white panel with white fields -
 * is what made the SvelteKit checkout look unlike the artwork.
 * =================================================================== */

.rp-form {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-lg);
	margin: 0;
}

/* The address group inside an address form (checkout-address-fields.php) keeps the form's spacing. */
.rp-address-place {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-lg);
}

/* A GROUP OF FIELDS INSIDE A PANEL - the recycle form's two sections and the
 * account page's password block.
 *
 * These carried NO RULE AT ALL until 11 August 2026, so they rendered at the
 * browser's h2 default: 24px, `normal` leading and 0.83em margins. That made
 * the group heading LARGER than the panel's own h1, which is 20 - the
 * hierarchy upside down on both pages.
 *
 * Heading/H4, one step below the panel title, which is the step the form type
 * scale was missing. line-height is explicit because Figma states every
 * heading at 100% and the default is ~20% taller - the rule the form standard
 * already sets for the panel title. */
.rp-fieldset {
	margin: 0;
	padding: 0;
	border: 0;

	/* A fieldset will not shrink below its content without this, which breaks
	 * any flex or grid parent it sits in. */
	min-width: 0;
}

.rp-fieldset__legend {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-type-h4-weight);
	line-height: 1;
	color: var(--rp-text-heading);
}

/* A legend that follows fields is a section break, so it gets a little more
 * air than the form's own 20px row gap. The first legend in a form does not
 * match - it follows the hidden inputs, which are display:none. */
.rp-field + .rp-fieldset__legend {
	margin-top: var(--rp-space-xs);
}

/* The FIRST legend gets the same 30 when intro copy sits above the form - the
 * intro's own 20 margin alone read as tight on /contact-us and /recycle.
 * Client, 21 September 2026. first-of-type, so the Photos legend on /recycle
 * (nested in the uploader anyway) is untouched. */
.rp-panel-surface__intro + .rp-form > .rp-fieldset__legend:first-of-type {
	padding-top: var(--rp-space-xs);
}

.rp-field {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-2xs);
	margin: 0;
}

/* Body/Small - 14 / 16. It was 16 with no line-height at all, so labels ran a
 * size large and, falling back to `normal`, on a rhythm of their own.
 *
 * Weight is left at Medium: Figma's Body/Small is Regular, but a label carrying
 * slightly more weight than the value below it is deliberate here and was not
 * what looked wrong. */
.rp-field__label {
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-medium);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink);
}

.rp-field__input {
	box-sizing: border-box;
	width: 100%;
	/* Figma "9-Enquire Form": Fields/Padding - Vertical 8, Horizontal Left 12.
	 * It also states Right 8, which is an icon allowance; a plain text field is
	 * padded evenly. Radius/Radius Small (Fields) is 0. */
	padding: var(--rp-field-pad-y) var(--rp-field-pad-x);

	border: 1px solid var(--rp-field-border);
	border-radius: 0;
	background: var(--rp-surface-input);

	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink);
}

.rp-field__input:focus {
	outline: 2px solid var(--rp-colour-dark-green);
	outline-offset: -2px;
}

.rp-field__error {
	margin: 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-error);
}

/* Checkbox rows are a horizontal field, so they opt out of the column. */
.rp-field--check {
	flex-direction: row;
	align-items: center;
}

/* Body/Small, like .rp-field__label - a checkbox's text IS its label, so it
 * takes the label size rather than the body size. */
.rp-check {
	display: flex;
	align-items: center;
	gap: var(--rp-space-xs);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink);
	cursor: pointer;
}

.rp-check__input {
	width: var(--rp-check-size);
	height: var(--rp-check-size);
	margin: 0;
	accent-color: var(--rp-colour-dark-green);
}

/**
 * The dimension / price filter bar.
 *
 * Figma "search-filter" (388:62481). Same metrics as filter-inputs.svelte's
 * "bar" layout, so both storefronts render the same row.
 *
 * The heading takes a full-width line of its own; fields absorb the slack and
 * the button never shrinks, so its right edge lines up with the grid below.
 */
.rp-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--rp-filter-row-gap) var(--rp-filter-col-gap);
	/* No top padding — the breadcrumb above already sets the gap. */
	padding-block: 0 var(--rp-filter-block-pad);

	/* The form submits to #rp-filters, so it is a scroll target — air above it. */
	scroll-margin-top: var(--rp-space-lg);
}

.rp-filters__fields {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--rp-filter-fields-gap-y) var(--rp-filter-fields-gap-x);

	flex: 1 0 0;
	min-width: var(--rp-filter-fields-min);
}

.rp-filters__group {
	display: flex;
	flex-direction: column;
	gap: var(--rp-filter-group-gap);

	flex: 1 0 0;
	min-width: var(--rp-filter-group-min);
}

.rp-filters__label {
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
	color: var(--rp-colour-ink);
}

.rp-filters__pair {
	display: flex;
	align-items: center;
	gap: var(--rp-filter-group-gap);
}

/* The two boxes split the group evenly rather than sitting at a fixed width -
   Figma spans the full column and left-aligns the value inside it. */
.rp-filters__input {
	box-sizing: border-box;
	flex: 1 1 0;
	min-width: var(--rp-filter-input-min);
	padding: var(--rp-space-xs) var(--rp-space-sm);

	border: 1px solid var(--rp-field-border);
	border-radius: 0;
	background: var(--rp-surface-input);

	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	text-align: left;
	color: var(--rp-colour-ink);
}

.rp-filters__input:focus {
	outline: 2px solid var(--rp-colour-dark-green);
	outline-offset: -2px;
}

/* Hugs the dash: the flex gap either side is the only spacing, so it stays
   symmetric without arithmetic. */
.rp-filters__dash {
	flex: 0 0 auto;
	font-size: 15px;
	line-height: 1;
	color: var(--rp-text-body);
}

.rp-filters__actions {
	display: flex;
	align-items: center;
	gap: var(--rp-space-xs);
	flex: 0 0 auto;
}

/* Figma "Search-Button" (274:5457). Fill and colour stay on .rp-btn--green -
   only the box and the type weight are set here. */
.rp-filters__button {
	/* min-width, not width: the button carries its spinner INSIDE, and a fixed
	   124 would make it overflow rather than grow. Resting size is unchanged. */
	min-width: var(--rp-filter-button-width);
	height: var(--rp-filter-button-height);
	padding: var(--rp-space-sm) 28px;
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-semibold);
}

/* Figma 402 "search-filter" (354x320): three full-width groups stacked, button
 * below them and left-aligned. 767 not 768 - the 768 comp is still the two-up
 * layout with the button to its right, which the desktop rules already give.
 *
 * flex-basis 100% is what drops the button onto its own row. min-width:0 alone
 * only let the fields shrink, so the button stayed beside them and the fields
 * came out at 143px of the 354 available. */
@media (max-width: 767px) {

	.rp-filters__fields {
		flex: 1 0 100%;
		min-width: 0;
	}

	.rp-filters__group {
		flex: 1 1 100%;
	}
}


/**
 * The captcha.
 *
 * The widget is a 302x76 iframe Google sizes itself, so there is nothing to lay
 * out - only room to leave for it and a shrink rule for the 402 comp, where 302
 * is wider than the 354 content column minus the panel's padding.
 *
 * transform rather than width: the iframe's contents do not reflow, so scaling
 * is the only thing that makes it narrower without clipping it.
 */
.rp-captcha {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-2xs);

	/* It is a form row, so it takes the form's own row rhythm — but it is often
	 * rendered OUTSIDE .rp-form, between the last field and the submit button,
	 * where no flex gap reaches it. The contact and enquiry forms both put it
	 * there, and it sat hard against both neighbours. */
	margin-block: var(--rp-space-lg);
}

/* Inside the form the flex gap already spaces it; a margin here would double
 * up. That is where the login form puts it. */
.rp-form > .rp-captcha {
	margin-block: 0;
}

@media (max-width: 400px) {
	.rp-captcha__widget {
		transform: scale(0.87);
		transform-origin: 0 0;

		/* Reclaim the space the scale leaves behind, or the form keeps a gap
		 * the widget no longer fills. */
		height: 66px;
	}
}


/* ===================================================================
 * 5. Read more - product and category descriptions
 *    (assets/js/clamp.js picks the cut, marks later blocks .rp-clamp__more, adds the toggle)
 * =================================================================== */

/* Whole paragraphs, lists and headings only - never part of one (client, 17 Nov 2026). */
.rp-clamp.is-clamped > .rp-clamp__more {
	display: none;
}

.rp-clamp__toggle {
	display: block;
	/* One line of body text. */
	margin-top: var(--rp-type-body-leading);
	padding: 0;
	border: 0;
	background: none;
	color: var(--rp-link-subtle);
	font: inherit;
	font-size: var(--rp-type-link-subtle-size);
	cursor: pointer;
}

.rp-clamp__toggle:hover {
	text-decoration: underline;
}

.rp-clamp__toggle:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

/* The category description's gap above the grid moves below the toggle. */
.term-description.rp-clamp {
	padding-block-end: 0;
}

.term-description + .rp-clamp__toggle {
	margin-bottom: var(--rp-term-description-gap);
}

/* A hairline closes the description, or the filter labels read as more of it. */
.woocommerce-products-header:has(.term-description) {
	margin-bottom: var(--rp-term-description-gap);
	border-bottom: 1px solid var(--rp-term-description-rule);
}


/* ===================================================================
 * 6. Load more
 *
 * The server always renders real WooCommerce pagination. load-more.js hides it
 * and inserts this block; without JavaScript none of these classes exist and
 * the page links are simply visible, which is the intended fallback.
 * =================================================================== */

.rp-loadmore {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--rp-space-xs);
	padding-top: var(--rp-space-xl);
}

.rp-loadmore__status {
	margin: 0;
	min-height: var(--rp-type-body-sm-leading);   /* reserve the line so appearing text does not shift the page */
	color: var(--rp-text-muted);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	text-align: center;
}

/**
 * Applied by JavaScript only.
 *
 * Not `display: none` on .woocommerce-pagination outright - that would hide the
 * links from crawlers and from anyone without JS, which is the whole point of
 * rendering them.
 */
.woocommerce-pagination.is-js-hidden {
	display: none;
}


/**
 * The page links themselves.
 *
 * ONE set of styles for the whole site: search.php renders woocommerce_pagination()
 * too rather than the_posts_pagination(), so there is a single markup to style.
 *
 * On a category these are usually hidden by load-more.js — but they are what a
 * crawler follows, what anyone without JavaScript uses, and what appears again
 * when a fetch fails. They were unstyled until 10 August 2026 because the JS
 * path hid them before anyone looked.
 */
.woocommerce-pagination {
	padding-top: var(--rp-space-xl);
	padding-bottom: var(--rp-space-lg);
}

.woocommerce-pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--rp-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;                              /* WooCommerce's own default */
}

.woocommerce-pagination ul.page-numbers li {
	margin: 0;
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	/* 44px minimum touch target, and square unless the label is wider. */
	min-width: 44px;
	height: 44px;
	padding: 0 var(--rp-space-sm);
	border: 1px solid var(--rp-field-border);
	background: var(--rp-surface-input);
	color: var(--rp-text-heading);
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-medium);
	line-height: 1;
	text-decoration: none;
}

.woocommerce-pagination a.page-numbers:hover {
	background: var(--rp-surface-panel);
}

.woocommerce-pagination .page-numbers.current {
	background: var(--rp-colour-dark-green);
	border-color: var(--rp-colour-dark-green);
	color: var(--rp-text-on-dark);
	font-weight: var(--rp-font-weight-bold);
}

/* The gap marker is not a control - no box, no target size. */
.woocommerce-pagination .page-numbers.dots {
	min-width: 0;
	padding-inline: var(--rp-space-2xs);
	border-color: transparent;
	background: none;
	color: var(--rp-text-muted);
}

.woocommerce-pagination a.page-numbers:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}


/* ===================================================================
 * 7. Single product
 *
 * Two equal columns - gallery left, content right - matching Figma
 * "5-Product Variation 1" (85:4820): 570 / 60 gutter / 570 inside the 1200
 * wrapper.
 *
 * Equal 1fr tracks rather than two fixed 570px columns, so the split survives
 * a change to --rp-container-max without anyone having to recalculate it.
 * =================================================================== */

.rp-product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rp-product-gap);
	align-items: start;
}

@media (min-width: 992px) {
	.rp-product {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/**
 * Reserved gallery column.
 *
 * Empty by design. It holds its space from the start so the content column is
 * already at its final width — dropping the real gallery in later will not
 * reflow anything around it.
 *
 * The fill is the card surface colour so it reads as a deliberate reserved
 * area rather than a failed image.
 */
/**
 * The gallery column.
 *
 * NO fixed aspect ratio and no background. It used to carry
 * --rp-product-gallery-ratio (570/550 — the whole Figma block, main plus strip)
 * so a product with no photos still had a panel. But the column cannot tell "no
 * images" from "one image", so every single-image product got a blank Light 1
 * band underneath where the thumbnail strip would have been.
 *
 * The no-photo panel is .rp-gallery__placeholder now, rendered by the template,
 * which does know. Height here follows the content.
 */
.rp-product__gallery {
	width: 100%;
}

/* The whole block's height, for a product with no photos at all. It carries
 * "Image coming soon" — a blank panel reads as an image that failed to load. */
.rp-gallery__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: var(--rp-product-gallery-ratio);
	padding: var(--rp-space-lg);
	background: var(--rp-surface-card-detail);
	text-align: center;
}

.rp-gallery__placeholder span {
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-medium);
	line-height: 1.3;
	color: var(--rp-text-muted);
}

.rp-product__content {
	min-width: 0;                       /* lets long words wrap instead of widening the track */
}

/* Figma "Product Name Wrap" (85:5053): Heading/H2, Inter Bold 24 at 100%
 * line-height, in the product page's near-black rather than the card brown. */
.rp-product__title {
	margin: 0 0 var(--rp-product-title-gap);
	color: var(--rp-colour-ink);
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-type-h2-weight);
	line-height: 1.1;
}

/**
 * Summary — the type-specific block between title and description.
 *
 * Styled once, here, for every product type. The templates under
 * template-parts/ differ in WHAT they render, not in how it looks, so the
 * --simple / --variable modifier classes exist as hooks and are deliberately
 * unstyled. Add a rule against one only when the design actually diverges.
 */
/**
 * Summary - the type-specific block between title and description.
 *
 * Figma node 348:5430: ONE line, Heading/H4 (Inter Semi Bold 18) in the
 * product page near-black, reading "Stock # S789  |  1 available".
 *
 * Note the whole line is a single weight. The card splits label and value into
 * different sizes and weights; the product page does not. Do not reuse the
 * card's .rp-card__meta-label sizing here.
 *
 * The --simple / --variable modifiers are hooks and are deliberately unstyled:
 * the templates differ in WHAT they render, not how it looks. Add a rule
 * against one only when the design actually diverges.
 */
.rp-summary {
	margin: 0 0 var(--rp-product-block-gap);
	color: var(--rp-colour-ink);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-type-h4-weight);
	line-height: 1.2;
}

.rp-summary__line {
	margin: 0;
}

/* DIVERGENCE FROM 348:5430, client 15 September 2026: in the frame's near-black
 * semi-bold 18 the stock line was hard to tell from the Bold 24 title 12px
 * above it. Muted, regular and body-sized, it reads as a caption to the name,
 * as the card's does. The dimensions line below the rule keeps the frame's. */
.rp-summary__line {
	/* Primary Green, as the card's STOCK # (client, 8 Oct 2026). SOLD keeps its red. */
	color: var(--rp-colour-primary-green);
	font-size: var(--rp-type-body-size);
	font-weight: var(--rp-font-weight-regular);
}

/* Figma "Product Description Wrap" (85:5061): a rule, then the dimensions, then
 * the description. Rendered together with the dimensions so a divider never
 * appears with nothing under it. */
.rp-summary__rule {
	height: 0;
	/* 20 above: the price's line box is its own height, so 15 read tighter
	 * than the 15 under the rule. */
	margin: var(--rp-space-lg) 0 var(--rp-space-md);
	border: 0;
	border-top: 1px solid var(--rp-colour-ink-muted);
	opacity: 0.25;
}

/* Same treatment as the stock line - Heading/H4, inherited from .rp-summary. */
.rp-summary__dimensions {
	margin: 0;
}

/**
 * Action buttons. Figma "Price Wrap" (85:5182).
 *
 * Both share the row equally and wrap rather than shrink below 180px - the
 * design's minimum, and below it "CALCULATE DELIVERY" breaks onto two lines.
 * The SvelteKit original hits the same problem; its comment names 115px as the
 * point where the label wraps.
 *
 * The buttons themselves are plain .rp-btn types - nothing is restyled here,
 * which is the point of having types.
 */
.rp-summary__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-xs) var(--rp-space-lg);
	margin-block-start: var(--rp-product-block-gap);
}

/* EQUAL WIDTHS, which needs an equal flex-basis — not `auto`. With `auto` each
 * button starts at its own label width and they merely share the leftover, so
 * "Calculate Delivery" stayed wider than "Add to enquiry". An identical basis
 * plus identical grow gives identical widths whatever the labels say.
 *
 * The basis doubles as the wrap point: below two of them plus the gap, they
 * stack instead of squashing. Figma draws the pair at 275 each in a 570 column
 * (Price Wrap, 85:5182), which is what the row lands on at 1440. */
.rp-summary__actions .rp-btn {
	flex: 1 1 var(--rp-product-action-basis);
	max-width: var(--rp-product-action-max);
	padding-inline: var(--rp-space-lg);
}

/* The pipe between stock number and availability. aria-hidden in the markup -
 * it is punctuation, and a screen reader announcing "vertical line" between
 * two facts is noise. */
.rp-summary__sep {
	padding: 0 var(--rp-space-2xs);
}

/* COLOUR ONLY, matching Availability.svelte. The word is already upper case,
 * which is enough to set it apart, and size and weight belong to the line.
 * --rp-colour-error is the same #a33b2a as the frontend's --sold. */
.rp-summary__sold {
	color: var(--rp-colour-error);
}


/**
 * The buy controls - quantity, Add to cart, and the two login buttons.
 *
 * NO FIGMA FRAME DRAWS THIS. Checked on "5-Product Variation 1" (85:4820) and
 * "7-Product Variation 3" (381:52524): the product column has one button row and
 * it holds the enquiry and delivery pair. So this reuses the theme's button and
 * field types rather than inventing a look - if the design ever specifies one,
 * this block is where it goes.
 */
.rp-buy {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: var(--rp-space-xs) var(--rp-space-lg);
	margin-block-start: var(--rp-product-block-gap);
}

/* .rp-field is a column; a quantity label belongs beside its select, and the
 * select is narrow enough that stacking wastes the row. */
.rp-buy__quantity {
	flex-direction: row;
	align-items: center;
	gap: var(--rp-space-xs);
}

/* Weight restated: .rp-summary sets Heading/H4 semibold on everything under it,
 * and .rp-field__input states a size but not a weight. */
.rp-buy__select {
	width: auto;
	font-weight: var(--rp-font-weight-regular);
}

.rp-buy__login {
	margin: 0;
	margin-block-start: var(--rp-product-block-gap);
}

/* Colour only, as Availability.svelte has it - the word is already upper-case
 * in the frontend and the line's own type is what sets it apart here. Same
 * value as the SvelteKit --sold; see the token's note. */
.rp-buy__sold {
	margin: 0;
	margin-block-start: var(--rp-product-block-gap);
	color: var(--rp-colour-error);
}

/**
 * Description.
 *
 * Deliberately light-touch: this is editor output, so it is given readable
 * defaults rather than a rule per element. Headings, lists and tables inside it
 * keep browser defaults until the design says otherwise.
 */
/**
 * Description.
 *
 * Figma node 85:5064: Body/Regular, Inter Regular 16 / 22, in #666 - grey body
 * copy against the near-black headings above it.
 *
 * 22/16 is a ratio of 1.375, noticeably tighter than the 1.5-1.6 a generic body
 * default would give. It is set as an explicit px line-height rather than a
 * unitless ratio so it matches the design exactly and does not drift if the
 * font-size token changes.
 *
 * Otherwise light-touch: this is editor output, so headings, lists and tables
 * inside it keep browser defaults until the design says otherwise.
 */
.rp-product__description {
	color: var(--rp-colour-ink-muted);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
}

.rp-product__description > *:first-child {
	margin-top: 0;
}

.rp-product__description > *:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------
 * Product Feature — the callout inside a product description
 *
 * Figma "7-Product Variation 3" (381:52524), node 815:8691: the box drawn
 * inside Product Description Wrap reading "Do I have to buy a whole Pack?
 * 50% surcharge for purchasing under 15 lineal metres".
 *
 * Measured off the frame, not invented: Light 1 ground, 10px all round, and
 * Inter Semi Bold 18 in PRIMARY GREEN — which is Heading/H4's size and weight,
 * so it reads as a heading-weight aside rather than emphasised body copy. No
 * border and no left rule; the ground alone separates it.
 *
 * The 15px margins are the frame's own gaps: the description text ends at 162
 * and this starts at 177, and it closes 15 above the wrap's lower hairline.
 *
 * Applied by an editor, through the Formats dropdown — see inc/editor.php.
 * THE TWIN IS IN assets/css/editor.css and must be changed with it, or the
 * editor previews something the page does not render.
 *
 * CONTRAST, knowingly: Primary Green on Light 1 is 3.52:1. At 18px semibold
 * that is under WCAG's 18.66px threshold for large text, so it does not reach
 * AA for body copy — the same measurement that keeps Primary Green out of the
 * link colour (see "Link colour"). It is the designer's choice and it is what
 * the frame draws; raising it means asking for Dark Green in the artwork.
 * ------------------------------------------------------------------- */
.rp-product-feature {
	margin: var(--rp-space-md) 0;
	padding: var(--rp-space-xs);
	background-color: var(--rp-colour-light-1);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-type-h4-weight);
	line-height: normal;
	color: var(--rp-colour-primary-green);
}

/* Consecutive features are one notice: first is the heading, the rest charcoal body text. */
.rp-product-feature:has(+ .rp-product-feature) {
	margin-bottom: 0;
	padding-bottom: 0;
}

.rp-product-feature + .rp-product-feature {
	margin-top: 0;
	padding-top: var(--rp-product-feature-text-gap);
	font-size: var(--rp-type-body-size);
	font-weight: normal;
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

/* Features lifted out of the description (wc2026_split_product_features), above the hairline. */
.rp-product__features > *:last-child,
.rp-product__features > *:last-child > *:last-child,
.rp-term-features > *:last-child,
.rp-term-features > *:last-child > *:last-child {
	margin-bottom: 0;
}

/* Category: features follow the description and its Read More; the gap above the grid moves below them. */
.term-description:has(~ .rp-term-features) {
	padding-block-end: 0;
}

.term-description:has(~ .rp-term-features) + .rp-clamp__toggle {
	margin-bottom: 0;
}

.rp-term-features {
	padding-block-end: var(--rp-term-description-gap);
}

.rp-product__description img {
	max-width: 100%;
	height: auto;
}


/* ===================================================================
 * 8. Breadcrumb
 *
 * Figma "Breadcrumb" (381:53281): 8px gap, Inter 14/16 in primary brown, a
 * house icon first and a chevron between every pair.
 *
 * The chevron is drawn by CSS on ::before, NOT put in the markup. It is
 * decoration - in the DOM it would be announced between every item.
 * =================================================================== */

/* The only owner of the gap below the trail. Padding, not margin, so it never
 * collapses; whatever follows the breadcrumb sets no top space of its own. */
.rp-breadcrumb {
	padding-bottom: var(--rp-breadcrumb-space-after);}

.single-product .rp-breadcrumb {
	padding-bottom: var(--rp-product-breadcrumb-space-after);
}

.rp-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rp-breadcrumb-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--rp-text-body);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-type-body-sm-leading);
}

/* Each item is itself a flex row so the ::before separator gets the same 8px
 * gap the list uses. That is what produces Figma's even 8px rhythm through the
 * whole trail rather than a doubled gap around each chevron. */
.rp-breadcrumb__item {
	display: flex;
	align-items: center;
	gap: var(--rp-breadcrumb-gap);
	min-width: 0;
}

/**
 * The chevron.
 *
 * A mask rather than a background-image, so it takes currentColor and stays in
 * step with the text. The exported SVG is filled black; drawn as an image it
 * would sit slightly darker than the #3e3c35 text beside it.
 *
 * url() is relative to this stylesheet, so no PHP is needed to build the path.
 */
.rp-breadcrumb__item + .rp-breadcrumb__item::before {
	content: "";
	flex: none;
	width: var(--rp-breadcrumb-separator-width);
	height: var(--rp-breadcrumb-separator-height);
	background-color: currentColor;
	-webkit-mask: url("../icons/breadcrumb-separator.svg") no-repeat center / contain;
	mask: url("../icons/breadcrumb-separator.svg") no-repeat center / contain;
}

.rp-breadcrumb__link {
	color: inherit;
	text-decoration: none;
}

.rp-breadcrumb__link:hover,
.rp-breadcrumb__link:focus-visible {
	text-decoration: underline;
}

.rp-breadcrumb__link:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

.rp-breadcrumb__current {
	min-width: 0;
}

/* Keeps its own green (Colour/Primary Green, stroked in the source SVG) rather
 * than inheriting the text colour - it is a brand accent, not a glyph. */
.rp-breadcrumb__home-icon {
	display: block;
	width: auto;
	height: var(--rp-breadcrumb-home-size);
}

.rp-breadcrumb__item--home {
	flex: none;
}


/* ===================================================================
 * 9. Product gallery
 *
 * Figma "Product image" (85:5012): 570x427 main image above a 570x101 strip of
 * thumbnails with 29px arrow buttons at each end, 20px gaps throughout.
 *
 * The strip is a native overflow scroller. Touch swipe, momentum and keyboard
 * scrolling are the browser's; scroll-snap does the alignment. JavaScript only
 * adds the arrows and the image swap.
 * =================================================================== */

.rp-gallery {
	display: flex;
	flex-direction: column;
	gap: var(--rp-gallery-gap);
}

/* .rp-gallery--empty was the second no-image state and the only one that ever
 * ran, because inc/product-gallery.php returned before reaching the template.
 * There is one now: .rp-gallery__placeholder, drawn by the template. */

.rp-gallery__main {
	position: relative; /* anchors .rp-gallery__caption */
	width: 100%;
	aspect-ratio: var(--rp-gallery-main-ratio);
	background: var(--rp-colour-gallery-panel);
	overflow: hidden;
}

/**
 * The main image is a button that opens the lightbox — see
 * assets/js/product-lightbox.js. Needs its own reset before it can be a
 * picture: buttons carry a UA background, border, padding and font.
 *
 * Inert until the module marks the gallery zoomable, so a blocked script leaves
 * a plain image rather than a control that does nothing.
 */
.rp-gallery__main-button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: default;
}

.rp-gallery--zoomable .rp-gallery__main-button {
	cursor: zoom-in;
}

.rp-gallery__main-button:focus-visible {
	outline: 2px solid var(--rp-colour-dark-green);
	outline-offset: -2px;
}

/* contain, ALWAYS - this is second-hand stock photographed at every shape, and
 * cropping loses the ends of tall items. The card crops to fill within 3% of
 * 4:3; the gallery does not, by the client's instruction of 18 September 2026.
 * A near-4:3 photo shows a 2-3px sliver of panel down two sides; that is the
 * whole photo, not a bug. */
.rp-gallery__main-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Within 3% of 4:3: stretched, not cropped - nothing in the gallery is cut. */
.rp-gallery__main-image--fill {
	object-fit: fill;
}

/**
 * The lightbox box itself, in dynamic viewport units.
 *
 * photoswipe.css sets height:100%, which on Chrome for Android is the height
 * with the URL bar HIDDEN — so the arrows, sitting at 50% of it, dropped below
 * the fold whenever the bar was showing. 100dvh tracks the visible area, and
 * matches what product-lightbox.js hands PhotoSwipe via getViewportSizeFn.
 *
 * Doubled class on purpose: photoswipe.css is enqueued after this file, so a
 * bare .pswp loses the tie on source order.
 *
 * This is the baseline only — lightbox.js sizes the root from visualViewport
 * inline, on both axes, which is what keeps the right-hand arrow on screen.
 */
.pswp.pswp {
	height: 100dvh;
}

/**
 * THE ARROWS STAY ON A PHONE.
 *
 * photoswipe.css hides them outright on any touch device — `.pswp--touch
 * .pswp__button--arrow { visibility: hidden }` — and reveals them only once a
 * real mousemove has added `.pswp--has_mouse`. The library assumes a touch user
 * swipes; nothing on screen says there is anything to swipe to.
 *
 * This is NOT the Android viewport bug above. That one dropped the arrows below
 * the fold and is fixed; this hides them at any height.
 *
 * Contrast is already handled: PhotoSwipe's icons carry a 2px
 * --pswp-icon-stroke-color outline, so white arrows survive the white studio
 * backgrounds most of this catalogue is shot on.
 *
 * Doubled class for the same reason as the rule above — photoswipe.css is
 * enqueued after this file, so a single .pswp--touch loses the tie.
 */
.pswp--touch.pswp--touch .pswp__button--arrow {
	visibility: visible;
}

/* With loop off, the end arrow is disabled; photoswipe.css hides it, so the next click hit the background and closed the popup. */
.pswp__button--arrow.pswp__button--arrow:disabled {
	display: block;
	opacity: 0.3;
}

/**
 * The lightbox caption.
 *
 * PhotoSwipe renders itself at the end of <body>, so this cannot live with the
 * gallery rules above in any scoped sense — it is here rather than in a
 * lightbox stylesheet because the theme has one component sheet. Values match
 * the SvelteKit .pswp__rp-caption in ImageGalleryWithLightbox.svelte.
 */
.pswp__rp-caption,
.rp-gallery__caption {
	position: absolute;
	bottom: var(--rp-gallery-caption-inset);
	left: 50%;
	transform: translateX(-50%);

	max-width: 80%;
	padding: var(--rp-gallery-caption-pad);
	border-radius: var(--rp-gallery-caption-radius);

	background-color: var(--rp-gallery-caption-bg);
	color: var(--rp-gallery-caption-text);
	text-align: center;

	/* Above the image, below the close and arrow controls. */
	z-index: 10;
}

/* In the lightbox: a white strip the photo's width, directly under it (client, 17 Nov 2026).
 * lightbox.js sets top, left and width; the pill above stays for the on-page caption. */
.pswp__rp-caption {
	bottom: auto;
	box-sizing: border-box;
	max-width: none;
	padding: var(--rp-lightbox-caption-pad);
	border-radius: 0;
	background-color: var(--rp-lightbox-caption-bg);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
}

/* On the page: a paragraph, so reset its margin; clicks pass through to the lightbox button. */
.rp-gallery__caption {
	margin: 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	pointer-events: none;
}

.rp-gallery__strip {
	display: flex;
	align-items: stretch;
	gap: var(--rp-gallery-gap);
	height: var(--rp-gallery-thumb-height);
}

/**
 * The scroller.
 *
 * overflow-x: auto with scroll-snap is the entire carousel. scrollbar-width:
 * none hides the bar without disabling the scrolling, so touch and keyboard
 * still work - do not swap this for overflow: hidden.
 */
.rp-gallery__thumbs {
	display: flex;
	flex: 1 1 auto;
	gap: var(--rp-gallery-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.rp-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

/* A definite width. With width: auto the basis is the img's intrinsic width,
 * which Safari resolves far wider than Chrome, so four thumbs overflowed the
 * strip there. Grow shares spare room, capped at a quarter-strip so two or
 * three thumbs stay the size four would be instead of stretching. */
.rp-gallery__thumb {
	flex: 1 0 auto;
	width: var(--rp-gallery-thumb-width);
	min-width: 0;
	max-width: calc((100% - (var(--rp-gallery-thumbs-per-strip) - 1) * var(--rp-gallery-gap)) / var(--rp-gallery-thumbs-per-strip));
	scroll-snap-align: start;
}

/**
 * THE `position: relative` IS WHAT STOPS THE WHOLE PAGE SCROLLING SIDEWAYS.
 *
 * Each thumb carries a .rp-visually-hidden label, which is `position:
 * absolute`. With every ancestor inside the strip static, its containing block
 * was BODY — so the scroller could not clip it, and it sat at its static
 * position in the strip's scrolled content, up to 600px out. That extended the
 * DOCUMENT's scroll width and left every product page pannable ~230px to the
 * right, into blank space.
 *
 * The tell is that `body.scrollWidth` looked correct the whole time: the thumbs
 * themselves are static and properly clipped, so only documentElement showed
 * it. Measure `documentElement.scrollWidth`, not the body's.
 *
 * Positioning the button puts the label back inside the scroller, where the
 * overflow belongs. .rp-collage__slide already does this, which is why the Be
 * Inspired galleries never had it.
 */
.rp-gallery__thumb-button {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: var(--rp-colour-gallery-panel);
	cursor: pointer;
}

.rp-gallery__thumb-button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* The selected thumbnail. aria-current is the source of truth for both the
 * styling and assistive tech, so the two cannot fall out of step. */
.rp-gallery__thumb-button[aria-current="true"] {
	outline: 2px solid var(--rp-colour-primary-green);
	outline-offset: -2px;
}

.rp-gallery__thumb-button:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

/**
 * Arrows.
 *
 * Hidden until JavaScript adds .rp-gallery--enhanced, so a blocked or failed
 * script leaves no dead controls - the strip still scrolls by touch and
 * keyboard without them.
 */
.rp-gallery__arrow {
	display: none;
	flex: none;
	width: var(--rp-gallery-arrow-width);
	padding: 0;
	border: 0;
	background: var(--rp-colour-gallery-panel);
	color: var(--rp-text-heading);
	cursor: pointer;
}

.rp-gallery--enhanced .rp-gallery__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Everything fits: nothing to scroll to, so the arrows are removed rather than
 * left permanently disabled. */
.rp-gallery--no-overflow .rp-gallery__arrow {
	display: none;
}

/* Arrows on the main image - same icon as the strip arrows. */
.rp-gallery__step {
	display: none;
	position: absolute;
	top: 50%;
	z-index: 11; /* above .rp-gallery__caption */
	width: var(--rp-gallery-step-size);
	height: var(--rp-gallery-step-size);
	padding: 0;
	border: 0;
	background: var(--rp-gallery-caption-bg);
	color: var(--rp-text-heading);
	transform: translateY(-50%);
	cursor: pointer;
}

.rp-gallery--enhanced .rp-gallery__step {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rp-gallery__step--prev { left: 0; }
.rp-gallery__step--next { right: 0; }

.rp-gallery__step:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

.rp-gallery__arrow::before,
.rp-gallery__step::before {
	content: "";
	width: var(--rp-gallery-icon-size);
	height: var(--rp-gallery-icon-size);
	background-color: currentColor;
	-webkit-mask: url("../icons/gallery-arrow.svg") no-repeat center / contain;
	mask: url("../icons/gallery-arrow.svg") no-repeat center / contain;
}

/* The exported icon is an upward chevron. The design uses the one asset rotated
 * both ways rather than shipping two files. */
.rp-gallery__arrow--prev::before,
.rp-gallery__step--prev::before {
	transform: rotate(-90deg);
}

.rp-gallery__arrow--next::before,
.rp-gallery__step--next::before {
	transform: rotate(90deg);
}

.rp-gallery__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.rp-gallery__arrow:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

@media (prefers-reduced-motion: reduce) {

	.rp-gallery__thumbs {
		scroll-behavior: auto;
	}
}


/* ===================================================================
 * 10. Site header
 *
 * Figma "Nav Bar" (96:1377): logo left, menu centre, actions right, on
 * Colour/Light 1 with a 120px page gutter and 24px of vertical padding.
 *
 * The menu markup is WordPress's own (wp_nav_menu), so the selectors below are
 * WordPress's class names — .menu-item, .sub-menu, .menu-item-has-children.
 * Those are generated, not chosen, which is why this block does not follow the
 * rp- naming used everywhere else.
 * =================================================================== */

/* ---- Header banner ---- */

/*
 * Figma "Clearence" (982:9656) — the strip at the top of the Nav Bar component.
 * One link to /new-arrivals, and the whole band is the target so there is no
 * small tap area on a phone.
 *
 * NO MEDIA QUERY, and that is measured rather than assumed: the strip is the
 * same component at 37px tall on the 1440, 768 and 402 frames of every screen
 * in the file. 40px of side padding leaves 322px at 402 for a line that sets
 * around 307 — tight but the design's own arithmetic.
 *
 * The text is NOT nowrap. At 402 it fits on one line; below that it wraps and
 * the band grows, which is the failure worth having rather than copy running
 * out past the viewport edge.
 */
.rp-header-banner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rp-header-banner-gap);
	background: var(--rp-header-banner-bg);
	color: var(--rp-header-banner-text);
	padding-block: var(--rp-header-banner-pad-y);
	padding-inline: var(--rp-header-banner-pad-x);
	font-family: var(--rp-font-family);
	font-size: var(--rp-header-banner-size);
	font-weight: var(--rp-font-weight-medium);
	letter-spacing: normal;
	line-height: var(--rp-header-banner-line);
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
}

/*
 * NO HOVER UNDERLINE, for the same reason the nav bar below it has none —
 * client, 13 August 2026. The hover state is the arrow: .rp-arrow's transform
 * is keyed off `a:hover`, so this band gets the same extend the category cards
 * do without a rule here. The colour is restated because a global link rule
 * would otherwise repaint it.
 *
 * The arrow itself needs nothing: template-parts/view-arrow.php already sets
 * flex-shrink and takes currentColor, so it follows the band's text colour and
 * never squashes when the copy wraps.
 */
/* SVG banner: same band height as the text. Shrinks to fit a phone. */
.rp-header-banner--image {
	padding-block: var(--rp-header-banner-image-pad-y);
}

.rp-header-banner__picture {
	display: block;
	min-width: 0;
	max-width: 100%;
}

.rp-header-banner__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: var(--rp-header-banner-image-height);
	object-fit: contain;
	min-width: 0;
}

/* Mobile image without a wide one: text on desktop, image below 992px. */
.rp-header-banner__image--mobile {
	display: none;
}

@media (max-width: 991px) {
	.rp-header-banner--image,
	.rp-header-banner--image-mobile {
		padding-block: var(--rp-header-banner-image-pad-y);
		padding-inline: var(--rp-header-banner-image-pad-x-mobile);
	}

	.rp-header-banner--image-mobile .rp-header-banner__text {
		display: none;
	}

	.rp-header-banner--image-mobile .rp-header-banner__image--mobile {
		display: block;
	}
}

.rp-header-banner:hover,
.rp-header-banner:focus {
	color: var(--rp-header-banner-text);
}

/* Inset, because the band runs to the viewport edge and an outset ring clips.
 * Light 3 rather than --rp-focus-ring: the ring elsewhere is Primary Brown,
 * which is near-invisible on this dark green. */
.rp-header-banner:focus-visible {
	outline: 2px solid var(--rp-header-banner-text);
	outline-offset: -2px;
}

.rp-header {
	background: var(--rp-surface-card-detail);
}

.rp-header__inner {
	/* The containing block for .rp-search, which lies over this row. */
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-nav-gap);
	box-sizing: border-box;

	/*
	 * EXACTLY .rp-container's arithmetic, and it has to be. This carried a
	 * FIXED 120px gutter with a 1440 max-width, which agrees with the body
	 * only at 1440 and at/below 991 - and drifts by up to 100px in between,
	 * because the container keeps centring a 1240 box while this stayed put:
	 *
	 *   viewport   logo    content
	 *   1440       120     120        agree
	 *   1382       120      91        29 out
	 *   1240       120      20       100 out
	 *    991        20      20        agree, via the media query below
	 *
	 * So the logo appeared to slide right as the window narrowed, and the
	 * page's left edge "broke down" - the header saying one thing and every
	 * card, heading and breadcrumb under it saying another. Reported 12 August
	 * 2026.
	 *
	 * Centring on a small gutter still lands the design's 120px margin at the
	 * 1440 frame - (1440 - 1240) / 2 + 20 = 120 - so nothing moves where Figma
	 * measures it. It simply degrades with the content instead of against it.
	 *
	 * CLAUDE.md's container note has this the wrong way round: it says the
	 * header "already does it correctly". It did the calc, but off
	 * --rp-page-margin rather than the gutter, which is the whole difference.
	 */
	max-width: calc(var(--rp-container-max) + (2 * var(--rp-space-lg)));
	margin-inline: auto;
	padding-block: var(--rp-header-padding-y);
	padding-inline: var(--rp-space-lg);
}

@media (max-width: 991px) {
	.rp-header__inner {
		/* Padding is the container's at every width now, so only the wrap. */
		flex-wrap: wrap;
	}
}

/* the_custom_logo() renders its own <a><img>; size the image, not the link.
 * .rp-logo is the Figma asset used when Site Identity is empty - same box. */
.rp-header .custom-logo-link,
.rp-header .rp-logo-link {
	display: block;
	flex: none;
	min-width: 0;
	line-height: 0;
}

.rp-header .custom-logo,
.rp-header .rp-logo {
	display: block;
	width: auto;
	height: var(--rp-header-logo-height);
	max-width: 100%;
}

/* Figma keeps the logo at 278x56 on ALL THREE frames - it never scales, and at
 * 402 it clears the burger by 49px. Below ~368 it does not: 278 + 27 exceeds the
 * width less two 24px gutters, and the wordmark runs through the burger.
 * Verified at 320. Shrink proportionally rather than overlap. */
@media (max-width: 400px) {

	.rp-header .custom-logo-link,
	.rp-header .rp-logo-link {
		flex: 0 1 auto;
	}

	.rp-header .custom-logo,
	.rp-header .rp-logo {
		height: auto;
		max-height: var(--rp-header-logo-height);
	}
}

/* Fallback when no logo is set in Site Identity. */
.rp-header__logo-text {
	flex: none;
	color: var(--rp-text-heading);
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-type-h2-weight);
	text-decoration: none;
}


/* ---- Menu ---- */

.rp-nav__list {
	display: flex;
	align-items: center;
	gap: var(--rp-nav-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-nav__list .menu-item {
	position: relative;
}

.rp-nav__list .menu-item > a {
	display: flex;
	align-items: center;
	gap: var(--rp-space-2xs);
	padding: 3px 6px;
	color: var(--rp-text-heading);
	font-size: var(--rp-nav-link-size);
	font-weight: var(--rp-font-weight-medium);
	letter-spacing: var(--rp-nav-link-tracking);
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

/*
 * NO HOVER UNDERLINE ON THE BAR, and no current-page state. Client's
 * instruction, 13 August 2026 — both were tried and both were rejected on
 * looks. The flyout keeps its own tint; that is below.
 *
 * The focus ring is NOT part of that and must stay: WCAG 2.4.7 requires a
 * visible keyboard indicator, and it is the only one this bar has now.
 */
.rp-nav__list .menu-item > a:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

/**
 * The chevron.
 *
 * Drawn on items WordPress has already marked as having children, so it appears
 * exactly where there is something to open — no walker and no template needed.
 *
 * A background-image rather than a mask: the exported icon is stroked in
 * Colour/Primary Green and the design keeps it that way, unlike the breadcrumb
 * separator which inherits the text colour.
 */
.rp-nav__list .menu-item-has-children > a::after {
	content: "";
	flex: none;
	width: var(--rp-nav-chevron-size);
	height: var(--rp-nav-chevron-size);
	background: url("../icons/nav-chevron-down.svg") no-repeat center / contain;
}

/* A submenu opener (no href, see wc2026_menu_opener_atts): not a destination. */
.rp-nav__list a:not([href]) {
	cursor: default;
}

/**
 * Flyout menu — three levels.
 *
 * Ported from the SvelteKit Items.svelte, which is the working implementation:
 * depth 0 is the bar, depths 1 and 2 are the two panels. Deeper items are
 * dropped by the depth argument in wp_nav_menu(), matching MAX_DEPTH = 2 there.
 *
 * Level 1 drops below the bar; level 2 flies out to the right of its parent row
 * at exactly the panel width. That offset is why --rp-nav-panel-width is a
 * token rather than a literal in two places.
 *
 * COLOURS ARE 2026, STRUCTURE IS SVELTEKIT. The Svelte panels are #a30000 red
 * on white — the pre-2026 palette, still live because that menu has not been
 * restyled. Reproducing it inside this cream nav bar would look like a bug, so
 * the geometry and behaviour are ported and the colours come from tokens.
 *
 * NO JAVASCRIPT. Hover plus :focus-within, exactly as the Svelte version does.
 * That version additionally needs a `navigating` class to force the menu shut
 * after a client-side route change, because the pointer is left sitting over an
 * open panel on the new page. A WordPress page load discards the whole DOM, so
 * that problem does not exist here and the class is not ported.
 */

/* Full-height targets on the bar.
 *
 * From Items.svelte: "so the drop-down opens from the bar edge and the pointer
 * never crosses a dead gap on its way down". Without it, moving the mouse from
 * a nav item toward its panel passes over the bar's padding and the panel
 * closes underneath the cursor. */
.rp-nav__list > .menu-item {
	display: flex;
	align-items: center;
	min-height: var(--rp-nav-bar-height);
}

.rp-nav__list > .menu-item > a {
	min-height: var(--rp-nav-bar-height);
}

/* Drawer only (wc2026_menu_home_item); the mobile `> .menu-item` rule below shows it. */
.rp-nav__list > .rp-nav__home {
	display: none;
}

.rp-nav__list .sub-menu {
	position: absolute;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	box-sizing: border-box;
	width: var(--rp-nav-panel-width);
	margin: 0;
	padding: 0;
	background: var(--rp-surface-card);
	box-shadow: var(--rp-shadow-dropdown);
	list-style: none;

	/* Not display:none — opacity and visibility transition, and visibility
	 * still removes it from the accessible tree and from hit-testing. */
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 250ms ease,
		visibility 250ms ease;
}

/* Level 1 drops below the bar. */
.rp-nav__list > .menu-item > .sub-menu {
	top: 100%;
	left: 0;
}

/* Level 2 flies out to the right of its parent row, overlapping the 1px border
 * so the two panels read as one surface. */
.rp-nav__list .sub-menu .sub-menu {
	top: -1px;
	left: var(--rp-nav-panel-width);
}

.rp-nav__list .menu-item:hover > .sub-menu,
.rp-nav__list .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

/**
 * The last item opens leftward.
 *
 * Its panel is 270px anchored to the left of an item that already sits at the
 * right edge of the bar, so it opens past the viewport. That adds a horizontal
 * scrollbar and shifts the whole layout when the panel appears - which reads as
 * the menu item itself getting wider on hover.
 *
 * :last-child is the pragmatic fix, not the complete one: an item that is not
 * last can still overflow on a narrow desktop window or with a long menu.
 * Catching that properly means measuring at runtime, which is a script for a
 * problem this covers in practice.
 */
.rp-nav__list > .menu-item:last-child > .sub-menu {
	left: auto;
	right: 0;
}

/* Its second level flies out to the LEFT of its parent row, for the same
 * reason - otherwise it lands even further off-screen. */
.rp-nav__list > .menu-item:last-child .sub-menu .sub-menu {
	left: auto;
	right: var(--rp-nav-panel-width);
}

.rp-nav__list .sub-menu .menu-item {
	display: block;
	border-bottom: 1px solid var(--rp-colour-light-3);
}

.rp-nav__list .sub-menu .menu-item:last-child {
	border-bottom: 0;
}

/**
 * Panel rows.
 *
 * NO width: 100% HERE. A block or flex child already fills its parent, and
 * combining it with horizontal padding on a content-box element made each row
 * 302px wide inside a 270px panel - so justify-content: space-between pushed the
 * chevron 20px outside the panel, and on the last item, whose panel is anchored
 * to the right edge, past the viewport entirely.
 *
 * box-sizing is stated explicitly rather than relied on: this theme has no
 * global border-box reset, so every component that pairs a width with padding
 * has to say so.
 */
.rp-nav__list .sub-menu .menu-item > a {
	display: block;
	box-sizing: border-box;
	min-height: 0;
	padding: var(--rp-space-xs) var(--rp-space-lg) var(--rp-space-xs) var(--rp-space-sm);
	white-space: normal;
}

@media (hover: hover) {

	.rp-nav__list .sub-menu .menu-item > a:hover {
		background: var(--rp-colour-light-1);
		text-decoration: none;
	}
}

.rp-nav__list .sub-menu .menu-item > a:focus-visible {
	background: var(--rp-colour-light-1);
	text-decoration: none;
}

/**
 * Chevrons.
 *
 * On the bar it points down; in a panel it points right, at the row's trailing
 * edge, marking the rows that fly out further.
 *
 * Panel chevrons are a mask taking currentColor rather than the green
 * background-image used on the bar, so they stay legible against the hover
 * state and inherit the row's colour.
 */
.rp-nav__list .sub-menu .menu-item-has-children > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-space-xs);
}

.rp-nav__list .sub-menu .menu-item-has-children > a::after {
	content: "";
	flex: none;
	width: var(--rp-nav-chevron-size);
	height: var(--rp-nav-chevron-size);
	background: currentColor;
	-webkit-mask: url("../icons/nav-chevron-down.svg") no-repeat center / contain;
	mask: url("../icons/nav-chevron-down.svg") no-repeat center / contain;
	transform: rotate(-90deg);
}

@media (prefers-reduced-motion: reduce) {

	.rp-nav__list .sub-menu {
		transition: none;
	}
}


/* ---- Actions ---- */

.rp-header__actions {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--rp-header-actions-gap);
}

/**
 * position: relative is what .rp-count-badge anchors to, so it belongs HERE
 * rather than on one toggle.
 *
 * It was on .rp-enquiry-toggle, because the heart was the first icon to carry a
 * count. The basket badge then had no positioned ancestor and rendered against
 * whatever it found further up — present in the markup, updating correctly, and
 * nowhere near the icon. Any action in this row may carry a badge.
 */
.rp-header__action {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--rp-space-2xs);
	line-height: 0;
}

.rp-header__action img {
	display: block;
	width: var(--rp-nav-icon-size);
	height: var(--rp-nav-icon-size);
}

/**
 * The action icons. Taken from the SvelteKit header so both storefronts draw the
 * same marks — 28px on a 24 viewBox, 1.6 stroke, in Primary Green.
 *
 * They were 20px Figma exports in an <img>: a different size, a heavier stroke,
 * and different glyphs (a trolley rather than a bag). See
 * template-parts/nav-icon.php.
 *
 * `currentColor`, so a colour change is one declaration on the parent rather
 * than a second SVG file.
 */
.rp-nav-icon {
	display: block;
	flex-shrink: 0;
	width: var(--rp-nav-icon-size);
	height: var(--rp-nav-icon-size);
	color: var(--rp-colour-primary-green);
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rp-header__action:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

/* Visible only once focused, which is the whole point of a skip link. */
.rp-skip-link:focus {
	position: fixed;
	top: var(--rp-space-xs);
	left: var(--rp-space-xs);
	z-index: 100;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--rp-space-xs) var(--rp-space-md);
	background: var(--rp-surface-card);
	color: var(--rp-text-heading);
	clip-path: none;
}


/* -------------------------------------------------------------------
 * Header: mobile
 *
 * Figma "Nav" (390:80416) is a DIFFERENT ARRANGEMENT, not a reflow of the
 * desktop bar: logo and hamburger on one row, a full-width search field on the
 * next, and the account/cart icons gone entirely.
 *
 * Below the breakpoint the three-level flyout becomes a stacked accordion —
 * there is no hover to drive a flyout, and a 270px panel flying out to the
 * right has nowhere to go on a 402px screen.
 * ------------------------------------------------------------------- */

/* Desktop-only pieces. */
.rp-header__burger,
.rp-header__search {
	display: none;
}

/* Injected by site-nav.js; hidden on desktop where hover does the work. */
.rp-nav__toggle-sub {
	display: none;
}

/* Account, in the mobile menu only — on desktop it is an icon in the bar. */
.rp-nav__account {
	display: none;
}

@media (max-width: 991px) {

	/**
	 * GRID, NOT WRAPPED FLEX, so the second row can hold two things.
	 *
	 * The row break used to come from .rp-header__search being width:100%, which
	 * meant nothing else could share its line. Enquiries and the basket now sit
	 * at the end of that row — see "The mobile header carries the basket" in
	 * CLAUDE.md. Explicit areas rather than order: every in-flow child is placed,
	 * and .rp-search is absolute so it takes no cell.
	 */
	.rp-header__inner {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"logo   burger"
			"search actions"
			"nav    nav";
		align-items: center;
		row-gap: var(--rp-space-md);
		column-gap: var(--rp-space-sm);
	}

	.rp-header .custom-logo-link,
	.rp-header .rp-logo-link {
		grid-area: logo;
	}

	/* END, because the column is sized by the icon row below it (85px), not by
	 * the 27px burger — which left it short of the right edge. */
	.rp-header__burger {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		grid-area: burger;
		justify-self: end;
		width: var(--rp-burger-size);
		height: var(--rp-burger-size);
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	/* The icon is 27px per Figma, which is under the 44px touch minimum. The
	 * hit area is grown with a pseudo-element so the box stays 27 and nothing
	 * in the header row shifts. */
	.rp-header__burger::after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 44px;
		height: 44px;
		transform: translate(-50%, -50%);
	}

	/* Drawn rather than an asset: three rules that become a cross when open, so
	 * the control shows its own state without a second icon to keep in sync. */
	.rp-header__burger-bars,
	.rp-header__burger-bars::before,
	.rp-header__burger-bars::after {
		display: block;
		width: var(--rp-burger-size);
		height: 2px;
		background: var(--rp-text-heading);
		transition: transform 200ms ease, opacity 200ms ease;
	}

	.rp-header__burger-bars::before,
	.rp-header__burger-bars::after {
		content: "";
		position: absolute;
	}

	.rp-header__burger-bars::before {
		transform: translateY(-8px);
	}

	.rp-header__burger-bars::after {
		transform: translateY(8px);
	}

	.rp-header--nav-open .rp-header__burger-bars {
		background: transparent;
	}

	.rp-header--nav-open .rp-header__burger-bars::before {
		transform: rotate(45deg);
	}

	.rp-header--nav-open .rp-header__burger-bars::after {
		transform: rotate(-45deg);
	}

	/* Search takes the second row, per the design — now sharing it with the two
	 * actions rather than spanning the full width alone. */
	.rp-header__search {
		/* The containing block for the typeahead list, which is a CHILD here
		 * rather than the sibling the desktop bar needs — there is no clip-path
		 * on this row for it to escape. */
		position: relative;
		display: flex;
		grid-area: search;
		align-items: center;
		gap: var(--rp-space-xs);
		box-sizing: border-box;
		min-width: 0;
		height: var(--rp-search-height);
		padding-inline: var(--rp-space-xs);
		background: var(--rp-surface-card);
	}

	.rp-header__search .rp-nav-icon {
		width: 20px;
		height: 20px;
	}

	/* The list hangs off the row's bottom edge, so it must not be measured as
	 * part of it — height is fixed above and this is out of flow. It is the
	 * FIELD's width, not the header's: the actions sit beside it, so anything
	 * wider would have to be sized off the viewport, and this site has been
	 * bitten by horizontal overflow twice already. */
	.rp-header__search .rp-search__results {
		top: calc(100% + 4px);
		max-height: 60dvh;
	}

	/* 40, not 50 — the field is ~260 wide here and the thumbnail is competing
	 * with the product name for it. */
	.rp-header__search .rp-search__result img {
		width: 40px;
		height: 40px;
	}

	/* flex, not width:100% — the glass and the spinner are siblings in this row
	 * and a 100% basis pushes the spinner out of the box. */
	.rp-header__search-input {
		flex: 1;
		min-width: 0;
		border: 0;
		background: none;
		color: var(--rp-text-heading);
		font-family: var(--rp-font-family);
		/* 16, not the 14 this row's other text uses: iOS Safari zooms the page
		 * when an input under 16px takes focus. See "The input stays 16px" in
		 * CLAUDE.md — this control was breaking that rule. */
		font-size: var(--rp-type-body-size);
	}

	.rp-header__search-input:focus {
		outline: none;
	}

	/**
	 * ENQUIRIES AND THE BASKET STAY REACHABLE ON A PHONE.
	 *
	 * This was `display: none` — faithful to the mobile frame, which draws no
	 * icons at all, and it left the basket and the enquiry list with no entry
	 * point on mobile and both count badges invisible. A deliberate divergence,
	 * client's decision 13 August 2026: a shop whose cart cannot be opened on a
	 * phone is broken, whatever the artwork says.
	 *
	 * They sit at the end of the search row, so this costs no vertical height
	 * and the logo keeps its full size.
	 */
	.rp-header__actions {
		display: flex;
		grid-area: actions;
	}

	/* Search is already the field beside them, and account is a low-frequency
	 * action that belongs in the menu — see .rp-nav__account below. */
	.rp-header__actions .rp-account-link,
	.rp-header__actions .rp-search-toggle {
		display: none;
	}

	/**
	 * The panel.
	 *
	 * Collapsed with max-height rather than display:none so it can animate, and
	 * so the markup stays in the accessible tree in document order.
	 *
	 * WITHOUT JAVASCRIPT the .rp-header--nav-open class is never added, so the
	 * menu stays collapsed and the hamburger does nothing. That is the one place
	 * this theme depends on script for a core function — the alternative is a
	 * checkbox hack whose semantics are worse. Flagged rather than hidden.
	 */
	.rp-nav {
		grid-area: nav;
		max-height: 0;
		overflow: hidden;
		transition: max-height 250ms ease;
	}

	/* site-nav.js sets --rp-nav-max to the space actually left below the header.
	 * The 80vh fallback is what a plain vh unit can manage: it ignores the two
	 * header rows above the panel, so on a short viewport (landscape) the
	 * bottom of the list lands off-screen with the page scroll locked. */
	.rp-header--nav-open .rp-nav {
		max-height: var(--rp-nav-max, 80vh);
		overflow-y: auto;
	}

	.rp-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.rp-nav__list > .menu-item {
		display: block;
		min-height: 0;
		border-bottom: 1px solid var(--rp-colour-light-3);
	}

	.rp-nav__list .menu-item {
		position: relative;
	}

	/* 44px so the row matches the toggle button beside it. At the 40px the
	 * padding alone gave, the 44px button overhung the row and stole the top of
	 * the next one. */
	.rp-nav__list > .menu-item > a,
	.rp-nav__list .sub-menu .menu-item > a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: var(--rp-space-xs) 0;
		padding-inline-end: 44px;       /* clears the toggle button */
	}

	/* Reads as one more menu row: same 44px height, same rule beneath, same
	 * type as a top-level item. It sits after the list, not inside it, so no
	 * menu walker or wp_nav_menu_items filter is involved. */
	.rp-nav__account {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: var(--rp-space-xs) 0;
		border-bottom: 1px solid var(--rp-colour-light-3);
		color: var(--rp-text-heading);
		font-size: var(--rp-nav-link-size);
		font-weight: var(--rp-font-weight-medium);
		letter-spacing: var(--rp-nav-link-tracking);
		line-height: 1;
		text-decoration: none;
	}

	/* Flyout geometry off: panels become plain nested lists. */
	.rp-nav__list .sub-menu,
	.rp-nav__list .sub-menu .sub-menu {
		position: static;
		top: auto;
		left: auto;
		display: none;
		width: auto;
		padding-inline-start: var(--rp-space-md);
		background: none;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transition: none;
	}

	/* No hover/focus-within guard here: the desktop rule only sets opacity and
	 * visibility, which the display:none above already beats. A guard on
	 * :focus-within outranks the open class and jams the accordion shut. */

	.rp-nav__list .menu-item--open > .sub-menu,
	.rp-nav__list .rp-nav__item--open > .sub-menu {
		display: block;
	}

	/* The link chevrons are replaced by the toggle button's own. The panel one
	 * needs .sub-menu in the selector to outrank the rule that draws it. */
	.rp-nav__list .menu-item-has-children > a::after,
	.rp-nav__list .sub-menu .menu-item-has-children > a::after {
		content: none;
	}

	.rp-nav__toggle-sub {
		position: absolute;
		top: 0;
		right: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 44px;                    /* minimum comfortable touch target */
		height: 44px;
		padding: 0;
		border: 0;
		background: none;
		cursor: pointer;
	}

	.rp-nav__toggle-sub::after {
		content: "";
		width: var(--rp-nav-chevron-size);
		height: var(--rp-nav-chevron-size);
		background: var(--rp-text-heading);
		-webkit-mask: url("../icons/nav-chevron-down.svg") no-repeat center / contain;
		mask: url("../icons/nav-chevron-down.svg") no-repeat center / contain;
		transition: transform 200ms ease;
	}

	.rp-nav__toggle-sub[aria-expanded="true"]::after {
		transform: rotate(180deg);
	}

	.rp-nav__toggle-sub:focus-visible {
		outline: 2px solid var(--rp-focus-ring);
		outline-offset: -2px;
	}

	/* Stops the page scrolling behind an open panel. position:fixed rather than
	 * overflow:hidden alone, which iOS Safari ignores; site-nav.js holds the
	 * scroll position in body.top and restores it on close. */
	body.rp-nav-open {
		position: fixed;
		width: 100%;
		overflow: hidden;
	}
}

@media (prefers-reduced-motion: reduce) {

	.rp-nav,
	.rp-header__burger-bars,
	.rp-header__burger-bars::before,
	.rp-header__burger-bars::after,
	.rp-nav__toggle-sub::after {
		transition: none;
	}
}


/* ===================================================================
 * 11. Utilities
 * =================================================================== */

/**
 * A basket or checkout line's unit price (wc2026_cart_line_price). On sale: the
 * current price first, then the regular price struck through.
 */
.rp-line-price:has(del) {
	display: inline-flex;
	gap: var(--rp-space-xs);
}

.rp-line-price ins {
	order: 1;
	background: none;
	color: inherit;
	text-decoration: none;
}

.rp-line-price del {
	order: 2;
	color: inherit;
	text-decoration: line-through;
}

/**
 * Visible to screen readers, not to sighted users.
 *
 * Used for the home crumb's label, whose icon carries alt="". Prefer this over
 * display: none or visibility: hidden, both of which remove the text from the
 * accessible tree as well.
 *
 * .screen-reader-text is WordPress/WooCommerce's name for the same thing - e.g. the
 * "Original price was" text in every sale price. WooCommerce's stylesheet is not loaded.
 */
.rp-visually-hidden,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}


/* ===================================================================
 * 14. WooCommerce structural resets
 *
 * WooCommerce's own stylesheets are dequeued in inc/woocommerce-setup.php
 * (see wc2026_dequeue_woocommerce_styles), so these resets only need to
 * undo browser defaults on the markup WooCommerce generates - not fight
 * WooCommerce CSS.
 *
 * If you re-enable WooCommerce's stylesheets, this block will need to grow.
 * =================================================================== */

.woocommerce ul.products.rp-grid,
ul.products.rp-grid {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce ul.products.rp-grid::before,
.woocommerce ul.products.rp-grid::after {
	content: none;                      /* WooCommerce's clearfix, unwanted in grid */
}

.woocommerce ul.products.rp-grid li.product,
ul.products.rp-grid li.product {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	clear: none;
}


/* ===================================================================
 * 12. Newsletter band
 *
 * Full-width band above the footer on every page. One row since the 16 Nov 2026
 * brief: centred at desktop, text and button at the edges on tablet, button only on phones.
 * =================================================================== */

.rp-newsletter {
	background: var(--rp-surface-newsletter);
	padding: 20px var(--rp-page-margin);
}

.rp-newsletter__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--rp-space-lg) clamp(32px, 10vw, 150px);
	max-width: var(--rp-container-max);
	margin-inline: auto;
}

.rp-newsletter__text {
	margin: 0;
	color: var(--rp-text-on-dark);
	font-size: var(--rp-type-body-lg-size);
	line-height: var(--rp-type-body-lg-leading);
}

/* The design caps the button at 354px rather than letting it span the band. */
.rp-newsletter__button {
	flex: 0 1 354px;
	max-width: 354px;
}


/* ===================================================================
 * 13. Site footer
 *
 * Simplified 16 Nov 2026: brand column, Information, contact lines (no heading,
 * so they start level with the first link), over a legal bar.
 * =================================================================== */

.rp-footer {
	background: var(--rp-surface-footer);
	padding: 20px var(--rp-page-margin);
	color: var(--rp-text-on-dark);
}

.rp-footer__inner {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-sm);
	max-width: var(--rp-container-max);
	margin-inline: auto;
}

.rp-footer__columns {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 171px;
}

.rp-footer__brand {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--rp-space-lg);
	min-width: 200px;
	max-width: 250px;
}

.rp-footer__logo-text {
	color: var(--rp-text-on-dark);
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-type-h2-weight);
	text-decoration: none;
}

.rp-footer .custom-logo {
	width: 100%;
	height: auto;
}

/**
 * The footer logo is 250 wide, where the header's is 278 — Figma "Footer
 * section" (106:1947), frame 0:6. There was no rule at all here, so the img
 * fell back to the 278x56 attributes the header sets and ran 28px wide of the
 * column it sits in.
 *
 * The COLOUR is in the file, not here: assets/icons/logo-footer.svg is the
 * cream twin. An <img> cannot be recoloured from CSS, and the alternative — a
 * mask tinted by a token — would cost the alt text, which on a logo is the site
 * name. Same trade as the two spinner-house files.
 */
.rp-footer .rp-logo-link {
	display: block;
	line-height: 0;
}

.rp-footer .rp-logo {
	display: block;
	width: var(--rp-footer-logo-width);
	height: auto;
	max-width: 100%;
}

.rp-footer__socials {
	display: flex;
	align-items: center;
}

.rp-footer__social {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--rp-space-2xs);
	line-height: 0;
}

.rp-footer__social:focus-visible {
	outline: 2px solid var(--rp-text-on-dark-heading);
	outline-offset: 2px;
}

.rp-footer__cta {
	width: 100%;
}

.rp-footer__nav {
	display: flex;
	flex: 1 1 300px;
	flex-wrap: wrap;
	gap: 48px 39px;
}

.rp-footer__column {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-sm);
	width: 180px;
}

.rp-footer__column--contact {
	width: 280px;
	gap: var(--rp-space-lg);

	/* No heading of its own: drop by the Information heading's height plus its gap. */
	padding-top: calc(var(--rp-type-h4-caps-size) + var(--rp-space-sm));
}

/* Figma: Heading/H4 Caps at 50% opacity. Opacity rather than a lightened hex,
 * so the one sand token stays the single source for this colour. */
.rp-footer__heading {
	margin: 0;
	color: var(--rp-text-on-dark-heading);
	font-size: var(--rp-type-h4-caps-size);
	font-weight: var(--rp-type-h4-caps-weight);
	line-height: 1;
	text-transform: uppercase;
	opacity: 0.5;
}

.rp-footer__links {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-footer__links a {
	display: block; /* row pitch = line-height + gap, as in Figma (28, then 24 below desktop) */
}

.rp-footer__links a,
.rp-footer__contact a,
.rp-footer__contact-item span {
	color: var(--rp-text-on-dark);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	text-decoration: none;
	opacity: 0.8;
}

.rp-footer__links a:hover,
.rp-footer__contact a:hover {
	opacity: 1;
	text-decoration: underline;
}

.rp-footer__contact {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-footer__contact-item {
	display: flex;
	align-items: flex-start;
	gap: var(--rp-space-sm);
}

.rp-footer__contact-item img {
	flex: none;
	display: block;
	width: 18px;
	height: 18px;
}

/* ---- Legal bar ---- */

.rp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rp-space-md);
	color: var(--rp-text-legal);
	font-size: var(--rp-type-body-xs-size);
	line-height: var(--rp-type-body-xs-leading);
}

.rp-footer__copyright,
.rp-footer__legal-links {
	margin: 0;
}

.rp-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-lg);
}

.rp-footer__legal-links a {
	color: inherit;
	text-decoration: none;
}

.rp-footer__legal-links a:hover {
	text-decoration: underline;
}

/* The build credit, on the copyright line. Same treatment as the legal links. */
.rp-footer__credit {
	color: inherit;
	text-decoration: none;
}

.rp-footer__credit:hover {
	text-decoration: underline;
}

@media (max-width: 991px) {

	.rp-newsletter,
	.rp-footer {
		padding-inline: var(--rp-space-lg);
	}

	.rp-footer__columns {
		gap: 32px;
	}

	.rp-newsletter__inner {
		justify-content: space-between;
	}

	/* Tablet: logo left, Clearance right, on one row above the columns. */
	.rp-footer__brand {
		flex: 1 1 100%;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
		max-width: none;
	}

	.rp-footer__cta {
		width: auto;
	}

	/* 706 and 430 frames: contact lines up with the Information heading; links 24 apart. */
	.rp-footer__column--contact {
		padding-top: 0;
	}

	.rp-footer__links {
		gap: 8px;
	}
}

@media (max-width: 599px) {

	/* The band's text is its label, so it stays for screen readers. */
	.rp-newsletter__text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.rp-newsletter__button {
		flex: 1 1 100%;
		max-width: none;
	}

	.rp-footer__brand {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-footer__cta {
		width: 100%;
	}

	.rp-footer__nav {
		row-gap: var(--rp-space-lg);
	}

	/* Terms sit straight under the copyright line. */
	.rp-footer__legal {
		row-gap: 0;
	}
}


/* ===================================================================
 * 12. The enquiry list
 *
 * Header heart + count, and the slide-out panel. Ported from the SvelteKit
 * SlideOutPanel / EnquiryPanel / CountBadge - no Figma frame draws any of it.
 *
 * The panel is closed by default and opened either by :target (no script) or
 * by .rp-panel--open (script). Both selectors drive the same rules, so the two
 * paths cannot look different.
 * =================================================================== */

/* Count badge. A pill rather than a circle: two digits squash a 16px circle
 * and three break it, and an enquiry list reaches both. */
.rp-count-badge {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-width: 16px;
	height: 16px;
	padding: 0 var(--rp-space-2xs);
	border-radius: 8px;
	background: var(--rp-colour-dark-green);
	color: var(--rp-text-on-dark);
	font-size: 11px;
	font-weight: var(--rp-font-weight-bold);
	line-height: 1;
	/* Proportional digits make the pill twitch as the number changes. */
	font-variant-numeric: tabular-nums;
}

.rp-count-badge--empty {
	display: none;
}

.rp-count-badge--pulse {
	animation: rp-count-pulse 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes rp-count-pulse {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}


/* ---- The panel ---- */

.rp-panel {
	position: fixed;
	inset: 0;
	z-index: 200;
	/* Closed, it must not swallow clicks meant for the page underneath. */
	pointer-events: none;
	/*
	 * THE CLOSED SHEET PARKS OFF THE RIGHT EDGE, AND WITHOUT THIS A PHONE CAN
	 * PAN TO IT. Under 600px the sheet is 100vw, so translateX(100%) puts it
	 * exactly one screen to the right: a dismissed panel left a blank screen
	 * with the page scrolling back in from the left. Costs nothing open — the
	 * sheet is at translateX(0), flush inside this box.
	 */
	overflow: hidden;
}

/* Below the WordPress admin bar (staff only), which otherwise covers the panel's title.
 * Under 600px the bar scrolls away with the page, so the panel stays full height there. */
@media (min-width: 601px) {
	.admin-bar .rp-panel {
		top: var(--wp-admin--admin-bar--height, 0px);
	}
}

.rp-panel:target,
.rp-panel--open {
	pointer-events: auto;
}

.rp-panel__scrim {
	position: absolute;
	inset: 0;
	background: var(--rp-panel-scrim);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.rp-panel:target .rp-panel__scrim,
.rp-panel--open .rp-panel__scrim {
	opacity: 1;
}

.rp-panel__sheet {
	position: absolute;
	inset-block: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: var(--rp-panel-width);
	min-width: var(--rp-panel-min-width);
	max-width: 100vw;
	background: var(--rp-surface-panel);
	transform: translateX(100%);

	/*
	 * TRANSFORM ONLY. Do NOT add box-shadow to this list — it was tried and it
	 * silently defeats the fix below. The closed sheet is clipped by
	 * .rp-panel's overflow and never painted, so Chrome leaves the resulting
	 * CSSTransition at currentTime 0 forever: the shadow stays pinned to its
	 * START value and never reaches `none`. It outranks even an !important
	 * inline style, because a running transition sits at the top of the
	 * cascade. Switch the shadow instantly instead.
	 */
	transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/*
 * THE SHADOW IS ON THE OPEN STATE, NOT THE SHEET. It used to sit above, and it
 * drew a full-height grey strip down the right edge of EVERY page — both sheets
 * are always in the DOM, parked at translateX(100%) just outside the viewport,
 * and --rp-shadow-panel is `-8px 0 28px`, i.e. cast LEFTWARDS. So ~36px of
 * shadow from each landed back inside the screen, doubled, on every page.
 *
 * .rp-panel's overflow:hidden cannot help: it clips to the full-viewport box,
 * and the shadow falls INSIDE that box. Clipping the sheet away does not clip
 * a shadow thrown back at the page. Client-reported, 10 September 2026.
 */
.rp-panel:target .rp-panel__sheet,
.rp-panel--open .rp-panel__sheet {
	transform: translateX(0);
	box-shadow: var(--rp-shadow-panel);
}

.rp-panel__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	gap: var(--rp-space-sm);
	padding: 14px 12px 14px var(--rp-space-lg);
	background: var(--rp-panel-header-bg);
	color: var(--rp-text-on-dark);
}

.rp-panel__title {
	margin: 0;
	padding: 0;
	color: var(--rp-text-on-dark);
	font-family: var(--rp-font-family);
	font-size: 20px;
	font-weight: var(--rp-type-h2-weight);
	line-height: 1.2;
}

.rp-panel__close {
	display: flex;
	align-items: center;
	justify-content: center;
	/* 44px minimum touch target. */
	min-width: 44px;
	min-height: 44px;
	color: var(--rp-text-on-dark);
}

.rp-panel__close svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rp-panel__body {
	flex: 1;
	overflow-y: auto;
	padding: 0 var(--rp-space-lg);
}

.rp-panel__empty {
	padding: 24px 0;
	font-family: var(--rp-font-family);
	color: var(--rp-text-body);
}

/**
 * A DEFERRED PANEL SHOWS ONE OR THE OTHER, never both.
 *
 * The body is rendered on the server as a link to the full list, because with
 * the script blocked that is all anyone will ever get. With the script running
 * it is replaced within a moment, and a link that appears and then vanishes
 * reads as a bug - client-reported, 13 August 2026.
 *
 * `.rp-panel--js` is added by enquiries.js at INIT, not on open, so the swap has
 * happened before the panel slides. A failed or empty fetch removes it again and
 * the link comes back - so nothing here can strand an empty panel.
 */
/* The house is centred in the panel body - it is the only thing on screen while
 * the list loads, so left-aligned against the body's padding read as misplaced. */
.rp-panel__loading {
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 0;
}

.rp-panel--js .rp-panel__loading {
	display: flex;
}

.rp-panel--js .rp-panel__placeholder {
	display: none;
}


/* ---- A row in the panel ---- */

.rp-enquiry-item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: var(--rp-space-md);
	align-items: start;
	padding: var(--rp-space-lg) 0;
	/* Warmer than the theme's greys, which go muddy on cream. */
	border-bottom: 1px solid var(--rp-panel-rule);
}

.rp-enquiry-item__image {
	display: block;
	width: 88px;
	height: 110px;
}

.rp-enquiry-item__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rp-enquiry-item__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rp-space-xs);
}

.rp-enquiry-item__name {
	color: var(--rp-colour-ink);
	font-family: var(--rp-font-family);
	font-size: 17px;
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.25;
	text-decoration: none;
	overflow-wrap: break-word;
}

.rp-enquiry-item__name:hover {
	text-decoration: underline;
}

.rp-enquiry-item__remove {
	flex-shrink: 0;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--rp-colour-primary-green);
}

.rp-enquiry-item__remove svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rp-enquiry-item__meta {
	margin: 0;
	padding-top: var(--rp-space-2xs);
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-sm-size);
	color: var(--rp-text-muted);
}


/* ---- The add control ---- */

/* The button is the form's only content, so the form must not introduce a box
 * of its own - the summary's action row lays these out. */
.rp-enquiry-add {
	display: contents;
}

/* "In enquiry" keeps its colours - it means "already on the list", not
 * "unavailable". It opens the panel now, so it keeps .rp-btn's pointer; the old
 * cursor: default and opacity: 1 went with the disabled attribute. */
.rp-btn--added {
	gap: 8px;
}

.rp-btn__tick {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-image: url("../icons/tick-white.svg");
	background-repeat: no-repeat;
	background-size: 18px 18px;
	background-position: center;
}

@media (max-width: 600px) {
	.rp-panel__sheet {
		width: 100vw;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rp-panel__sheet,
	.rp-panel__scrim {
		transition: none;
	}

	.rp-count-badge--pulse {
		animation: none;
	}
}


/* ===================================================================
 * 13. Panel surface — generic, use it for any panel
 *
 * .rp-panel-surface is THE content panel: the enquiry form, Your Items, the
 * thank-you page, and whatever is built next. Named for what it is, not where it
 * first appeared — it was `.rp-enquiry-panel` until 10 August 2026, which is the
 * page-specific naming this file's own rules warn against.
 *
 * THE THREE-TONE STACK, and getting the order wrong is what made the SvelteKit
 * checkout look unlike the artwork:
 *
 *   page   --rp-surface-page    Light 3   the ground
 *   panel  --rp-surface-panel   Light 1   this
 *   input  --rp-surface-input   white     inputs, and only inputs
 *
 * **A panel is never white. An input is always white.** The panel reads as a
 * panel because it is a shade lighter than the page, not because it has a
 * border; the input reads as an input because it is lighter again. Make the
 * panel white and both distinctions collapse.
 *
 * Same reason .rp-btn--white must not go inside one: white on Light 1 has no
 * edge to read against. Use --green there.
 *
 * Sampled from Figma "9-Enquire Form" (383:53931). Full write-up:
 * rp2024-frontend/docs/panel-surface.md.
 * =================================================================== */

/**
 * ONE PANEL, STACKED - the items, then Your details. Figma redrew this page in
 * September 2026; it was two panels side by side (5fr/7fr) until then, and the
 * `order: -1` that pulled Your Items above the form when stacked is gone with
 * them. The DOM order is now the reading order at every width, so nothing here
 * separates what is seen from what is tabbed.
 *
 * The panel is the full container width, so "A form is not page-wide" and its
 * 640px cap do NOT apply: the item rows need the width, and the fields are held
 * in two- and three-column rows rather than one 1200px-long one.
 * .rp-panel-surface--narrow still caps the sent / logged-out / empty states,
 * which are a heading and a paragraph each.
 */
/* NOT .rp-enquiry-panel. That name is RETIRED - see NAMING.md - and the header's
 * slide-out already carries id="rp-enquiry-panel", which is in the footer of
 * every page, so the two would sit in one document under one name.
 *
 * DOUBLED CLASS, and it has to be: .rp-panel-surface's own `padding` is declared
 * further down this file, so at equal specificity source order would win and
 * this would silently be the even 20 it is replacing. */
.rp-panel-surface.rp-enquiry-page__form {
	padding: var(--rp-enquiry-pad-y) var(--rp-enquiry-pad-x);
}

/* Body/Small, not body - it is a caption over a list, not a page lead. */
.rp-enquiry-page__form > .rp-panel-surface__intro {
	margin: 0 0 var(--rp-enquiry-rule-space);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
}

/* It holds editor HTML, so its paragraphs carry .rp-panel-surface__intro's own
 * 20px - which collapses through this box and beats the 18 above. */
.rp-enquiry-page__form > .rp-panel-surface__intro > :first-child {
	margin-top: 0;
}

.rp-enquiry-page__form > .rp-panel-surface__intro > :last-child {
	margin-bottom: 0;
}

/**
 * EVERY HAIRLINE IS A border-top ON THE BLOCK BELOW IT, never its own <hr>.
 * The frame rules under the lead, between each item and above Your details -
 * which is "one above each block", so a single declaration states it and no
 * :first-child / :last-child can get the row count wrong.
 */
.rp-enquiry-line,
.rp-enquiry-details {
	padding-top: var(--rp-enquiry-rule-space);
	border-top: 1px solid var(--rp-panel-rule);
}

.rp-panel-surface {
	box-sizing: border-box;
	padding: var(--rp-space-lg);
	background: var(--rp-surface-panel);
}

.rp-panel-surface--narrow {
	max-width: 640px;
}

.rp-panel-surface__title {
	margin: 0 0 var(--rp-space-sm);
	/* line-height: 1 below removes the half-leading a heading normally sits on,
	 * so the text sat tight against what follows. 10px puts it back. */
	padding: 0 0 var(--rp-space-xs);
	font-family: var(--rp-font-family);
	/* Heading/H3 - Inter Bold 20 - which is what the "9-Enquire Form" frame sets
	 * its H1 in. It was H4 semibold 18 here, a style that frame does not use.
	 *
	 * line-height 1 because Figma states every heading at lineHeight 100.
	 * Without it the browser falls back to `normal`, ~20% taller, which is what
	 * made the heading look wrong. */
	font-size: var(--rp-type-h3-size);
	font-weight: var(--rp-type-h3-weight);
	line-height: 1;
	color: var(--rp-colour-ink);
}

/* As the page title (Log In, Register, password reset) it takes the h1 gap; the 10 padding counts toward it. */
h1.rp-panel-surface__title {
	margin-block-end: max(0px, calc(var(--rp-h1-space-after) - var(--rp-space-xs)));
}

/**
 * Supporting paragraphs in a panel - the intro, "Or reset your password", "A
 * link will be sent to your email address".
 *
 * Direct children only. The fields are `<p class="rp-field">` inside .rp-form,
 * so they do not match, and spacing every field row here would loosen the
 * whole form.
 *
 * ONE mechanism, not the browser's 16px margin with 10px of padding on top of
 * it - which came to 26px after every paragraph and was stated nowhere. It
 * shows as soon as a panel carries two paragraphs, as /recycle does.
 */
/* :not(.rp-field) states what the note above assumed - this is for PROSE. A
 * field row spaced by its panel's own gap (the delivery panel) got both. */
.rp-panel-surface > p:not(.rp-field) {
	margin: 0 0 var(--rp-space-lg);
}

/* Body copy: the paragraph explaining the form, read in sentences.
 *
 * EDITOR HTML on the enquiry form - the send-enquiry page's own content - so it
 * is a div holding paragraphs rather than one <p>, and it is in the three
 * authored-copy lists below. */
.rp-panel-surface__intro {
	margin: 0 0 var(--rp-space-lg);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink-muted);
}

/* The panel's own paragraph spacing, restated because these are now nested and
 * `.rp-panel-surface > p` no longer reaches them. /recycle carries two. */
.rp-panel-surface__intro p {
	margin: 0 0 var(--rp-space-lg);
}

.rp-panel-surface__intro > *:first-child {
	margin-top: 0;
}

.rp-panel-surface__intro > *:last-child {
	margin-bottom: 0;
}

/**
 * A panel that folds away. Generic on purpose — the enquiry form's Your Items
 * is the first caller, not the only intended one.
 *
 * The toggle reads as the panel's intro line, because that is what it replaced:
 * closed, it still says what the panel holds. Native <details> for the same
 * reasons as the FAQs — state, keyboard handling and screen-reader semantics
 * free, and the chevron is CSS so it stays out of the accessible tree.
 */
.rp-panel-surface__toggle {
	/* Grid, so the chevron can sit on the HEADING's line while the note stacks
	 * under it. A flex row cannot: <summary> takes no wrapper element around
	 * the two, because its content model is phrasing plus heading content. */
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas:
		"title chevron"
		"note  chevron";
	gap: 0 var(--rp-space-md);
	margin: 0 0 var(--rp-space-lg);
	cursor: pointer;
	list-style: none;
}

.rp-panel-surface__toggle .rp-panel-surface__title {
	grid-area: title;
	/* The note carries the space below now. */
	margin: 0;
}

.rp-panel-surface__toggle-note {
	grid-area: note;
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink-muted);
}

.rp-panel-surface__toggle::-webkit-details-marker {
	display: none;
}

.rp-panel-surface__toggle::after {
	grid-area: chevron;
	/* Top row, not centred across both — level with the heading. */
	align-self: start;
	margin-block-start: 0.4em;
	content: "";
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--rp-colour-primary-green);
	border-bottom: 2px solid var(--rp-colour-primary-green);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 150ms ease-in-out;
}

.rp-panel-surface__collapse[open] .rp-panel-surface__toggle::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.rp-panel-surface__actions {
	margin: 0;
}

/* Multi-line fields size by rows, so the shared input padding is all they need. */
.rp-field__input--area {
	resize: vertical;
}

/* The submit button sits with the fields rather than stretching across the
 * panel - .rp-btn is inline-flex with an 80px side padding, and a flex column
 * stretches it edge to edge otherwise. It lived in account.css until
 * 21 September 2026, so /recycle's Submit ran the full 592px of its panel. */
.rp-form__submit {
	align-self: flex-start;
	margin-top: var(--rp-space-2xs);
}


/* ---- One item in the enquiry ---- */

.rp-enquiry-line {
	display: grid;
	grid-template-columns: var(--rp-enquiry-thumb) minmax(0, 1fr);
	gap: var(--rp-enquiry-gap);
	align-items: start;
	padding-bottom: var(--rp-enquiry-rule-space);
}

/* Photograph above the details, and it does NOT stretch: the 402 frame keeps it
 * the same 218 square it is at 1440, left-aligned in a 306 column. */
@media (max-width: 600px) {
	.rp-enquiry-line {
		grid-template-columns: minmax(0, 1fr);
	}
}

.rp-enquiry-line__image {
	display: block;
	width: var(--rp-enquiry-thumb);
	max-width: 100%;
	aspect-ratio: 1;
}

.rp-enquiry-line__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rp-enquiry-line__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rp-space-xs);
}

/* Heading/H2 24 Bold, as the frame draws it. The leading is 1.2 and not the
 * frame's 100%: a real product name wraps where the mock's does not, and 24px
 * lines touching each other is what 100% gives. Same call .rp-card__title makes. */
.rp-enquiry-line__name {
	color: var(--rp-colour-ink);
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	text-decoration: none;
	overflow-wrap: break-word;
}

.rp-enquiry-line__name:hover {
	text-decoration: underline;
}

.rp-enquiry-line__remove {
	flex-shrink: 0;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--rp-colour-primary-green);
}

.rp-enquiry-line__remove svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* A line item's detail rows (template-parts/item-meta.php): enquiry form and panel, basket. */
.rp-item-meta__row {
	margin: var(--rp-space-3xs) 0 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
}

/* WooCommerce's sale markup: was-price struck, current price plain. */
.rp-item-meta__row--price ins {
	background: none;
	color: var(--rp-text-heading);
	text-decoration: none;
}

.rp-item-meta__row--price del {
	color: inherit;
	text-decoration: line-through;
}

.rp-enquiry-line__comment {
	margin-top: var(--rp-enquiry-field-gap);
}

/* The frame gives the per-item box 116 and the "anything else" one 76 - the
 * item comment is the field this page exists to collect, so it is the taller. */
.rp-enquiry-line__comment .rp-field__input {
	min-height: var(--rp-enquiry-comment-height);
}


/* ---- Your details ---- */

.rp-enquiry-details__title {
	margin: 0 0 var(--rp-enquiry-gap);
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-type-h2-weight);
	line-height: 1;
	color: var(--rp-text-heading);
}

/**
 * SIX COLUMNS, and the fields say how many they span. The frame runs
 * First|Last, then Email full width, then Phone|State|Postcode - halves and
 * thirds of the same row, which a six-track grid states exactly and a pair of
 * nested flex rows does not.
 *
 * The spans go on the FIELD, so reordering the markup reorders the form and no
 * rule here has to know what is in it.
 */
.rp-enquiry-fields {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--rp-enquiry-field-gap);
}

.rp-enquiry-fields > .rp-field {
	margin: 0;
	grid-column: span 6;
}

.rp-enquiry-fields > .rp-field--half {
	grid-column: span 3;
}

.rp-enquiry-fields > .rp-field--third {
	grid-column: span 2;
}

.rp-enquiry-fields .rp-field__input--area {
	min-height: var(--rp-enquiry-note-height);
}

/* One column at 402, which is what that frame draws - every field full width. */
@media (max-width: 600px) {
	.rp-enquiry-fields > .rp-field--half,
	.rp-enquiry-fields > .rp-field--third {
		grid-column: span 6;
	}
}

/**
 * Submit left, the friend checkbox hard right. Both are in one row so the
 * spinner has somewhere to go - and it goes INSIDE the button
 * (data-pending-inside), or space-between would push the checkbox as it
 * appeared.
 */
.rp-enquiry-submit {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-enquiry-gap);
	margin-top: var(--rp-enquiry-gap);
}

/* 402 draws the button full width with the checkbox under it, left-aligned. */
@media (max-width: 600px) {
	.rp-enquiry-submit {
		flex-direction: column;
		align-items: stretch;
	}

	.rp-enquiry-submit .rp-btn {
		width: 100%;
	}
}

/* The panel's link through to this page. */
.rp-panel__submit {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-sm);
	margin: 0;
	padding: 22px 0 28px;
}

.rp-panel__submit .rp-btn {
	width: 100%;
	box-sizing: border-box;
}

/**
 * Send to friend. Revealed by the checkbox rather than by script, so the fields
 * are reachable with JavaScript blocked like everything else on this page.
 *
 * THE FRAME DRAWS ONLY THE CHECKBOX, beside Submit, and says nothing about
 * where the three fields it reveals go. They are ABOVE it - client, 1 September
 * 2026: ticking the box has to leave Submit under Friend Comment, or the button
 * sits in the middle of the form.
 *
 * Done in DOM order and NOT with `order` on a flex parent, so the reading order,
 * the visual order and the tab order stay one order - and the captcha keeps the
 * form standard's place, last, with everything still to answer above it.
 *
 * So the :has() scope is the whole Your details block rather than a wrapper
 * around the pair: the checkbox and the fields are not siblings, and :has() on a
 * shared ancestor does not care that the control now comes after what it
 * reveals.
 *
 * Matched on .rp-friend__toggle and not .rp-check__input: the captcha is in the
 * same block and may carry a checkbox of its own.
 */
.rp-friend__fields {
	display: none;
	flex-direction: column;
	gap: var(--rp-enquiry-field-gap);
	margin-top: var(--rp-enquiry-gap);
}

.rp-enquiry-details:has( .rp-friend__toggle:checked ) .rp-friend__fields {
	display: flex;
}

/* Without :has() the fields simply stay visible - usable, just not collapsed.
 * Better than hiding something the browser can never reveal. */
@supports not selector(:has(*)) {
	.rp-friend__fields {
		display: flex;
	}
}

/* A select is not an input; it needs the arrow room and the same metrics. */
select.rp-field__input {
	appearance: none;
	background-image: url("../icons/nav-chevron-down.svg");
	background-repeat: no-repeat;
	background-position: right var(--rp-space-sm) center;
	background-size: 10px;
	padding-right: calc(var(--rp-space-sm) * 2 + 10px);
}

/* ===================================================================
 * 15. Pending state
 *
 * The spinning house beside a button that has been pressed. Injected by
 * assets/js/pending.js on any navigating submit - see the head of that file.
 *
 * The animation is INSIDE assets/icons/spinner-house.svg. An SVG used as a
 * background-image renders as its own document and its CSS runs, so nothing
 * here rotates - which is the point: rotating an element would take its label
 * round with it.
 * =================================================================== */

.rp-pending {
	/* A fixed 30px slot at 20px of artwork, matching the SvelteKit forms, so a
	 * row does not jump when the spinner appears. */
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	background-image: url("../icons/spinner-house.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

/* The button keeps its colours - it is working, not unavailable - but stops
 * inviting a second press. */
.rp-btn[aria-busy="true"] {
	cursor: progress;
	gap: 8px;                       /* the gap .rp-btn--added uses for its tick */
}

/* Inside a button (data-pending-inside), the spinner takes the tick's slot and
 * its metrics, so the working state and the finished state occupy exactly the
 * same space and the label does not shift between them. */
.rp-btn .rp-pending {
	width: 18px;
	height: 18px;
	background-size: 18px 18px;
}

/* A white house on the dark ground. Primary Green on Dark Green is nearly
 * invisible, which is what the default file draws.
 *
 * Scoped to --green rather than .rp-btn, deliberately: on the cream and white
 * colourways the green house is the one with contrast, so they keep it. */
.rp-btn--green .rp-pending {
	background-image: url("../icons/spinner-house-white.svg");
}

/* Beside the enquiry row's remove control the slot is 18, not the default 30:
 * the row is top-aligned, so a 20px house centred in a 30px box sat 6px below
 * the 18px bin icon and grew the row by 10 as it appeared. Same metrics as the
 * icon it works next to. */
.rp-enquiry-line__remove + .rp-pending {
	width: 18px;
	height: 18px;
	background-size: 18px 18px;
}

/* The spinner is injected as the button's next sibling, so the row holding it
 * has to be a flex row or the spinner drops below.
 *
 * ONLY the enquiry form's row is listed. .rp-summary__actions and
 * .rp-filters__actions are already flex with gaps of their own, and repeating
 * them here silently overrode those gaps - 20px became 15 on the product page
 * before this comment existed. Add a row here only if it is not already flex. */
.rp-panel-surface__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rp-space-md);
}

/* ===================================================================
 * 16. Header search
 *
 * Ported from Menu2026/SearchBar.svelte. The bar wipes in over the nav row with
 * clip-path - no distortion, unlike animating width or scaleX.
 *
 * clip-path clips descendants, so .rp-search__results is a SIBLING of the
 * wiping form, not a child. Moving it inside hides the dropdown entirely.
 * =================================================================== */

.rp-search {
	position: absolute;
	/* The header's own padding, so the bar spans the nav row edge to edge - from
	 * the search glass across to the logo. --rp-page-margin left it 100px short
	 * at each end once .rp-header__inner started centring on the gutter. */
	inset-inline: var(--rp-space-lg);
	top: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	/* Closed, clicks belong to the nav underneath. */
	pointer-events: none;
}

.rp-search__form {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
	padding: 7px 0 6px;
	border-bottom: 1px solid rgb(62 60 53 / 45%);
	background: var(--rp-surface-panel);
	color: var(--rp-text-heading);
	clip-path: inset(0 0 0 100%);
	transition: clip-path 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.rp-search--open {
	pointer-events: auto;
}

.rp-search--open .rp-search__form {
	clip-path: inset(0 0 0 0);
}

.rp-search__input {
	flex: 1;
	min-width: 0;
	padding: 0;
	border: 0;
	outline: none;
	background: none;
	font-family: var(--rp-font-family);
	font-size: 20px;
	color: var(--rp-text-heading);
}

.rp-search__input::placeholder {
	color: rgb(62 60 53 / 60%);
}

/* The bar's glass: 22px and the form's own colour, matching the SvelteKit
 * search bar rather than the 28px green of the header row. */
.rp-search__form .rp-nav-icon {
	width: 22px;
	height: 22px;
	color: inherit;
}

.rp-search__close {
	display: flex;
	align-items: center;
	justify-content: center;
	/* 44px minimum touch target. */
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--rp-text-heading);
}

.rp-search__close svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The house again, so a loading state looks the same wherever it appears. */
.rp-search__spinner {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	background-image: url("../icons/spinner-house.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

.rp-search__results {
	position: absolute;
	top: 100%;
	inset-inline: 0;
	z-index: 20;
	max-height: 420px;
	overflow-y: auto;
	pointer-events: auto;
	background: var(--rp-colour-white);
	border: 1px solid var(--rp-field-border);
	box-shadow: 0 12px 28px rgb(0 0 0 / 18%);
}

.rp-search__result {
	display: flex;
	align-items: center;
	gap: var(--rp-space-sm);
	padding: 8px 14px;
	color: var(--rp-colour-ink);
	text-decoration: none;
}

.rp-search__result:hover,
.rp-search__result:focus-visible {
	background: var(--rp-surface-panel);
}

.rp-search__result img {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	object-fit: contain;
}

.rp-search__result span {
	font-size: var(--rp-type-body-sm-size);
	line-height: 1.35;
}

.rp-search__empty {
	margin: 0;
	padding: var(--rp-space-lg);
	text-align: center;
	font-size: var(--rp-type-body-sm-size);
	color: var(--rp-text-muted);
}

/* ---- The results page ---- */

.rp-search__count {
	margin: 0 0 var(--rp-space-lg);
	font-size: var(--rp-type-body-sm-size);
	color: var(--rp-text-muted);
}

.rp-search__empty-page {
	padding: var(--rp-space-xl) 0;
	font-size: var(--rp-type-body-size);
	color: var(--rp-text-body);
}

@media (prefers-reduced-motion: reduce) {
	.rp-search__form {
		transition: none;
	}
}

/* ===================================================================
 * 17. The View arrow
 *
 * template-parts/view-arrow.php. Ported from the SvelteKit components/ViewArrow,
 * including the reasoning - read that file's header before changing this.
 *
 * It was an <img> in all three callers, and NOTHING INSIDE AN <img> CAN BE
 * ANIMATED - it is a separate document. The shaft and head are two paths in the
 * page now so the hover below can exist at all. Do not put it back in an <img>.
 * =================================================================== */

.rp-arrow {
	/* A bare inline <svg> picks up the baseline gap, and the flex row it sits in
	 * would otherwise squeeze it. */
	display: block;
	flex-shrink: 0;

	/* The extended shaft overhangs the 9px box. SVG defaults to overflow:hidden,
	 * which clips the tip mid-animation. */
	overflow: visible;
}

/* transform-box: view-box puts transform-origin in viewBox units, so these read
 * as the coordinates in the path data rather than as percentages of a box whose
 * size the caller picks. */
.rp-arrow__shaft,
.rp-arrow__head {
	transform-box: view-box;

	/* Out and back at different speeds: 260ms leaving so it arrives softly,
	 * 180ms returning so the card is not still finishing after the pointer has
	 * gone. */
	transition: transform 180ms ease-out;
}

.rp-arrow__shaft {
	/* The tail end - the shaft grows away from it, so the gap to the word "View"
	 * never moves. */
	transform-origin: 1px 5.5px;
}

/**
 * A pointer that can hover. Without the query the transform latches on after a
 * tap and every card in the grid stays stuck in its hover state - `:hover` has
 * no counterpart to "the finger left" on touch.
 *
 * `a:hover` and not a class, because the trigger is whichever link this sits
 * inside: the whole category card, and the whole tile in Be Inspired. **The
 * arrow answers the card's hover, not its own** - a 9px target is too small to
 * be the thing you have to hit, and the card is one link anyway.
 */
@media (hover: hover) {
	a:hover .rp-arrow__shaft {
		/* 9 units of shaft become 12.15. The head moves the same 3.15 so the
		 * two stay joined. */
		transform: scaleX(1.35);
		transition-duration: 260ms;
		transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	}

	a:hover .rp-arrow__head {
		transform: translateX(3.15px);
		transition-duration: 260ms;
		transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	}
}

/* Decoration - it communicates no state the card does not already say in words -
 * so it is dropped rather than shortened. */
@media (prefers-reduced-motion: reduce) {
	.rp-arrow__shaft,
	.rp-arrow__head {
		transition: none;
	}

	a:hover .rp-arrow__shaft,
	a:hover .rp-arrow__head {
		transform: none;
	}
}


/* ===================================================================
 * 18. Delivery calculator
 *
 * template-parts/delivery-calculator.php + assets/js/delivery.js. Figma
 * "7-Product Variation 3" (381:52524), node 419:82250 - the same panel at all
 * three frames, only the column width changes.
 *
 * It is a .rp-panel-surface with this frame's own metrics on top: 20/24 padding
 * where the generic panel is 20 all round, a 1px border, and a uniform 24px gap
 * between all five blocks.
 *
 * EVERY DISPLAY RULE IS SCOPED :not([hidden]). The template renders the panel,
 * the estimate and the map hidden and the script un-hides them - and an author
 * `display` beats the UA rule behind the hidden attribute, so an unscoped
 * `display: flex` here would leave all three permanently visible.
 * =================================================================== */

.rp-delivery:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: var(--rp-delivery-gap);
	padding: var(--rp-delivery-pad-y) var(--rp-delivery-pad-x);
	border: 1px solid var(--rp-delivery-border);

	/* The button row owns no space below it, so the whole gap is here. */
	margin-block-start: var(--rp-delivery-space-above);

	/* Body/Regular, RESTATED - the panel sits inside .rp-summary, which sets
	 * Heading/H4 18 semibold on everything under it. Set once at the panel
	 * boundary rather than on every text rule inside; the blocks that are not
	 * Body/Regular (both headings and the cost) state their own. */
	font-size: var(--rp-type-body-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink);
}

/* HOW FAR THE PAGE SCROLLS WHEN THE PANEL OPENS, and the only number in it.
 * delivery.js calls scrollIntoView({ block: 'nearest' }); this is the breathing
 * room it leaves at whichever edge it lands against. On the delivery page the
 * panel is open from the start and nothing ever scrolls to it, so this is inert
 * there. Same mechanism as .rp-filters. */
.rp-delivery {
	scroll-margin-block: var(--rp-space-lg);
}

/* The toggle is rendered hidden and un-hidden by the script, so a blocked one
 * leaves no dead control. .rp-btn is inline-flex, which outranks [hidden]. */
.rp-delivery-toggle[hidden] {
	display: none;
}

/* The panel's own 24px gap is the only spacing between blocks - the shared
 * title carries a margin and a padding that would add to it. */
.rp-delivery > .rp-panel-surface__title {
	margin: 0;
	padding: 0;
}

/* p.-qualified to outrank `.rp-panel-surface > p:not(.rp-field)`. */
.rp-delivery > p.rp-delivery__note {
	margin: 0;
}

/* Figma draws this field with a 4px radius and a 5px inset, where the form
 * standard is radius 0 and 8/12. Different frame, different component - see
 * "Forms - the standard" in CLAUDE.md before unifying them. */
/* These two are DIRECT children of the panel, where every other form's fields
 * are nested in .rp-form. The panel's 24px gap is the only spacing here, which
 * is why `.rp-panel-surface > p` now excludes .rp-field. */
.rp-delivery__field {
	margin: 0;
	padding: 0;
}

/* BODY/REGULAR 16, both surfaces. Figma states Body/Large 18 for the product
 * frame only, and carrying it meant the same panel rendered at two sizes -
 * 18 on the product page, 16 on /delivery, which needed a second rule to undo.
 * Client, 13 August 2026. Address.svelte is 16 natively, and 16 is what every
 * other input on the site is under "Forms - the standard". */
.rp-delivery__input {
	padding: var(--rp-delivery-field-pad);
	border: 1px solid var(--rp-delivery-border);
	border-radius: var(--rp-delivery-radius);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
}

/* The house is animated inside the SVG, so nothing here rotates an element -
 * same file and same reason as the site-wide pending spinner. */
.rp-delivery__input--pending {
	padding-right: 40px;
	background-image: url(../icons/spinner-house.svg);
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 24px 24px;
}

/* The out-of-range message (Configuration HTML). Neutral like .rp-delivery-info - was green (client, 30 Oct 2026). */
.rp-delivery__notice {
	padding: var(--rp-delivery-info-pad);
	border-radius: var(--rp-delivery-radius);
	background: var(--rp-delivery-info-bg);
	color: var(--rp-text-body);
}

.rp-delivery__notice > * {
	margin-block: 0;
}

.rp-delivery__notice > * + * {
	margin-block-start: var(--rp-delivery-info-line-gap);
}

.rp-delivery__notice a {
	color: var(--rp-link);
	text-decoration: underline;
	word-break: break-word;
}

/* Neutral info notice: icon, bold title, lines. Text is wc2026_delivery_info_notices(). */
.rp-delivery-info:not([hidden]) {
	display: flex;
	gap: var(--rp-delivery-info-gap);
	padding: var(--rp-delivery-info-pad);
	border-radius: var(--rp-delivery-radius);
	background: var(--rp-delivery-info-bg);
	color: var(--rp-text-body);
	margin-block: var(--rp-space-lg);
}

.rp-delivery > .rp-delivery-info {
	margin-block: 0;
}

/* Phones: less padding, or inside a panel the text column gets very narrow. */
@media (max-width: 599px) {
	.rp-delivery-info,
	.rp-delivery__notice {
		--rp-delivery-info-pad: var(--rp-delivery-info-pad-phone);
	}
}

.rp-delivery-info__icon {
	flex: none;
	width: var(--rp-delivery-info-icon);
	height: var(--rp-delivery-info-icon);
}

.rp-delivery-info__body > p {
	margin: 0;
}

/* "If delivered:" above the title (checkout summary). */
.rp-delivery-info__body > .rp-delivery-info__lead {
	margin-block-end: var(--rp-space-2xs);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
}

/* Qualified to outrank the margin reset above. */
.rp-delivery-info__body > .rp-delivery-info__title {
	font-weight: var(--rp-font-weight-semibold);
	margin-block-end: var(--rp-space-2xs);
}

/* Paragraphs apart, as in the client's mock-ups (30 Oct 2026). */
.rp-delivery-info__body > .rp-delivery-info__line + .rp-delivery-info__line {
	margin-block-start: var(--rp-delivery-info-line-gap);
}

.rp-delivery-info__line strong {
	font-weight: var(--rp-font-weight-semibold);
}

/* The Standard notice's postage line, as in the client's collage (4 Nov 2026). */
.rp-delivery-info__line--ruled {
	padding-block-start: var(--rp-delivery-info-line-gap);
	border-top: 0.5px solid var(--rp-delivery-rule);
}

/* Product page Delivery Quote: stands where the calculator panel opens, so it is drawn like one. */
.rp-delivery-info--panel:not([hidden]) {
	border: 1px solid var(--rp-delivery-border);
	background: var(--rp-delivery-info-panel-bg);
	margin-block: var(--rp-delivery-space-above) 0;
	scroll-margin-block: var(--rp-space-lg);
}

.rp-delivery__estimate:not([hidden]) {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-xs);
}

/* Heading/H3, and line-height 1 because Figma states every heading at 100%. */
.rp-delivery__estimate-title {
	margin: 0;
	padding: 0;
	font-size: var(--rp-type-h3-size);
	font-weight: var(--rp-type-h3-weight);
	line-height: 1;
	color: var(--rp-colour-ink);
}

/* Long addresses have no spaces to break on in the middle of a street name. */
.rp-delivery__lines {
	margin: 0;
	word-break: break-word;
}

/* The frame's "Line 3" - the same 0.5px hairline that brackets the description. */
.rp-delivery__rule {
	height: 0;
	margin: 0;
	border: 0;
	border-top: 0.5px solid var(--rp-delivery-rule);
}

/* The amount alone, bold (client, 4 Nov 2026). Plain h3 token, not Figma's caps. */
.rp-delivery__cost {
	margin: 0;
	padding-block-start: var(--rp-space-xs);
	font-size: var(--rp-type-h3-size);
	font-weight: var(--rp-type-h3-weight);
	line-height: 1;
	color: var(--rp-colour-ink);
}

.rp-delivery__timeframe-title {
	padding-block-start: var(--rp-space-xs);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-type-h4-weight);
}

.rp-delivery__error {
	margin: 0;
	padding: 0;
	color: var(--rp-colour-error);
}

/* The admin login's price formulas on the checkout. */
.rp-delivery__working {
	margin: 0;
	padding: var(--rp-space-xs);
	border: 1px dashed var(--rp-delivery-rule);
	font-family: monospace;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-leading);
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Fixed ratio rather than a fixed height: at 768 and 402 the column is narrow
 * enough that a 400px map would be most of the panel. */
.rp-delivery__map:not([hidden]) {
	display: block;
	width: 100%;
	aspect-ratio: var(--rp-delivery-map-ratio);
	border-radius: var(--rp-delivery-radius);
	overflow: hidden;
}

.rp-checkout .rp-delivery__map:not([hidden]) {
	aspect-ratio: var(--rp-checkout-map-ratio);
}


/* ===================================================================
 * 19. Brochure page blocks
 *
 * inc/page-blocks.php + template-parts/blocks/. /delivery and its siblings.
 *
 * NO FIGMA FRAME DRAWS THESE. figma-todo.md section 14 records that the 2026
 * artwork has no delivery page - the calculator moved onto the product page and
 * /delivery was never redrawn. So this composes from the theme's settled parts
 * rather than inventing a look, and every background colour is content-managed.
 * =================================================================== */

/* A full-bleed band. Each carries its own background from ACF, so it cannot sit
 * inside .rp-container - the colour would be inset from the page edge. Same
 * arrangement the home sections use. */
/* Asymmetric: 80 above, 20 below. The two edges are separate tokens because the
 * rules underneath only ever override the TOP - a shared value made the gap
 * between bands unadjustable without moving the last band off the footer too. */
.rp-band {
	padding-block-start: var(--rp-band-pad-y);
	padding-block-end: var(--rp-band-pad-bottom);
}

/* Consecutive bands of the same colour would otherwise read as one block with a
 * double gap down the middle. */
.rp-band + .rp-band {
	padding-block-start: 0;
}

/* UNLESS THE SECOND ONE PAINTS ITS OWN GROUND AND THE FIRST DID NOT. Then the
 * collapse above puts its text hard against the top edge of its colour, which is
 * what /contact-us does: an uncoloured block followed by a pink one.
 *
 * The style attribute is the tell — wc2026_block_background() prints one only
 * when the block carries a colour. On /delivery every band has one, so both
 * bands match the rule above and nothing there moves. */
.rp-band:not([style]) + .rp-band[style] {

	/* The band's own bottom value, NOT the 80 above. This is internal air so the
	 * text is not against the top edge of its colour - it is not a gap between
	 * bands, and the band above already supplies that. At 80 it stacked with
	 * .rp-page-heading's 60 and put 140px between a title and the block under
	 * it. 20/20 is symmetric inside the band. */
	padding-block-start: var(--rp-band-pad-bottom);
}

/* NO BOTTOM PADDING OF ITS OWN. The space under the title is the h1's, not this
 * block's depth, so --rp-h1-space-after is the one dial for it. A block that
 * also carries copy puts its bottom air on the copy. */
.rp-page-heading {
	/* flow-root keeps the h1's bottom margin INSIDE the band. Without it that
	 * margin collapses out through the container and the band's background
	 * stops 40px short of where the block ends. */
	display: flow-root;
	padding-block-end: 0;
}

/* Display/Page Title - Nuosu SIL 40, the second typeface. The webfont loader
 * already fetches it for the home page. */
/* --rp-page-title-colour, same as .rp-page-title - "Page title" (191:2890) states it.
 * Was --rp-colour-ink, which is the PRODUCT PAGE palette and not a page title's. */
/* The gap below is the H1's own and is the same wherever a page title is drawn.
 * A MARGIN, not padding: it collapses with the 40 on the first authored h2
 * under it, so a document's section rhythm stays 40 instead of doubling to 80. */
.rp-page-heading__title {
	margin: 0 0 var(--rp-h1-space-after);
	font-family: var(--rp-page-title-family);
	font-size: var(--rp-page-title-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-page-title-leading);
	color: var(--rp-page-title-colour);
}

/* Colour/Primary Brown, the lead colour in the same frame and what
 * .rp-page-head__lead already uses. The frame also states Body/Large 18; the
 * size is left at 16 because this container holds whole authored pages.
 *
 * The bottom air is here rather than on the band, so the band's depth adds
 * nothing to the h1's gap. A title-only block ends at the h1's own margin. */
.rp-page-heading__content {
	padding-block-end: var(--rp-page-heading-pad-bottom);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-page-heading__content > *:first-child { margin-top: 0; }
.rp-page-heading__content > *:last-child { margin-bottom: 0; }

/* Primary Brown, matching .rp-page-heading__content above it on the same page.
 * Empty on the live /delivery, so this shows only once someone writes one. */
.rp-delivery-block__intro {
	margin-bottom: var(--rp-space-lg);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

/* Same reason as .rp-faqs__text below: this can be the first thing under a
 * title-only page heading, and a leading margin escaping the band would put the
 * h1's gap above the token. */
.rp-delivery-block__intro > *:first-child { margin-top: 0; }

/* The panel is a form, so it takes the form width rather than the full column -
 * "A form is not page-wide" in CLAUDE.md. */
.rp-delivery-block .rp-delivery {
	max-width: 640px;
	margin-block-start: 0;
}

/* ---- FAQs ---- */

.rp-faqs__inner--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rp-space-xl);
	align-items: start;
}

@media (min-width: 992px) {
	.rp-faqs__inner--split {
		grid-template-columns: var(--rp-faq-media-width) minmax(0, 1fr);
	}
}

.rp-faqs__media img {
	display: block;
	width: 100%;
	height: auto;
}

/* THE SAME COLUMN WHETHER OR NOT THERE IS AN IMAGE.
 *
 * The split layout gives this body 1200 - 380 media - 60 gap = 760. With no
 * image it ran the full 1200 - the same content 58% wider because nobody
 * attached a picture, which left the question's chevron 1200px from its label.
 *
 * Capped on the BODY, not on .rp-faqs__inner: that is the .rp-container, so
 * narrowing it would spend the 20px gutters inside the 760 and pull the whole
 * block off the page's left edge. Stated as the subtraction so it tracks the
 * tokens rather than hardcoding 760. */
.rp-faqs__inner:not(.rp-faqs__inner--split) .rp-faqs__body {
	max-width: calc(
		var(--rp-container-max) - var(--rp-faq-media-width) - var(--rp-space-xl)
	);
}

.rp-faqs__text {
	margin-bottom: var(--rp-space-lg);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink-muted);
}

/* THIS RESET IS WHAT KEEPS --rp-h1-space-after THE ONE DIAL. Without it the
 * first <p> keeps the browser's 16px top margin, which - this block having no
 * top padding when it follows another band - collapses straight out of the band
 * and ADDS to the h1's 20. Measured on /about/trade-referrals: 36 where every
 * other page title is 20, because that page's heading block carries a title and
 * no copy, so a FAQ block is the next thing under the h1. */
.rp-faqs__text > *:first-child { margin-top: 0; }

/* Native <details>, the same mechanism as the [read_more] shortcode: state,
 * keyboard handling and screen-reader semantics for free, no script, and it
 * works with JavaScript off. */
.rp-faq {
	border-block-end: 1px solid var(--rp-panel-rule);
}

.rp-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--rp-space-md);
	padding-block: var(--rp-faq-gap);
	cursor: pointer;

	/* Body size, bold. Client, 12 Aug: H3/20 was too big for a question row. The
	 * answer's own headings come down with it - see the ladder below, which is
	 * what stops a heading inside an answer out-ranking the question. */
	font-size: var(--rp-type-body-size);
	font-weight: var(--rp-type-h3-weight);
	line-height: 1.2;
	color: var(--rp-colour-ink);

	/* The default triangle is replaced by the chevron below. */
	list-style: none;
}

.rp-faq__question::-webkit-details-marker {
	display: none;
}

/* Drawn with CSS so it stays out of the accessible tree - <summary> already
 * announces its own expanded state. */
.rp-faq__question::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--rp-colour-primary-green);
	border-bottom: 2px solid var(--rp-colour-primary-green);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 150ms ease-in-out;
}

.rp-faq[open] .rp-faq__question::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

.rp-faq__answer {
	padding-block-end: var(--rp-space-lg);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink-muted);
}

.rp-faq__answer > *:first-child { margin-top: 0; }
.rp-faq__answer > *:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.rp-faq__question::after { transition: none; }
}

/* The delivery page's item-size select. Same field metrics as the address
 * input beside it. */
.rp-delivery__select {
	padding: var(--rp-delivery-field-pad);
	border: 1px solid var(--rp-delivery-border);
	border-radius: var(--rp-delivery-radius);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	font-weight: var(--rp-font-weight-regular);
}

/* The `.rp-delivery--page` override that used to sit here is GONE, not moved:
 * it existed only to put these two fields back to 16 after the panel set 18,
 * and both are 16 now. The template still emits the modifier and it now styles
 * NOTHING - every other difference on that page (open by default, the item-size
 * select, its own out-of-range message, the heading) is a PHP argument. Left as
 * a hook, like `--static`. */

/* Bottom air on a band page. <main> carried NONE, so the last band's own bottom
 * padding was the whole gap down to the newsletter - 20 on the pages that end
 * in a textgallery or FAQ band, and 0 on /contact-us, where the panel stopped
 * flush against the dark band.
 *
 * 60 lands the first two on the 80 that .rp-page-body already uses at the foot
 * of a hero page, so the two page shapes finally agree. Client, 10 September
 * 2026.
 *
 * WATCH THIS IF A BAND EVER TAKES ITS OWN BACKGROUND. Every band on these pages
 * is transparent today, so the padding shows <main>'s ground (or the body's) and
 * reads as air. A coloured last band would instead end 60px short of the
 * newsletter with the page colour beneath it, and the space would belong on the
 * band rather than here. */
.rp-page {
	padding-bottom: var(--rp-space-xl);
}

/* The breadcrumb's padding is the gap; drop the first band's 80 top. */
.rp-page__crumbs + .rp-band {
	padding-block-start: 0;
}


/* ===================================================================
 * 20. Links in authored copy
 *
 * NOT a global `a` rule. Most links on this site are not text links - the whole
 * card, the nav, .rp-btn, the breadcrumb, the View arrow - and colouring or
 * underlining those would wreck them. So this covers only the containers that
 * hold WordPress-authored HTML, where a link falls back to the browser's blue
 * and purple.
 *
 * ADD NEW EDITOR-CONTENT CONTAINERS TO THIS LIST. They are the same ones that
 * carry a `> *:first-child` margin reset, for the same reason: nobody controls
 * what the editor puts in them.
 *
 * The contact page was built without them and its Google Maps, tel and mailto
 * links came out browser-blue. That is the failure mode: nothing breaks, the
 * links just stop matching the palette. `.rp-btn` is excluded: it styles its own links.
 * =================================================================== */

/* -------------------------------------------------------------------
 * Headings in authored copy
 *
 * THE THEME STYLES NO BARE HEADING ELEMENT - every heading it draws is styled
 * by class. Editor HTML carries no classes, so its headings fell through to the
 * browser's defaults: h2 at 24px BOLD Inter against an h1 that is 40px REGULAR
 * Nuosu SIL. Weight did more work than size and the two read as peers, which is
 * how a section heading came to look like a page title.
 *
 * Below that it was worse: UA h3 is ~18.7px and h4 is 16px, so against 16px body
 * copy the carrier list had three levels and no visible hierarchy.
 *
 * Same container list as the link rule below, for the same reason - nobody
 * controls what the editor puts in them. Add new ones to BOTH.
 * ------------------------------------------------------------------- */

.rp-product__description :is(h1, h2, h3, h4, h5, h6),
.term-description :is(h1, h2, h3, h4, h5, h6),
.rp-page-heading__content :is(h1, h2, h3, h4, h5, h6),
.rp-delivery-block__intro :is(h1, h2, h3, h4, h5, h6),
.rp-faqs__text :is(h1, h2, h3, h4, h5, h6),
.rp-faq__answer :is(h1, h2, h3, h4, h5, h6),
.rp-account__note :is(h1, h2, h3, h4, h5, h6),
.rp-panel-surface__intro :is(h1, h2, h3, h4, h5, h6),
.rp-textgallery__prose :is(h1, h2, h3, h4, h5, h6),
.rp-textblock__body :is(h1, h2, h3, h4, h5, h6) {
	margin: var(--rp-space-lg) 0 var(--rp-space-2xs);
	font-family: var(--rp-font-family);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	color: var(--rp-text-heading);
}

/* h1 and h2 both land on H2. An authored h1 is a mistake - the page already has
 * one - so it is levelled rather than given a size of its own, which would put
 * two page titles on the page. */
.rp-product__description :is(h1, h2),
.term-description :is(h1, h2),
.rp-page-heading__content :is(h1, h2),
.rp-delivery-block__intro :is(h1, h2),
.rp-faqs__text :is(h1, h2),
.rp-faq__answer :is(h1, h2),
.rp-account__note :is(h1, h2),
.rp-panel-surface__intro :is(h1, h2),
.rp-textgallery__prose :is(h1, h2),
.rp-textblock__body :is(h1, h2) {
	font-size: var(--rp-type-h2-size);
}

.rp-product__description h3,
.term-description h3,
.rp-page-heading__content h3,
.rp-delivery-block__intro h3,
.rp-faqs__text h3,
.rp-faq__answer h3,
.rp-account__note h3,
.rp-panel-surface__intro h3,
.rp-textgallery__prose h3,
.rp-textblock__body h3 {
	font-size: var(--rp-type-h3-size);
}

/* h4 and below sit at H4. Deeper than four levels in authored copy is not a
 * hierarchy anyone reads, and 18px is already only 2px off the body. */
.rp-product__description :is(h4, h5, h6),
.term-description :is(h4, h5, h6),
.rp-page-heading__content :is(h4, h5, h6),
.rp-delivery-block__intro :is(h4, h5, h6),
.rp-faqs__text :is(h4, h5, h6),
.rp-faq__answer :is(h4, h5, h6),
.rp-account__note :is(h4, h5, h6),
.rp-panel-surface__intro :is(h4, h5, h6),
.rp-textgallery__prose :is(h4, h5, h6),
.rp-textblock__body :is(h4, h5, h6) {
	font-size: var(--rp-type-h4-size);
}

/* -------------------------------------------------------------------
 * Section headings on a TEXT PAGE take the page title's face
 *
 * Privacy Policy and Terms are one page_heading block each, ten or eleven h2s
 * of authored copy under a Nuosu SIL 40 h1. Inter Bold 24 under that reads as a
 * second voice rather than a level below it - weight and typeface both change,
 * and only the size says which is senior. Same face at 28 in the page-title green says it
 * with size and colour instead, and the page reads as one document.
 *
 * The model is the home page's "Visiting the Showroom?" heading
 * (.rp-home-title in home.css; Primary Green since 8 Oct 2026) - Nuosu SIL, regular - which is the
 * nearest thing the theme already draws to a heading over a block of prose.
 *
 * SCOPED TO .rp-page-heading__content on purpose. The other seven containers in
 * the rules above hold a paragraph or two around a product, a category or an
 * FAQ answer, where a heading is a label inside short copy rather than a
 * section of a document, and the sans is right for it. /delivery uses this same
 * block and its content carries no headings at all, so nothing there moves.
 *
 * h3 and below keep the sans deliberately: under a serif h2 that is a clearer
 * sub-level than a third serif size would be.
 * ------------------------------------------------------------------- */
.rp-page-heading__content :is(h1, h2) {
	margin-top: var(--rp-prose-h2-space);
	font-family: var(--rp-page-title-family);
	font-size: var(--rp-prose-h2-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: 1.3;
	color: var(--rp-page-title-colour);
}

/* THE TITLE OWNS THE GAP, so the first section keeps the reset below and the
 * h1's own margin is what shows. This rule used to force the 40 the other
 * sections use, which made a document opening with a heading (Terms, Privacy)
 * sit 40 under its h1 where /delivery, opening with a paragraph, sat at 20.
 * Left as a marker: a margin here would COLLAPSE with the h1's and the larger
 * of the two would win, so --rp-h1-space-after could only ever be raised. */
.rp-page-heading__title + .rp-page-heading__content > :is(h1, h2):first-child {
	margin-top: 0;
}

/* The reset the containers already carry for their first child, extended to
 * headings - a heading opening a block must not push it away from what is
 * above it. */
.rp-product__description > :is(h1, h2, h3, h4, h5, h6):first-child,
.term-description > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-page-heading__content > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-delivery-block__intro > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-faqs__text > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-faq__answer > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-account__note > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-textgallery__prose > :is(h1, h2, h3, h4, h5, h6):first-child,
.rp-textblock__body > :is(h1, h2, h3, h4, h5, h6):first-child {
	margin-block-start: 0;
}

/* -------------------------------------------------------------------
 * ONE LEVEL DEEPER, because pasted copy arrives wrapped
 *
 * `> *:first-child` reaches the wrapper, not the text: /about/our-story carries
 * `<div><p>The Renovators Paradise story…` in its wysiwyg, so the reset zeroed a
 * div that had no margin anyway while the <p> inside kept the browser's 16px -
 * which escaped a band with no top padding and put the page title's gap at 36
 * where the token says 20. Measured 13 August 2026.
 *
 * ONE level only, deliberately. A descendant `:first-child` would also strip the
 * top margin from a heading that opens a LATER wrapper, which is how pasted
 * content loses the space between its sections.
 *
 * This is insurance, not the fix - the stray wrapper is worth deleting in the
 * editor's Text tab, and the second block on that same page has none.
 * ------------------------------------------------------------------- */
.rp-page-heading__content > *:first-child > *:first-child,
.rp-textblock__body > *:first-child > *:first-child,
.rp-faqs__text > *:first-child > *:first-child {
	margin-block-start: 0;
}

/* Same at the bottom: a wrapped last <p> kept 16 on top of the gap to the collage (Our Story, 36). */
.rp-textblock__body > *:last-child > *:last-child {
	margin-block-end: 0;
}


/* -------------------------------------------------------------------
 * A FAQ answer steps DOWN from its own question
 *
 * The rules above size authored headings for top-level page prose, where the
 * nearest thing above them is the page h1. Inside a FAQ they sit under the
 * <summary>, and nothing connected the two scales: the block heading is 24, the
 * question was 18, and the answer's authored h3 came out at 20 - bigger than
 * the question containing it, and bolder.
 *
 * One ladder now: 24 block heading, then the question at 16 bold, then the
 * answer's headings at 16 semibold and 16 medium against 16 regular body.
 * Must stay AFTER the rules above - same specificity, so source order decides.
 *
 * SIZE RUNS OUT AT 16, so weight carries the last three steps. Nothing here
 * goes below the body it introduces: a 14px heading over 16px copy reads as a
 * caption rather than as a heading. */

.rp-faq__answer :is(h1, h2, h3) {
	font-size: var(--rp-type-body-size);
	font-weight: var(--rp-font-weight-semibold);
}

.rp-faq__answer :is(h4, h5, h6) {
	font-size: var(--rp-type-body-size);
	font-weight: var(--rp-font-weight-medium);
}


/* -------------------------------------------------------------------
 * Lists in authored copy sit at the block's own left edge
 *
 * The UA default is a 40px inset, which reads as a quotation indented inside
 * the column rather than as the block's own copy. Terms and Conditions is
 * twenty lists deep and it was the whole page.
 *
 * The marker stays `outside`, hanging in this padding - so the bullet lands at
 * the edge and WRAPPED LINES ALIGN WITH THE TEXT, which `list-style-position:
 * inside` would not do. Most items here run to two or three lines.
 *
 * SAME CONTAINER LIST as the heading and link rules, for the same reason:
 * nobody controls what the editor puts in them. Add new ones to all three.
 * ------------------------------------------------------------------- */
.rp-product__description :is(ul, ol),
.term-description :is(ul, ol),
.rp-page-heading__content :is(ul, ol),
.rp-delivery-block__intro :is(ul, ol),
.rp-faqs__text :is(ul, ol),
.rp-faq__answer :is(ul, ol),
.rp-account__note :is(ul, ol),
.rp-panel-surface__intro :is(ul, ol),
.rp-textgallery__prose :is(ul, ol),
.rp-inspiration__prose :is(ul, ol),
.rp-textblock__body :is(ul, ol) {
	margin-inline: 0;
	padding-inline-start: var(--rp-prose-list-indent);
}


.rp-product__description a:not(.rp-btn),
.rp-product__features a:not(.rp-btn),
.term-description a:not(.rp-btn),
.rp-page-heading__content a:not(.rp-btn),
.rp-delivery-block__intro a:not(.rp-btn),
.rp-faqs__text a:not(.rp-btn),
.rp-faq__answer a:not(.rp-btn),
.rp-account__note a:not(.rp-btn),
.rp-panel-surface__intro a:not(.rp-btn),
.rp-contact__details a:not(.rp-btn),
.rp-textblock__body a:not(.rp-btn),
.rp-textgallery__prose a:not(.rp-btn),
.rp-inspiration__prose a:not(.rp-btn),
.rp-thanks__copy a:not(.rp-btn) {
	color: var(--rp-link);

	/* Underlined, so the link is distinguishable from body text by more than
	 * colour - which is what WCAG 1.4.1 asks for and what lets the visited
	 * state below be dropped safely. */
	text-decoration: underline;

	/* Emails and long URLs are most of the authored links on this site and they
	 * have nowhere to break. */
	word-break: break-word;
}

.rp-product__description a:not(.rp-btn):hover,
.rp-product__features a:not(.rp-btn):hover,
.term-description a:not(.rp-btn):hover,
.rp-page-heading__content a:not(.rp-btn):hover,
.rp-delivery-block__intro a:not(.rp-btn):hover,
.rp-faqs__text a:not(.rp-btn):hover,
.rp-faq__answer a:not(.rp-btn):hover,
.rp-account__note a:not(.rp-btn):hover,
.rp-panel-surface__intro a:not(.rp-btn):hover,
.rp-contact__details a:not(.rp-btn):hover,
.rp-textblock__body a:not(.rp-btn):hover,
.rp-inspiration__prose a:not(.rp-btn):hover,
.rp-thanks__copy a:not(.rp-btn):hover {
	color: var(--rp-link-hover);
}

/**
 * VISITED IS THE SAME COLOUR, deliberately.
 *
 * The palette has no visited colour, and browsers restrict :visited so heavily
 * - a handful of properties, and getComputedStyle deliberately lies about it -
 * that a second colour buys little. On a catalogue where most authored links
 * are products and carriers, a purple trail is noise.
 *
 * The cost is orientation on link-dense pages, and the underline above is what
 * pays for it: these links never rely on colour alone.
 *
 * An author `a` rule already beats the UA's a:visited on cascade origin, so
 * this is a statement of intent rather than a fix - keep it, or the next person
 * wonders whether purple was overlooked.
 */
.rp-product__description a:not(.rp-btn):visited,
.rp-product__features a:not(.rp-btn):visited,
.term-description a:not(.rp-btn):visited,
.rp-page-heading__content a:not(.rp-btn):visited,
.rp-delivery-block__intro a:not(.rp-btn):visited,
.rp-faqs__text a:not(.rp-btn):visited,
.rp-faq__answer a:not(.rp-btn):visited,
.rp-account__note a:not(.rp-btn):visited,
.rp-panel-surface__intro a:not(.rp-btn):visited,
.rp-contact__details a:not(.rp-btn):visited,
.rp-textblock__body a:not(.rp-btn):visited,
.rp-inspiration__prose a:not(.rp-btn):visited,
.rp-thanks__copy a:not(.rp-btn):visited {
	color: var(--rp-link);
}


/* ===================================================================
 * 21. The basket panel
 *
 * inc/basket.php + template-parts/basket-*.php. Shares .rp-panel and
 * .rp-count-badge with the enquiry list - two slide-outs off the same edge
 * should not be two designs.
 *
 * Columns follow the SvelteKit basket: image, SKU: name, quantity, price,
 * sub-total, remove. It is a <table> there; a slide-out is too narrow for six
 * columns, so each line labels its own numbers.
 * =================================================================== */

.rp-basket-lines {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-basket-line {
	display: grid;
	grid-template-columns: var(--rp-basket-image) minmax(0, 1fr);
	gap: var(--rp-space-md);
	align-items: start;
	padding: var(--rp-space-lg) 0;
	border-bottom: 1px solid var(--rp-panel-rule);
}

/* Uncropped `medium`: a tall door keeps its shape, capped so it can't stretch the row. */
.rp-basket-line__image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: var(--rp-basket-image-max-height);
	object-fit: contain;
	object-position: left top;
}

.rp-basket-line__detail {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-xs);
	min-width: 0;
}

/* "3 available, 2 on backorder" under a basket or checkout line. */
.rp-basket-line__backorder,
.rp-order-summary__backorder {
	margin: var(--rp-space-2xs) 0 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
}

.rp-order-summary__backorder {
	display: block;
}

/* Name and bin: the bin sits top-right so it never wraps under the prices. */
.rp-basket-line__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--rp-space-xs);
}

.rp-basket-line__name {
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-primary-brown);
	text-decoration: none;
	overflow-wrap: anywhere;
}

.rp-basket-line__name:hover {
	text-decoration: underline;
}

/* Ties this line to the delivery notice below the list: same icon, same title. */
.rp-basket-line__delivery-tag {
	display: flex;
	align-items: center;
	gap: var(--rp-space-2xs);
	margin: 0;
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-semibold);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-primary-brown);
}

.rp-basket-line__delivery-icon {
	flex: none;
	width: var(--rp-basket-tag-icon);
	height: var(--rp-basket-tag-icon);
}

/* The glass fills only the middle of its 24-wide box: pull out the empty sides. */
.rp-basket-line__delivery-icon--glass {
	margin-inline: calc(var(--rp-basket-tag-icon) * -0.3);
}

/* Quantity 2+: unit price row, then quantity and total. Quantity 1 drops the unit row.
 * Stays flex: the spinner pending.js injects is a sibling of the pressed button. */
.rp-basket-line__form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rp-space-xs);
	margin: 0;
}

/* The quantity select. Its options run to the maximum, which is how the
 * customer sees how many are available. */
.rp-qty {
	display: flex;
	align-items: center;
	gap: var(--rp-space-2xs);
	margin: 0;
}

/* The select's label, and plain "Qty 1" for a one-off with nothing to choose. */
.rp-qty__label,
.rp-qty--fixed {
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink-muted);
}

/* appearance: none, or the browser's native select ignores this height. */
.rp-qty__select {
	box-sizing: border-box;
	appearance: none;
	min-width: var(--rp-qty-step);
	height: var(--rp-qty-select-height);
	padding: 0 calc(var(--rp-space-2xs) * 2 + 10px) 0 var(--rp-space-2xs);
	border: 1px solid var(--rp-field-border);
	border-radius: 0;
	background: var(--rp-surface-input) url("../icons/nav-chevron-down.svg") no-repeat right var(--rp-space-2xs) center / 10px;
	font-family: var(--rp-font-family);
	/* 14 by request, 7 Nov 2026: an exception to 16px inputs. iOS Safari may zoom on focus. */
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink);
}

.rp-qty__select:focus {
	outline: 2px solid var(--rp-colour-dark-green);
	outline-offset: -2px;
}

/* The no-script way to apply the select. basket.js submits on change and marks
 * the panel enhanced, which hides this - so a blocked script leaves a select
 * that can still be applied rather than one that does nothing. */
.rp-qty__update {
	padding: var(--rp-space-2xs) var(--rp-space-xs);
	border: 0;
	background: var(--rp-colour-dark-green);
	color: var(--rp-colour-light-1);
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	cursor: pointer;
}

.rp-panel--enhanced .rp-qty__update {
	display: none;
}

/* Negative margin cancels the padding: a bigger tap target, same layout. */
.rp-basket-line__remove {
	display: flex;
	flex-shrink: 0;
	margin: calc(var(--rp-basket-remove-pad) * -1);
	padding: var(--rp-basket-remove-pad);
	border: 0;
	background: none;
	cursor: pointer;
	color: var(--rp-colour-primary-green);
}

.rp-basket-line__remove svg {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rp-basket-line__remove:hover {
	color: var(--rp-colour-error);
}

/* Its own row, above the quantity. The price paid is ink; the struck was-price and "each" are muted. */
.rp-basket-line__price {
	flex: 0 0 100%;
	order: -1;
	min-width: 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink);
	white-space: nowrap;
}

.rp-basket-line__price del,
.rp-basket-line__each {
	color: var(--rp-colour-ink-muted);
}

/* Was-price and total stay together on the right, level with the quantity. */
.rp-basket-line__totals {
	display: flex;
	align-items: baseline;
	gap: var(--rp-space-xs);
	margin-inline-start: auto;
	white-space: nowrap;
}

.rp-basket-line__totals del {
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink-muted);
}

/* The line's own total carries the weight. */
.rp-basket-line__subtotal {
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink);
	white-space: nowrap;
}

.rp-basket-total {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--rp-space-2xs) var(--rp-space-md);
	padding: var(--rp-space-lg) 0;
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-type-h4-weight);
	line-height: 1.2;
	color: var(--rp-colour-ink);
}

.rp-basket-total__note {
	flex-basis: 100%;
	margin: 0;
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink-muted);
}

.rp-basket-actions {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-sm);
	margin: 0;
}

.rp-basket-actions .rp-btn {
	width: 100%;
}


/* ===================================================================
 * 22. The seller form (Recycle)
 *
 * inc/recycle.php + template-parts/recycle-form.php. The form primitives are
 * the shared ones; only the uploader and the conditional address are new.
 * =================================================================== */

.rp-recycle {
	max-width: 640px;
}

.rp-recycle > p {
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-colour-ink-muted);
}

/* The address block is revealed by the select beside it, so nothing has to be
 * toggled by script. @supports leaves it VISIBLE where :has() is missing -
 * fields you did not need beat fields you cannot reach. */
.rp-recycle__address {
	display: none;
	flex-direction: column;
	gap: var(--rp-space-lg);
}

.rp-recycle__form:has( #rp-bring option[value="no"]:checked ) .rp-recycle__address {
	display: flex;
}

@supports not selector(:has(*)) {
	.rp-recycle__address {
		display: flex;
	}
}

/* The time-frame label: "Delivery" ONLY once they answer Yes, "Collection"
 * otherwise - unanswered included. Same mechanism as the address; without
 * :has() both words show, separated by the slash, which is still a true label. */
.rp-recycle__when-delivery {
	display: none;
}

.rp-recycle__form:has( #rp-bring option[value="yes"]:checked ) .rp-recycle__when-delivery {
	display: inline;
}

.rp-recycle__form:has( #rp-bring option[value="yes"]:checked ) .rp-recycle__when-collection {
	display: none;
}

@supports not selector(:has(*)) {
	.rp-recycle__when-delivery {
		display: inline;
	}

	.rp-recycle__when-collection::before {
		content: " / ";
	}
}

/* ---- The photo uploader ---- */

.rp-uploader {
	gap: var(--rp-space-sm);
}

/* Its heading is a section break like "Your details", so it takes the same
 * extra air the `.rp-field + .rp-fieldset__legend` rule gives one - the legend
 * is inside this block, so that rule cannot see it. */
.rp-field + .rp-uploader {
	margin-top: var(--rp-space-xs);
}

.rp-uploader__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.rp-uploader__item {
	position: relative;
	width: var(--rp-uploader-thumb);
	height: var(--rp-uploader-thumb);
}

.rp-uploader__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* A PDF in the photo grid: same tile size, a type badge over the file name.
 * Links to the staged file so the visitor can check they picked the right one. */
.rp-uploader__doc {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--rp-space-3xs);
	width: 100%;
	height: 100%;
	padding: var(--rp-space-xs);
	box-sizing: border-box;
	border: 1px solid var(--rp-colour-dark-green);
	background: var(--rp-colour-light-1);
	color: var(--rp-colour-dark-green);
	text-decoration: none;
	overflow: hidden;
}

.rp-uploader__doc-type {
	padding: 2px 6px;
	background: var(--rp-colour-dark-green);
	color: var(--rp-colour-light-1);
	font-size: var(--rp-type-label-sm-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	letter-spacing: 0.04em;
}

.rp-uploader__doc-name {
	max-width: 100%;
	font-size: 11px;
	line-height: 1.2;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rp-uploader__remove {
	position: absolute;
	inset-block-start: 0;
	inset-inline-end: 0;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	background: var(--rp-colour-dark-green);
	color: var(--rp-colour-light-1);
	font-size: var(--rp-type-body-size);
	line-height: 1;
	cursor: pointer;
}

.rp-uploader__remove:hover {
	background: var(--rp-colour-error);
}

/**
 * The Add photos control is a <label> wrapping the file input, so the theme's
 * button type IS the control - no script proxying a click, and it works from
 * the keyboard because the input is still focusable.
 *
 * HIDDEN UNTIL THE SCRIPT MARKS THE UPLOADER READY. Photos are required, and a
 * file input that cannot upload is a dead control - the same rule the gallery
 * arrows follow.
 */
.rp-uploader__add {
	display: none;
	align-self: flex-start;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	text-transform: none; /* the label is typed in caps so "PDFs" keeps its s */
}

.rp-uploader--ready .rp-uploader__add {
	display: inline-flex;
}

/* Inside the label, off-screen but focusable - opacity rather than display so
 * the focus ring still lands on the button. */
.rp-uploader__add input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}

.rp-uploader--busy .rp-uploader__add {
	opacity: 0.6;
	pointer-events: none;
}

.rp-uploader__status,
.rp-uploader__hint {
	margin: 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-colour-ink-muted);
}


/* ===================================================================
 * The contact page
 *
 * Details and a map beside the form; the ACF blocks below it are bands and
 * style themselves. Ported from routes/contact-us/, which is also where the
 * column widths come from — the 2026 artwork has no contact page, the same gap
 * figma-todo.md records for /delivery.
 * =================================================================== */

/* NO GROUND OF ITS OWN as of 21 September 2026. It was Light 1 (the SvelteKit
 * route's #f6f1ed), which is the panel colour - so the form panel had to go
 * white to be seen at all. The page is Light 3 now, the panel Light 1 and the
 * inputs white, the same three-tone stack as /recycle. A coloured first block
 * still paints main through its inline style. */

/* ---- Thank-you pages (inc/thank-you.php) ----
 * All three forms land here. On the page ground, no panel: the SAME heading as
 * the form page it follows - .rp-panel-surface__title's Heading/H3, Inter Bold
 * 20 in ink - then the copy. Client, 20 September 2026, choosing it over the
 * page-title serif (read as the wrong h1 in a white box on .rp-contact's Light
 * 1 main) and over an H2 in Dark Green. */
.rp-page__crumbs + .rp-thanks__body {
	padding-block-start: 0;
}

.rp-thanks__title {
	margin: 0 0 var(--rp-h1-space-after);
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-h3-size);
	font-weight: var(--rp-type-h3-weight);
	line-height: 1;
	color: var(--rp-colour-ink);
}

.rp-thanks__copy {
	max-width: 640px; /* the single-panel form cap, so a long sentence wraps like the form did */
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-thanks__copy > *:first-child {
	margin-top: 0;
}

.rp-thanks__copy > *:last-child {
	margin-bottom: 0;
}

.rp-page__crumbs + .rp-contact__top {
	padding-block-start: 0;
}

.rp-contact__main {
	display: flex;
	gap: var(--rp-product-gap);

	/* No bottom padding. The gap down to the first band is the band's, below —
	 * two paddings adding up is how it reached ~140px. */
	padding-block-end: 0;
}

/* 20px between the details/form section and the Delivery box, at every width.
 * The band's own 80px rhythm is right between bands and far too much here,
 * where the box reads as part of the section above it rather than as a new
 * one. Later bands keep the 80. */
.rp-contact__top + .rp-band {
	padding-block-start: var(--rp-space-lg);
}

.rp-contact__details {
	flex: 0 1 var(--rp-contact-details-width);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-contact__details p {
	margin: 0 0 var(--rp-space-2xs);
}

.rp-contact__section:first-child .rp-contact__heading {
	margin-block-start: 0;
}

/* One line spacing throughout - the hours are one paragraph with line breaks, so every other
 * line drops its paragraph gap to match. The space between sections is the headings' own. */
.rp-contact__section p {
	margin: 0;
}

/* Side by side the details start level with the form panel's top edge, not its first line (client, 6 Oct 2026). */

/* The details column's three section headings. */
.rp-contact__heading {
	margin: var(--rp-space-lg) 0 var(--rp-space-2xs);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1;
	color: var(--rp-text-heading);
}

/* Shrinks like the details column, or the two stop matching below 1240 where
 * the container is narrower than their 570 + 60 + 570.
 *
 * The panel inside is the plain .rp-panel-surface - Light 1 on the Light 3
 * page. It was white until 21 September 2026, the one exception in the theme,
 * because the page ground was Light 1; see .rp-contact above. */
.rp-contact__form {
	flex: 0 1 var(--rp-contact-form-width);
	max-width: 100%;
}

/* The guidelines box lines up with the two columns above it — details + gutter
 * + form — rather than running to the full 1200 content width, which left it
 * overhanging the form on its right. Computed from the same three tokens the
 * columns use, so the two cannot drift apart.
 *
 * The frontend caps it at a flat 1000, which lines up with nothing. */
.rp-contact .rp-guidelines {
	max-width: calc(
		var(--rp-contact-details-width) + var(--rp-product-gap) + var(--rp-contact-form-width)
	);
}

@media (max-width: 1040px) {

	.rp-contact__main {
		flex-direction: column;

		/* Stacked, the 60 column gap is too much between the details and the form panel;
		 * 20 is the gap this section already keeps to the Delivery box. */
		gap: var(--rp-space-lg);
	}

	.rp-contact__details,
	.rp-contact__form {
		flex-basis: auto;
		width: 100%;
	}

	/* Stacked: the details' three sections first (they are the right-hand column on desktop),
	 * then the form - client, 5 Oct 2026. */
	.rp-contact__details {
		order: -1;
	}
}


/* ===================================================================
 * Block: text_and_gallery
 *
 * Text one side, pictures or a video the other. Ported from
 * TextBlockDetail/TextBlockText/TextBlockImages.
 * =================================================================== */

/* 80 under the block rather than the band's shared 20 - the Showroom frames put
 * 80 between their sections. Only the BOTTOM: the top is collapsed to 0 by
 * .rp-band + .rp-band whenever another band precedes it. */
.rp-textblock {
	padding-block-end: var(--rp-textblock-pad-bottom);
}

.rp-textblock__inner {
	display: flex;
	gap: var(--rp-textblock-gap);
	align-items: center;
}

/* THE TEXT IS FIRST IN THE DOM - the order it should be read in - so a plain row
 * already puts the media on the right and only "Left" reverses.
 *
 * This was --media-right until 12 August 2026 and did the opposite of its name:
 * the rule was ported from TextBlockDetail.svelte, which renders IMAGES first,
 * so reversing there moves them right and reversing here moved them left. */
.rp-textblock--media-left .rp-textblock__inner {
	flex-direction: row-reverse;
}

.rp-textblock--top .rp-textblock__inner {
	align-items: flex-start;
}

.rp-textblock__text,
.rp-textblock__media {
	flex: 1 1 0;
	min-width: 0;
}

.rp-textblock__inner--text-only .rp-textblock__text {
	flex-basis: 100%;
}

/* Figma "Title" (534:8959) - Display/Page Title, whatever the block holds (photos,
 * video or text only - client, 29 Oct 2026). h1 or h2 by the block's flag. */
.rp-textblock__heading {
	margin: 0 0 var(--rp-textblock-title-gap);
	font-family: var(--rp-page-title-family);
	font-size: var(--rp-page-title-size);
	font-weight: var(--rp-font-weight-regular);
	line-height: var(--rp-page-title-leading);
	color: var(--rp-page-title-colour);
}

.rp-textblock__sub {
	margin: 0 0 var(--rp-space-xs);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.3;
	color: var(--rp-text-heading);
}

.rp-textblock__body {
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-textblock__body > *:first-child { margin-top: 0; }
.rp-textblock__body > *:last-child { margin-bottom: 0; }


.rp-textblock__action {
	margin: var(--rp-space-lg) 0 0;
}

@media (max-width: 960px) {

	/* Both selectors are needed: the reversal above is two classes, so the plain
	 * one cannot beat it on its own. Column, never column-reverse - the 768 and
	 * 402 frames put the text above the picture in BOTH rows, including the one
	 * that is media-left on desktop. */
	.rp-textblock__inner,
	.rp-textblock--media-left .rp-textblock__inner {
		flex-direction: column;
		align-items: stretch;
	}
}


/* -------------------------------------------------------------------
 * text_and_gallery carrying photographs — the Showroom split
 *
 * Figma "header-variation-bright-asymmetric" (534:8955). The gallery is the
 * Be Inspired collage, so only the box's shape is set here.
 * ------------------------------------------------------------------- */

/* TOP, where the frame centres it. Its text container is 400 tall in a 550 row,
 * so centring only reads as deliberate at that one content length - and the copy
 * is an editor-filled wysiwyg. Rows alternate left/right down the page, and a
 * shared top line is what makes that read as a rhythm. Deliberate divergence;
 * see figma-todo.md. */
.rp-textblock--gallery .rp-textblock__inner {
	gap: var(--rp-space-lg) var(--rp-textblock-gallery-gap);
	align-items: flex-start;
}

.rp-textblock--gallery .rp-collage {
	--rp-collage-ratio: var(--rp-textblock-gallery-ratio);
}

/* One column at 768 and 402, where the frames put the text ABOVE the picture in
 * both rows - including the row that is media-left on desktop. The shared rule
 * above collapses to `column` rather than `column-reverse`, so that follows.
 *
 * The picture is 550 tall at every frame, so below the split it is a height and
 * not a ratio - the column is the full container by then and a ratio would grow
 * with it. */
@media (max-width: 960px) {

	.rp-textblock--gallery .rp-collage__slide {
		height: var(--rp-textblock-gallery-height);
		aspect-ratio: auto;
	}
}


/* ===================================================================
 * Block: text_and_gallery_below
 *
 * Figma "inspired-header" (815:9161) - the stacked counterpart to the split
 * above. NOTHING SIZES THE GALLERY HERE: the frame's collage-grid is 1200x651
 * with 100px arrows, which is what .rp-collage already is by default.
 * =================================================================== */

/* THE STACK GAP IS THE TEXTBLOCK TITLE GAP, not the frame's 40. This heading is the same
 * 40px Nuosu SIL as .rp-textblock__heading, which sits 20 above its copy - on
 * /about/visiting-the-showroom all three are on one page and "More Information"
 * was the odd one out at double the gap. Client, 12 Aug.
 *
 * The 40 survives where the frame actually needs it: .rp-textgallery__prose
 * makes up the difference down to the collage. */
.rp-textgallery__inner {
	display: flex;
	flex-direction: column;
	gap: var(--rp-textblock-title-gap);
}

/* Display/Page Title, the same face .rp-textblock__heading takes. h1 or h2
 * depending on the block's flag, so neither is named. */
.rp-textgallery__heading {
	margin: 0;
	font-family: var(--rp-page-title-family);
	font-size: var(--rp-page-title-size);
	font-weight: var(--rp-font-weight-regular);

	/* The shared page-title leading, which is what .rp-textblock__heading takes
	 * too - same face, same size, so they cannot sit at different leadings on
	 * one page. The frame states `normal` here and 48/40 on the split block. */
	line-height: var(--rp-page-title-leading);
	color: var(--rp-page-title-colour);
}

/* Body/Regular 16/22 - the SAME copy .rp-textblock__body sets, not the frame's
 * Inter Light 14/20 (815:9165). Three sections run down this page and the third
 * reading smaller and lighter than the two above it looks like a mistake rather
 * than a step. Deliberate divergence, client 12 Aug; see figma-todo.md. */
.rp-textgallery__prose {
	/* Restores the frame's 40 between the copy and the collage, on top of the
	 * stack's own gap above. Stated as the subtraction so it follows both. */
	margin-block-end: calc(var(--rp-textgallery-gap) - var(--rp-textblock-title-gap));
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

/* Paragraph rhythm is left to the browser, as .rp-textblock__body leaves it -
 * the two blocks must not space their copy differently. */
.rp-textgallery__prose > *:first-child { margin-top: 0; }
.rp-textgallery__prose > *:last-child { margin-bottom: 0; }

/* The sub-heading inside the prose - Inter Bold 24 in Dark Green, the frame's
 * "Info Title" (815:9164). The shared authored-copy rules above already give it
 * 24 and bold; only the colour and the 12px below it are this block's. */
.rp-textgallery__prose :is(h1, h2) {
	margin-bottom: var(--rp-textgallery-text-gap);
	color: var(--rp-colour-dark-green);
}


/* ===================================================================
 * Block video - YouTube's own player, loaded with the page.
 * =================================================================== */

.rp-video {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--rp-video-radius);
	background: var(--rp-colour-gallery-panel);
}

.rp-video > iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.rp-video__caption {
	margin: var(--rp-space-xs) 0 0;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
}


/* ===================================================================
 * Block: text_and_gallery, the "guidelines" look
 *
 * A coloured box with the truck. Ported from delivery-guidelines.svelte.
 * =================================================================== */

/* It is a box inside the band, not the band itself, so it takes the page's
 * gutters rather than running to the viewport edge. Width is set by whatever
 * page it lands on — see .rp-contact .rp-guidelines below. */
.rp-guidelines {
	display: flex;
	gap: var(--rp-guidelines-gap);
	align-items: center;
	padding: var(--rp-space-lg);
	background: var(--rp-colour-guidelines);
	/* Body copy, not chrome — this box holds a full sentence of prose. */
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-guidelines__heading {
	flex: 0 0 auto;
	margin: 0;
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	color: var(--rp-text-heading);
}

.rp-guidelines__icon {
	flex: 0 0 auto;
	width: var(--rp-guidelines-icon);
	height: var(--rp-guidelines-icon);
}

.rp-guidelines__text {
	min-width: 0;
}

.rp-guidelines__sub {
	margin: 0 0 var(--rp-space-xs);
	font-weight: var(--rp-font-weight-bold);
}

.rp-guidelines__body {
	margin: 0;
}

@media (max-width: 1050px) {

	.rp-guidelines {
		flex-direction: column;
		align-items: flex-start;
	}
}


/* ===================================================================
 * The checkout
 *
 * A stack of sections beside the order summary. Every section is open until
 * checkout.js adds .rp-checkout--enhanced — so with the script blocked this is
 * one long form, not a pile of dead panels.
 * =================================================================== */

.rp-checkout {
	display: flex;
	gap: var(--rp-product-gap);
	align-items: flex-start;
	padding-block-end: var(--rp-space-xl);
}

.rp-checkout__steps {
	flex: 1 1 auto;
	min-width: 0;
}

.rp-step {
	padding: var(--rp-space-lg);
	background: var(--rp-surface-panel);
}

/* The order-received page. Same panel as every other confirmation on the site. */
.rp-order-received {
	max-width: 640px;
}

.rp-order-received__facts {
	margin: var(--rp-space-lg) 0;
	padding: 0;
	list-style: none;
	border-block-start: 1px solid var(--rp-field-border);
}

.rp-order-received__facts li {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--rp-space-md);
	padding-block: var(--rp-space-xs);
	border-block-end: 1px solid var(--rp-field-border);
	font-size: var(--rp-type-body-size);
}

.rp-order-received__facts span {
	color: var(--rp-text-muted);
}

.rp-order-received__unpaid {
	padding: var(--rp-space-xs) var(--rp-space-sm);
	border-inline-start: 3px solid var(--rp-colour-error);
	/* A sentence the customer needs to read, not a caption. */
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
}

.rp-payment__amount {
	margin: 0 0 var(--rp-space-xs);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1;
	color: var(--rp-text-heading);
}

/* The card fields are Westpac's iframe, a separate document — nothing here
 * reaches inside it, which is why payway.js passes colours in by declaration. */
.rp-payment__frame {
	margin-block: var(--rp-space-md);
	min-height: 200px;
}

.rp-payment__error {
	margin: 0 0 var(--rp-space-md);
	padding: var(--rp-space-xs) var(--rp-space-sm);
	border-inline-start: 3px solid var(--rp-colour-error);
	font-size: var(--rp-type-body-sm-size);
	color: var(--rp-text-body);
}

/* A failed submit. It takes focus on load, because the sections above it may
 * all look complete and the reason would otherwise be off-screen. */
.rp-checkout__errors {
	margin-block-end: var(--rp-space-md);
	padding: var(--rp-space-md) var(--rp-space-lg);
	border-inline-start: 3px solid var(--rp-colour-error);
	background: var(--rp-surface-panel);
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
	color: var(--rp-text-body);
}

.rp-checkout__errors p {
	margin: 0 0 var(--rp-space-2xs);
	font-weight: var(--rp-font-weight-bold);
}

.rp-checkout__errors ul {
	margin: 0;
	padding-inline-start: var(--rp-space-lg);
}

.rp-step + .rp-step {
	margin-block-start: var(--rp-space-md);
}

.rp-step__heading {
	display: flex;
	align-items: center;
	gap: var(--rp-space-sm);
	margin: 0;
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1;
	color: var(--rp-text-heading);
}

.rp-step__number {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: var(--rp-step-number-size);
	height: var(--rp-step-number-size);
	border-radius: 50%;
	background: var(--rp-colour-dark-green);
	color: var(--rp-colour-white);
	font-size: var(--rp-type-body-sm-size);
}

.rp-step__label {
	flex: 1 1 auto;
}

/* The heading takes focus when a section opens, and a focus ring on a heading
 * reads as an error unless it is the standard one. */
.rp-step__label:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 4px;
}

.rp-step__edit {
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: none;
	color: var(--rp-link);
	font-family: inherit;
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-medium);
	text-decoration: underline;
	cursor: pointer;
}

.rp-step__summary {
	margin: var(--rp-space-xs) 0 0;
	padding-inline-start: calc(var(--rp-step-number-size) + var(--rp-space-sm));
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
	overflow-wrap: anywhere;
}

.rp-step__body {
	margin-block-start: var(--rp-space-lg);
}

/* Calculate Delivery's "can't deliver" line, above its Continue. */
.rp-delivery-step__error {
	margin-block: var(--rp-space-sm) 0;
}

.rp-delivery-step__error[hidden] {
	display: none;
}

.rp-step__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--rp-space-md);
	margin: var(--rp-space-lg) 0 0;
}

/* Only the ship/pickup step puts its button INSIDE .rp-form, where the column's
 * own 20px gap already separates it — so the 20px margin above lands on top of
 * that and reads as 40. Every other step has the button as a sibling after the
 * form, where the margin is the whole gap and is right as it stands. */
.rp-form > .rp-step__actions {
	margin-block-start: var(--rp-space-xs);
}

/* The ship/pickup choice is a <fieldset>, which carries a UA border, padding and
 * `min-inline-size: min-content` — the last of which stops it shrinking inside a
 * flex column. The panel already supplies the frame, so all three go, and the
 * 20px puts the first option clear of the heading above it. */
.rp-choice {
	margin: 0;
	padding: var(--rp-space-xs) 0 0;
	border: 0;
	min-inline-size: 0;
}

/* The fieldset's flex gap spaces the quote notice; its own margins would double it to 40. */
.rp-choice > .rp-delivery-info,
.rp-choice__note {
	margin-block: 0;
}

/* Collapsing only happens once the script is running. Scoped to --enhanced so
 * the no-script page keeps every section open and usable. */
.rp-checkout--enhanced .rp-step:not(.rp-step--open) .rp-step__body {
	display: none;
}

.rp-checkout--enhanced .rp-step--locked {
	opacity: 0.55;
}

.rp-checkout--enhanced .rp-step--locked .rp-step__number {
	background: var(--rp-colour-muted);
}

.rp-checkout--enhanced .rp-step--done .rp-step__number {
	background: var(--rp-colour-primary-green);
}

/* A form column is capped at 640 by the form standard; the steps column is that
 * form, so it takes the same cap rather than filling the page. */
.rp-checkout__steps .rp-form {
	max-width: 640px;
}

/* "Use delivery address" on the shipping step: the tick and the address it stands for. */
.rp-shipping [data-rp-use-delivery-row] {
	padding-block-end: var(--rp-space-lg);
}

/* The tick row stacks: the checkbox line, then the address under its label text. */
.rp-shipping [data-rp-use-delivery-row] {
	flex-direction: column;
	align-items: flex-start;
}

.rp-shipping__address {
	margin: var(--rp-space-3xs) 0 0;
	padding-inline-start: calc( var(--rp-check-size) + var(--rp-space-xs) );
	font-family: var(--rp-font-family);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	color: var(--rp-text-muted);
}

/* A display rule beats [hidden], so restate it for the tick row. */
.rp-shipping [data-rp-use-delivery-row][hidden] {
	display: none;
}

/* Address forms (checkout.js sets data-mode): "delivery" = filled from the delivery
 * address, "search" = the Google search, "fields" = typed. No mode (no script) = fields. */
[data-rp-address][data-mode="delivery"] [data-rp-address-place],
[data-rp-address][data-mode="search"] [data-rp-address-place],
[data-rp-address][data-mode="chosen"] [data-rp-address-place] {
	display: none;
}

.rp-address-search {
	display: none;
}

[data-rp-address][data-mode="search"] .rp-address-search,
[data-rp-address][data-mode="chosen"] .rp-address-search {
	display: flex;
	flex-direction: column;
	gap: var(--rp-space-2xs);
}

.rp-address-search__note {
	margin: 0;
	color: var(--rp-text-body);
}

.rp-shipping__address[hidden],
.rp-address-search__note[hidden] {
	display: none;
}

/* The tick sits above whatever follows it — the billing fields when it is
 * cleared, the Continue button when it is not — so it carries its own space
 * rather than relying on either. */
.rp-billing [data-rp-billing-same] {
	padding-block-end: var(--rp-space-lg);
}

/* Billing fields hide behind the "same as shipping" tick. :has() with an
 * @supports fallback that leaves them VISIBLE - the same trade the enquiry
 * form's friend fields make, so an old browser shows more, not less. */
@supports selector(:has(*)) {

	/* THE ROW MUST BE VISIBLE for the tick to count. It ships `hidden` and is
	 * only un-hidden for a delivery order, but the checkbox inside it stays
	 * checked either way — so keying purely on :checked hid the billing fields
	 * on a PICKUP order, where the row is hidden and there is no shipping
	 * address to copy. No address fields at all, and no way to type one.
	 *
	 * Same fault with the script blocked, where the row is never un-hidden. */
	.rp-billing:has( [data-rp-billing-same]:not([hidden]) [data-rp-billing-toggle]:checked ) .rp-billing__fields {
		display: none;
	}

	.rp-billing [data-rp-billing-same][hidden] {
		display: none;
	}
}


/* ===================================================================
 * The order summary
 * =================================================================== */

.rp-order-summary {
	flex: 0 0 var(--rp-checkout-summary-width);
	max-width: 100%;
	padding: var(--rp-space-lg);
	background: var(--rp-surface-panel);
	position: sticky;
	top: var(--rp-space-lg);
}

/**
 * The collapsed bar — mobile only, shown by the media query at the foot of this
 * file. Same disclosure pattern as .rp-faq__question: native <details>, marker
 * replaced by a CSS chevron so it stays out of the accessible tree, because
 * <summary> already announces its own expanded state.
 */
.rp-order-summary__bar {
	display: none;
	align-items: baseline;
	gap: var(--rp-space-xs);
	cursor: pointer;
	list-style: none;
}

.rp-order-summary__bar::-webkit-details-marker {
	display: none;
}

.rp-order-summary__bar-label {
	color: var(--rp-text-heading);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
}

.rp-order-summary__bar-count {
	color: var(--rp-text-body);
	font-size: var(--rp-type-body-sm-size);
}

/* Pushed right and last before the chevron: the figure is what the bar exists
 * to show. */
.rp-order-summary__bar-total {
	margin-inline-start: auto;
	color: var(--rp-text-heading);
	font-weight: var(--rp-font-weight-bold);
}

.rp-order-summary__bar::after {
	content: "";
	flex-shrink: 0;
	align-self: center;
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--rp-colour-primary-green);
	border-bottom: 2px solid var(--rp-colour-primary-green);
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 150ms ease-in-out;
}

.rp-order-summary__disclosure[open] .rp-order-summary__bar::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}

/* Air between the bar and the lines it opens onto. */
.rp-order-summary__disclosure[open] .rp-order-summary__lines {
	margin-block-start: var(--rp-space-md);
}

.rp-order-summary__title {
	margin: 0 0 var(--rp-space-md);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1;
	color: var(--rp-text-heading);
}

.rp-order-summary__lines {
	margin: 0 0 var(--rp-space-md);
	padding: 0;
	list-style: none;
}

/* The basket's delivery notice, under the products. */
.rp-order-summary .rp-delivery-info {
	margin-block: 0 var(--rp-space-md);
}

/* The delivery step's copy is for phones only; on desktop the summary beside it shows it. */
@media (min-width: 992px) {
	.rp-checkout-delivery__notice {
		display: none;
	}
}

/* Three cells on ONE row: thumbnail, detail, amount. It used to be a two-row
 * grid with the quantity beneath the name and the amount spanning both, which
 * left a lonely "× 1" and a gap under the price. */
.rp-order-summary__line {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	gap: var(--rp-space-xs);
	align-items: center;
	padding-block: var(--rp-space-xs);
	border-block-end: 1px solid var(--rp-field-border);
}

.rp-order-summary__detail {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rp-order-summary__image img {
	display: block;
	width: 48px;
	height: 48px;
	object-fit: cover;
}

.rp-order-summary__name {
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
	overflow-wrap: anywhere;
}

/* Both the image and the name link back to the product. `inherit` because the
 * line must not change colour by becoming clickable - the underline on hover is
 * what says it is a link, the same trade .rp-basket-line__name makes. */
a.rp-order-summary__name {
	color: inherit;
	text-decoration: none;
}

a.rp-order-summary__name:hover {
	text-decoration: underline;
}

a.rp-order-summary__name:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: 2px;
}

/* Directly under the name inside the detail cell, not in a grid row of its own -
 * a column for it would leave the name two words wide in a 380px panel. */
.rp-order-summary__qty {
	font-size: var(--rp-type-body-sm-size);
	line-height: 1.3;
	color: var(--rp-text-muted);
}

.rp-order-summary__amount {
	font-weight: var(--rp-font-weight-bold);
	white-space: nowrap;
}

.rp-order-summary__row {
	display: flex;
	justify-content: space-between;
	gap: var(--rp-space-md);
	margin: 0 0 var(--rp-space-2xs);
	font-size: var(--rp-type-body-size);
}

.rp-order-summary__row--total {
	margin-block-start: var(--rp-space-xs);
	padding-block-start: var(--rp-space-xs);
	border-block-start: 1px solid var(--rp-field-border);
	font-weight: var(--rp-font-weight-bold);
}

@media (max-width: 900px) {

	/**
	 * STRETCH, because turning the column flips what align-items governs.
	 *
	 * .rp-checkout sets align-items: flex-start, which on desktop is the
	 * VERTICAL axis and is right — it stops the summary stretching to the
	 * steps' height. Stacked, the same declaration governs WIDTH, so the steps
	 * shrank to their content and hugged the left with the slack on the right.
	 * The summary looked correct throughout only because it carries an explicit
	 * width: 100%.
	 */
	.rp-checkout {
		flex-direction: column;
		align-items: stretch;
	}

	/**
	 * THE SUMMARY GOES ABOVE THE FORM, COLLAPSED.
	 *
	 * It used to stack below, so the total only appeared after every step was
	 * filled in — the worst place to discover a delivery charge. The full cart
	 * above is no better on this catalogue: every line carries a thumbnail, so
	 * three items push the first field off screen. A collapsed bar carrying the
	 * total is the standard answer and is what this does.
	 *
	 * `order` moves it visually and NOT in the tab order, so a keyboard user
	 * still reaches the form first and the summary after. Both sequences are
	 * meaningful, so this is acceptable — but it is a real mismatch, not an
	 * oversight.
	 */
	/**
	 * IT STICKS, because the total CHANGES mid-checkout.
	 *
	 * Choosing a delivery re-renders this whole panel (inc/shipping.php), so a
	 * summary scrolled off the top means the customer picks a regional carrier,
	 * the total jumps, and nothing on screen says so.
	 *
	 * THE ASIDE STICKS, NOT THE <summary>. Sticky is bounded by its containing
	 * block, and collapsed the <details> box is exactly the bar's height — so a
	 * sticky <summary> has no room to travel and simply scrolls away. Sticking
	 * the aside gives the same result when collapsed and needs no background or
	 * negative margins, because the panel already has both.
	 */
	/* The border is what separates it from the step panels below — both are
	 * Light 1, so scrolled up against them the panel had no edge at all. */
	.rp-order-summary {
		order: -1;
		position: sticky;
		top: 0;
		z-index: 5;
		flex-basis: auto;
		width: 100%;
		border: 1px solid var(--rp-order-summary-border);
	}

	/* Expanded, a long order would otherwise pin most of the screen. The bar
	 * and the rows stay put and the items scroll inside. */
	.rp-order-summary__lines {
		max-height: 45dvh;
		overflow-y: auto;
	}

	/* The bar carries the label, so the h2 would say it twice. It stays in the
	 * DOM because aria-labelledby on the aside points at it. */
	.rp-order-summary__title {
		display: none;
	}

	.rp-order-summary__bar {
		display: flex;
	}

	/* The bar has the total. Repeating it at the foot said it twice on one
	 * screen. */
	.rp-order-summary__row--total {
		display: none;
	}
}


/* ===================================================================
 * Stock variations
 *
 * Ported from ProductVariations.svelte. A real <table>, because it is one —
 * rows of comparable facts under headers that describe columns.
 * =================================================================== */

/* FULL WRAPPER WIDTH, below both product columns — Figma "6-Product Variation
 * 4" (797:7617). `Frame 169` is 1200 wide at y=646; `Image and Description`
 * above it ends at 606, which is the 40 below. Its children sit at x=20 and are
 * 1160 wide, which is the padding.
 *
 * It rendered inside the 570px content column before, where six columns had to
 * scroll to fit. */
.rp-variations {
	margin-block-start: var(--rp-variations-space-above);
	padding: var(--rp-space-lg);
	background: var(--rp-surface-panel);
}

.rp-variations__title {
	margin: 0 0 var(--rp-space-md);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--rp-text-heading);
}

/* Scrolls inside its own box rather than widening the page — six columns do not
 * fit a 570px product column and must not push the layout sideways. */
.rp-variations__scroll {
	overflow-x: auto;
}

.rp-variations__table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-leading);
}

.rp-variations__table th {
	padding: 0 var(--rp-space-sm) var(--rp-space-xs) 0;
	border-block-end: 1px solid var(--rp-field-border);
	font-weight: var(--rp-font-weight-bold);
	text-align: left;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--rp-text-heading);
}

/* The Actions header is visually hidden, and that span is position:absolute —
 * without a positioned ancestor its containing block is BODY and it widens the
 * document, exactly as the gallery thumb labels did. */
.rp-variations__table th.rp-variations__col-actions {
	position: relative;
}

.rp-variations__table td {
	/* 49px rows in the frame; 14px of padding against a 22px line box lands
	 * there without pinning a height that a wrapped description would break. */
	padding: var(--rp-space-md) var(--rp-space-sm) var(--rp-space-md) 0;
	border-block-end: 1px solid var(--rp-field-border);
	/* Centred against the thumbnail, which sets the row height — every other
	 * cell holds one or two lines and hung at the top of it. */
	vertical-align: middle;
}

.rp-variations__col-sku {
	font-weight: var(--rp-font-weight-bold);
	white-space: nowrap;
}

/* The row an enquiry email links to (#variation-{ID}): scrolled clear of the
 * edge and tinted Light 3 against the Light 1 panel. Client, 25 October 2026. */
.rp-variations__row {
	scroll-margin-block-start: var(--rp-space-lg);
}

.rp-variations__row:target > td {
	background: var(--rp-colour-light-3);
}

.rp-variations__row:target > td:first-child {
	padding-inline-start: var(--rp-space-sm);
}

/* Thumbnail then stock number, side by side and centred on each other. */
.rp-variations__stock {
	display: flex;
	align-items: center;
	gap: var(--rp-variations-stock-gap);
}

.rp-variations__col-price,
.rp-variations__col-qty {
	white-space: nowrap;
}

/* The floor is what stops auto table layout squeezing the column; nowrap is
 * what actually keeps "1520(w) x 2025(h) x 32(d)" on one line, since that is
 * wider than 128. Same pair the three columns above use. */
.rp-variations__col-size {
	min-width: var(--rp-variations-size-min);
	white-space: nowrap;
}

/* fit-content, or the block fills the cell and the focus ring below is drawn
 * round the whole column instead of round the picture. */
.rp-variations__image {
	display: block;
	width: fit-content;
	flex: 0 0 auto;
}

/* A picture gets a fixed-width box with the image centred in it, so every
 * stock number in the column starts at the same x whatever the image's
 * aspect. The label variant below is a word, not a box, and keeps fit-content. */
.rp-variations__image:not(.rp-variations__image--label) {
	display: flex;
	justify-content: center;
	width: var(--rp-variations-thumb-width);
}

/* The link opens the shared lightbox — assets/js/variation-lightbox.js. Inert
 * until that module marks it, so with the script blocked the pointer still says
 * "link to a file in a new tab", which is what it then is. */
.rp-variations__image--zoomable {
	cursor: zoom-in;
}

/* CLOSING THE LIGHTBOX WITH ESCAPE RETURNS FOCUS HERE, so this is what a
 * keyboard user sees on the way back and it has to be visible — WCAG 2.4.7.
 * The theme's own ring rather than the browser's, and inset like the gallery's
 * and the collage's, so it reads as the image being selected rather than as a
 * border that has appeared around it. */
.rp-variations__image:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

/* The suppressed state is an icon and a word, not a picture — an inset ring
 * would cut through both. */
.rp-variations__image--label:focus-visible {
	outline-offset: 2px;
}

/* 69 tall, the frame's. It still serves the `large` file and limits it in CSS
 * rather than requesting a smaller size, which is what live does. */
.rp-variations__image img {
	display: block;
	max-width: var(--rp-variations-thumb-max-width);
	max-height: var(--rp-variations-thumb-height);
	width: auto;
	height: auto;
}

/* The suppressed state: an icon and the word, still linked to the full image.
 * Live's `hide_variable_thumbnails`, for products with dozens of variations. */
.rp-variations__image--label {
	display: inline-flex;
	align-items: center;
	gap: var(--rp-space-3xs);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-regular);
}

.rp-variations__image--label svg {
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* The one column holding authored sentences. The rest of the table is scan
 * data and stays at 14 — lifting it all would widen an already wide table. */
.rp-variations__col-details {
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
}

/* TWO CONTROLS PER ROW, and both smaller than the theme's default button.
 * A full-size .rp-btn is sized for a product page's action row; three of them
 * down a table of thirty variations is all anyone sees. These take the compact
 * metrics without needing --compact in the markup, because the markup comes
 * from shared templates that the product page also uses.
 *
 * Stacked rather than side by side: the column is narrow, and two buttons on
 * one line push the table into its scroller at exactly the width where the
 * Details column is already competing for room. */
/* Stretch, not flex-start: the frame draws the two buttons at one width, and
 * a fit-content column plus auto margin puts the stack against the right edge. */
/* Column shrinks to its widest button and every row fills it, so all buttons
 * are one length. Narrower than Figma's 150 - client, 5 Oct 2026. */
.rp-variations__table td.rp-variations__col-actions {
	width: 1%;
}

.rp-variations__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--rp-variations-action-gap);
	width: 100%;
	white-space: nowrap;
}

/* The price cell too — that is where "Login to view price" lands on a
 * hide_price product, and a full-size button would set the row height.
 *
 * HEIGHT IS PINNED to the frame's 29, not left to padding. Measured 24 live
 * against Figma's 150 x 29 — the width was already right, and it was the
 * missing 5px that made the button read squat and therefore too wide.
 *
 * Pinning also settles a second thing: .rp-btn--added carries an 18px tick, so
 * "In enquiry" came out 26 where "Enquire" was 24 and the row shifted as you
 * clicked. .rp-btn is inline-flex and centres, so the tick and the 18px
 * data-pending-inside spinner both sit inside 29 with room to spare. */
.rp-variations__actions .rp-btn,
.rp-variations__col-price .rp-btn {
	min-width: 0;
	height: var(--rp-variations-button-height);
	padding-block: 0;
	padding-inline: var(--rp-button-compact-pad-x);
	font-size: var(--rp-type-body-sm-size);
	line-height: var(--rp-type-body-sm-leading);
}

/* The forms are block-level wrappers around each button; without this they take
 * the column's full width and the buttons stretch with them. */
.rp-variations__actions form {
	margin: 0;
}

/* Fill the stretched form, so every button in the column is one length. */
.rp-variations__actions .rp-btn {
	width: 100%;
}

/* The column is as wide as its widest button, so a spinner added beside the label widened
 * every button. Here it covers the label instead, and the button keeps its width. */
.rp-variations__actions .rp-btn[aria-busy="true"] {
	position: relative;
	color: transparent;
}

.rp-variations__actions .rp-btn[aria-busy="true"] .rp-pending {
	position: absolute;
	inset: 0;
	margin: auto;
}

.rp-variations__col-details > *:first-child { margin-top: 0; }
.rp-variations__col-details > *:last-child { margin-bottom: 0; }

/* Phone and tablet portrait: a compact card per variation (client brief, 18 Nov 2026), styled like
 * the enquiry list — thumbnail left with Stock #, Price and Qty beside it; Size, details and the
 * stacked buttons full width below. 900, not 768: a Details paragraph outgrows the table first. */
@media (max-width: 900px) {

	.rp-variations__table thead {
		display: none;
	}

	.rp-variations__table,
	.rp-variations__table tbody {
		display: block;
		width: 100%;
	}

	/* Image spans the first three rows; everything else is auto-placed in column 2 or full width. */
	.rp-variations__row {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: start;
		padding-block: var(--rp-space-md);
		border-block-end: 1px solid var(--rp-field-border);
	}

	.rp-variations__row:first-child {
		padding-block-start: 0;
	}

	.rp-variations__row:last-child {
		padding-block-end: 0;
		border-block-end: 0;
	}

	.rp-variations__row:target {
		padding-inline: var(--rp-space-sm);
		padding-block: var(--rp-space-md);
		background: var(--rp-colour-light-3);
	}

	.rp-variations__table td {
		display: block;
		grid-column: 2;
		padding: 0;
		border: 0;
		background: none;
		font-size: var(--rp-type-body-sm-size);
		line-height: 20px;
		color: var(--rp-text-muted);
		white-space: normal;
	}

	.rp-variations__table .rp-variations__row:target > td {
		padding-inline-start: 0;
		background: none;
	}

	/* Blank quantity, no details: the line and its space go entirely. */
	.rp-variations__table td.rp-variations__cell--empty {
		display: none;
	}

	/* "Price: $7.50", as in the enquiry list. Stock # takes no colon. */
	.rp-variations__table td[data-label]::before {
		content: attr(data-label) ": ";
	}

	/* The picture and the number become items of the row's grid. */
	.rp-variations__table td.rp-variations__col-sku,
	.rp-variations__stock {
		display: contents;
	}

	.rp-variations__table td.rp-variations__col-sku::before {
		content: none;
	}

	.rp-variations__col-sku .rp-variations__image {
		grid-column: 1;
		grid-row: 1 / span 3;
		margin-inline-end: var(--rp-space-md);
	}

	/* Left in its fixed box, so a tall door photo does not float off the edge. */
	.rp-variations__col-sku .rp-variations__image:not(.rp-variations__image--label) {
		justify-content: flex-start;
	}

	.rp-variations__sku {
		grid-column: 2;
		font-size: var(--rp-type-body-sm-size);
		line-height: 20px;
		font-weight: var(--rp-font-weight-bold);
		color: var(--rp-text-heading);
	}

	.rp-variations__sku::before {
		content: attr(data-label) " ";
		font-weight: var(--rp-font-weight-regular);
		color: var(--rp-text-muted);
	}

	/* Current price dark, as in the enquiry list; a sale reads "$150.00 $95.00" on one line. */
	.rp-variations__price {
		color: var(--rp-text-heading);
	}

	.rp-variations__price:has(del) {
		display: inline-flex;
		flex-direction: row;
		gap: var(--rp-space-3xs);
	}

	.rp-variations__price:has(del) del {
		order: 0;
		color: var(--rp-text-muted);
	}

	/* "Price:" over a "View price" button says it twice. */
	.rp-variations__table td.rp-variations__col-price:has(.rp-btn)::before {
		content: none;
	}

	.rp-variations__col-price .rp-btn {
		width: auto;
	}

	.rp-variations__table td.rp-variations__col-size,
	.rp-variations__table td.rp-variations__col-details,
	.rp-variations__table td.rp-variations__col-actions {
		grid-column: 1 / -1;
		min-width: 0;
	}

	.rp-variations__table td.rp-variations__col-size {
		margin-block-start: var(--rp-space-xs);
	}

	.rp-variations__table td.rp-variations__col-details {
		margin-block-start: var(--rp-space-3xs);
	}

	/* The variation's own text, no "Details" label. */
	.rp-variations__table td.rp-variations__col-details::before {
		content: none;
	}

	.rp-variations__table td.rp-variations__col-actions {
		width: auto;
		margin-block-start: var(--rp-space-sm);
	}

	/* Enquire above Login to buy / Add to cart, full width. */
	.rp-variations__actions {
		flex-direction: column;
		gap: var(--rp-space-xs);
		width: 100%;
		white-space: normal;
	}

	.rp-variations__actions .rp-btn {
		width: 100%;
	}
}


/* -------------------------------------------------------------------
 * Product rows — Related Products, You May Also Like
 *
 * Generic on purpose: one class for both rows and for whatever comes next,
 * the same way template-parts/product-row.php is one template. The row itself
 * is .rp-grid holding .rp-card - the category listing's own grid and card, so
 * nothing here sizes or spaces a card. Only the section around them.
 */

/* Both rows can be on the page at once, so each carries its own space below as
 * well as above. Padding, not margin: a bottom margin would collapse into the
 * next row's top one and the two sections would sit 60 apart, which is exactly
 * .rp-grid's own row gap - i.e. indistinguishable from one more row of cards. */
.rp-product-row {
	margin-block-start: var(--rp-product-row-space-above);
	padding-block-end: var(--rp-product-row-space-below);
}

/* The space below is for the row UNDER it, so the last one does not need it -
 * main.rp-container already ends the page on --rp-v-padding, and the two
 * together read as a gap nobody chose. A product with one row is the common
 * case, so this is not an edge case. */
.rp-product-row:last-child {
	padding-block-end: 0;
}

/* Matches .rp-variations__title, so the section headings on this page cannot
 * disagree — including the uppercasing, which 6-Product Variation 2 (628:8432)
 * draws on both. */
.rp-product-row__title {
	margin: 0 0 var(--rp-space-md);
	font-size: var(--rp-type-h4-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--rp-text-heading);
}


/* ===================================================================
 * 19. Be Inspired   .rp-inspirations (listing)  .rp-inspiration (item)
 *
 * TWO PAGES, and the class names differ by one letter. The plural is the
 * listing; the singular is an item. Figma "10-Inspirations Grid" and
 * "11-Inspirations Template".
 * =================================================================== */

/* Colour/Light 3 on every one of these frames' Body Wrap. Nothing in this
 * theme paints <body>, so a page that wants a ground says so. */
.rp-inspirations,
.rp-all-products {
	background: var(--rp-surface-page);
}

/* 40 above the trail, 80 down to the newsletter band. Not main.rp-container's
 * rule: these pages put a full-bleed hero above the container, so the wrapper
 * is a div inside <main> rather than <main> itself. */
.rp-page-body {
	padding-top: var(--rp-page-top);
	padding-bottom: var(--rp-v-padding);
}

/* Display/Page Title - Nuosu SIL 40. Shared by every page with an h1 of its
 * own; the margin below it is the page's business, not the type's.
 *
 * .woocommerce-products-header__title and .page-title are WooCommerce's own
 * classes, on the category archive, search, New Arrivals and page.php's
 * fallback. They were styled by nothing at all and took the browser's h1 -
 * Inter Bold 32 in body colour, against the frames' Nuosu SIL Regular 40 in
 * Dark Green. Styling the classes rather than adding rp-page-title to five
 * templates is what search.php's own comment asks for. */
.rp-page-title,
.woocommerce-products-header__title,
.page-title {
	margin: 0;
	font-family: var(--rp-page-title-family);
	font-size: var(--rp-page-title-size);
	font-weight: var(--rp-font-weight-regular);

	/* Was `normal`, which this face resolves to 53px - 9px taller than every
	 * other page title, all of it white space under the letters. */
	line-height: var(--rp-page-title-leading);
	color: var(--rp-page-title-colour);
}

/* These two have no wrapper supplying the gap - it was the UA's 0.67em, which
 * at 32px was 21.4 and disappears the moment the rule above zeroes it. Onto the
 * one dial, at 20, rather than a number of their own. */
.woocommerce-products-header__title,
.page-title,
.rp-form-page__title {
	margin-block-end: var(--rp-h1-space-after);
}

/* "Content Title" (96:2118) / "Page title" (191:2890): the h1 over its lead
 * with a 5px gap, then 60 down to the grid. */
.rp-page-head {
	display: flex;
	flex-direction: column;
	gap: var(--rp-inspirations-title-gap);
	margin-bottom: var(--rp-inspirations-grid-gap);
}

/* Body/Large - Inter Regular 18/25. */
/* margin:0 because the lead is a <div> of editor HTML on /all-products and Be
 * Inspired but a bare <p> in 404.php — and a <p>'s UA margin does not collapse
 * inside .rp-page-head's flex, so 404 sat at 20 + 16 = 36 under the h1 where
 * every other page title sat at 20. The child resets below only ever reached
 * the div's contents, never the <p> itself. */
.rp-page-head__lead {
	margin: 0;
	font-size: var(--rp-type-body-lg-size);
	line-height: var(--rp-type-body-lg-leading);
	color: var(--rp-text-body);
}

.rp-page-head__lead > *:first-child {
	margin-top: 0;
}

.rp-page-head__lead > *:last-child {
	margin-bottom: 0;
}

/* THE CARD UPPERCASES ITS TITLE - Heading/H3 Caps, which is what the frames
 * draw everywhere a category-card appears, All Products included.
 *
 * It was `text-transform: none` here between 11 August and 10 September 2026,
 * the client having asked for Title Case on this page; they reversed it. The
 * card rule now applies unaltered, so there is deliberately nothing scoped to
 * .rp-all-products for the title. */


/* ===================================================================
 * 19b. Be Inspired item page   .rp-inspiration  .rp-collage
 *
 * Figma "11-Inspirations Template" - 1440 88:943, 768 761:9839,
 * 402 761:10259. The type scale and every vertical gap are IDENTICAL at
 * all three frames; only the container width and the collage's shape
 * change, which is why there is so little in the media queries below.
 * =================================================================== */

/* The page paints its own ground, the way a brochure page does from its first
 * block's colour. Light 3 is what get_variable_defs returns for the frame's
 * Body Wrap (88:946); nothing sets a background on <body> in this theme. */
.rp-inspiration {
	background: var(--rp-surface-page);
}

/* THE HERO STRIP - shared by this page, the listing and a category archive.
 * Full-bleed, so it renders outside .rp-container.
 *
 * A STRIP, not a block: clamped so it lands on the artwork's 375 at 1440 and
 * stays a band below it. The item frame's fixed 585 is deliberately not
 * reproduced - see the token. */
.rp-hero {
	height: var(--rp-hero-height);
	overflow: hidden;
}

.rp-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;

	/* Above centre: these are architectural photographs and the subject is
	 * almost never at the vertical middle. It is what stops a portrait upload
	 * cropping to the floorboards. */
	object-position: var(--rp-hero-focus);
}

/* All Products: the 706 and 430 frames have no banner (V2 Figma, 16 Nov 2026). */
@media (max-width: 991px) {
	.rp-all-products > .rp-hero {
		display: none;
	}
}

/* 80 below the content rather than the frames' 120: the Body Wrap heights
 * are hand-set in the artwork and disagree with each other (120 at 1440
 * and 768, 32 at 402), so this follows the theme's own band rhythm. */
/* Type is .rp-page-title; this is only the gap down to the first heading. The
 * breadcrumb's own bottom padding gives the gap above it. */
.rp-inspiration__title {
	margin-bottom: var(--rp-inspiration-title-gap);
}

.rp-inspiration__sections,
.rp-inspiration__section {
	display: flex;
	flex-direction: column;
	gap: var(--rp-inspiration-section-gap);
}

.rp-inspiration__text {
	display: flex;
	flex-direction: column;
	gap: var(--rp-inspiration-text-gap);
}

/* Heading/H2 - Inter Bold 24. */
.rp-inspiration__heading {
	margin: 0;
	font-size: var(--rp-type-h2-size);
	font-weight: var(--rp-type-h2-weight);
	line-height: normal;
	color: var(--rp-colour-dark-green);
}

.rp-inspiration__prose {
	font-size: var(--rp-type-prose-size);
	font-weight: var(--rp-type-prose-weight);
	line-height: var(--rp-type-prose-leading);
	color: var(--rp-text-body);
}

/* One blank line between paragraphs, which is exactly what the frame draws -
 * its two blocks are separated by an empty <p> at the same 20px leading. */
.rp-inspiration__prose p {
	margin: 0 0 var(--rp-type-prose-leading);
}

.rp-inspiration__prose > *:first-child {
	margin-top: 0;
}

.rp-inspiration__prose > *:last-child {
	margin-bottom: 0;
}


/* -------------------------------------------------------------------
 * The collage
 *
 * A native scroll-snap track, NOT a carousel library: swipe, momentum and
 * keyboard scrolling all come from the browser, and each caption is
 * rendered inside its own slide - so the visible one changes because the
 * track scrolled, not because a script wrote it.
 * ------------------------------------------------------------------- */

.rp-collage {
	position: relative;
}

.rp-collage__track {
	display: flex;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

/* The arrows are the control; a scrollbar under a photograph is noise. */
.rp-collage__track::-webkit-scrollbar {
	display: none;
}

/* The track is focusable so the photographs are reachable by keyboard with
 * the script blocked - see the note in the template. */
.rp-collage__track:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

.rp-collage__slide {
	position: relative;
	flex: 0 0 100%;
	aspect-ratio: var(--rp-collage-ratio);
	scroll-snap-align: start;
}

.rp-collage__open {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: default;
}

/* Only once the lightbox is wired. Until then the button is inert and must
 * not advertise otherwise. */
.rp-collage--enhanced .rp-collage__open {
	cursor: zoom-in;
}

.rp-collage__open:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

.rp-collage__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* The caption band. pointer-events off so it does not shadow the enlarge
 * button underneath it. */
.rp-collage__caption {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: var(--rp-collage-caption-height);
	margin: 0;
	padding: var(--rp-collage-caption-pad);
	background: var(--rp-collage-caption-bg);
	color: var(--rp-colour-light-1);
	font-size: var(--rp-type-body-sm-size);
	font-weight: var(--rp-font-weight-bold);
	line-height: var(--rp-type-body-sm-leading);
	text-align: center;
	pointer-events: none;
}

.rp-collage__arrow {
	position: absolute;
	top: 50%;
	display: none;
	width: var(--rp-gallery-arrow-width);
	height: var(--rp-collage-arrow-height);
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	background: var(--rp-collage-arrow-bg);
	color: var(--rp-text-heading);
	cursor: pointer;
}

/* Centred on the photograph, which the caption band sits inside - so with a
 * caption the middle is 20px higher than the middle of the box. */
.rp-collage--captioned .rp-collage__arrow {
	top: calc((100% - var(--rp-collage-caption-height)) / 2);
}

.rp-collage--enhanced .rp-collage__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rp-collage__arrow--prev {
	left: 0;
}

.rp-collage__arrow--next {
	right: 0;
}

/* The same exported chevron the product gallery uses, rotated both ways
 * rather than shipping two files. */
.rp-collage__arrow::before {
	content: "";
	width: var(--rp-gallery-icon-size);
	height: var(--rp-gallery-icon-size);
	background-color: currentColor;
	-webkit-mask: url("../icons/gallery-arrow.svg") no-repeat center / contain;
	mask: url("../icons/gallery-arrow.svg") no-repeat center / contain;
}

.rp-collage__arrow--prev::before {
	transform: rotate(-90deg);
}

.rp-collage__arrow--next::before {
	transform: rotate(90deg);
}

/* hover: hover only - on a touch screen the state latches after a tap and the
 * arrow stays lit. Same guard the View arrow uses. */
@media (hover: hover) {

	.rp-collage__arrow:not(:disabled):hover {
		background: var(--rp-collage-arrow-bg-hover);
	}
}

.rp-collage__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.rp-collage__arrow:focus-visible {
	outline: 2px solid var(--rp-focus-ring);
	outline-offset: -2px;
}

/* The collage is the one thing on this page that is a different SHAPE per
 * frame: 1200x651, 704x651, 354x424. Everything else only changes width. */
@media (max-width: 991px) {

	.rp-collage {
		--rp-collage-ratio: 704 / 651;
	}
}

@media (max-width: 599px) {

	.rp-collage {
		--rp-collage-ratio: 354 / 424;
	}
}

@media (prefers-reduced-motion: reduce) {

	.rp-collage__track {
		scroll-behavior: auto;
	}
}


/* ===================================================================
 * 23. The 404 page
 *
 * Composed from parts that already exist - .rp-page-head, .rp-field, .rp-btn -
 * so there is nothing here but the two rows' spacing. No frame draws this page.
 * =================================================================== */

/* The shared .rp-page-head drops 60 below itself - the gap down to a GRID of
 * cards on All Products and Be Inspired. Here the next thing is the search that
 * answers the sentence above it, so it takes the theme's paragraph-to-field 20
 * and the two read as one block. The 60 then separates that block from the
 * buttons, which is where the break belongs. */
.rp-notfound .rp-page-head {
	margin-bottom: var(--rp-space-lg);
}

/* Body/Regular 16, not the shared lead's Body/Large 18. This is a sentence
 * explaining what happened, not a page lead over a grid - and it sits directly
 * above a 16px field, so the two should not disagree. Client, 13 August 2026. */
.rp-notfound .rp-page-head__lead {
	font-size: var(--rp-type-body-size);
	line-height: var(--rp-type-body-leading);
}

/* 640, the form standard's cap: a search box the width of the page is the same
 * mistake "A form is not page-wide" already names. */
.rp-notfound__search {
	max-width: 640px;
	margin-bottom: var(--rp-space-xl);
}

/* The button sits at its own width in a column, not stretched across the box. */
.rp-notfound__search .rp-btn {
	align-self: start;
}

.rp-notfound__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-space-lg);
}
