/**
 * Renin configurator styles.
 *
 * STRUCTURE
 *   1. Design tokens   — all colours/spacing/radii live in :root as --renin-* custom
 *                        properties. Change the brand here in ONE place.
 *   2. Components      — hero, collection tabs, model cards, configurator layout, price box.
 *
 * NAMING  BEM-ish, all prefixed `renin-` to avoid collisions:
 *   block .renin-collection-tab  ·  element .renin-install__btn  ·  modifier .renin-hero--browse
 *
 * OVERRIDING (for theme devs)  Every visual value is a token. To re-skin without editing
 * this file, redeclare tokens in the child theme, e.g.:
 *     :root { --renin-blue: #b8860b; --renin-navy: #222; }
 * Tokens cascade, so that alone re-colours the whole configurator.
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
	/* Colonial Elegance palette */
	--renin-espresso: #262320;
	--renin-espresso-2: #463f3b;
	--renin-copper: #ba8a65;
	--renin-copper-light: #c39978;
	--renin-copper-deep: #957359;
	--renin-paper: #f5f4f2;
	--renin-text-on-dark: #cfcecc;

	/* Repointed semantic tokens (existing rules reference these) */
	--renin-navy: var(--renin-espresso);
	--renin-blue: var(--renin-copper);
	--renin-blue-dark: var(--renin-copper-deep);
	--renin-accent: var(--renin-copper);
	--renin-bg: var(--renin-paper);
	--renin-surface: #fff;
	--renin-border: #e3dfda;
	--renin-ink: #262320;
	--renin-muted: #a8a3a2;

	/* Fonts */
	--renin-font-display: 'Poppins', system-ui, sans-serif;
	--renin-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	/* Spacing scale */
	--renin-space-xs: 0.35rem;
	--renin-space-sm: 0.5rem;
	--renin-space-md: 1rem;
	--renin-space-lg: 1.5rem;
	--renin-space-xl: 2.5rem;

	/* Radius, shadow, motion */
	--renin-radius: 8px;
	--renin-radius-sm: 5px;
	--renin-shadow: 0 6px 18px rgba(38, 35, 32, 0.12);
	--renin-transition: 0.15s ease;

	/* Placeholder fill (until real images arrive) */
	--renin-placeholder: repeating-linear-gradient(
		45deg,
		#f5f4f2,
		#f5f4f2 12px,
		#e3dfda 12px,
		#e3dfda 24px
	);
}

/* Root = full-width espresso canvas; content re-centres to a 1290px column on top. */
.renin-browse,
.renin-configurator {
	color: var(--renin-text-on-dark);
	background: var(--renin-espresso);
}

/* Full-bleed canvas (content re-centres to 1290 below); !important beats
   the theme/WP layout rule's own !important auto-margins. */
.entry-content.is-layout-constrained > .renin-configurator {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-inline: 0;
}
.renin-configurator > .renin-confighead,
.renin-configurator > .renin-layout {
	max-width: 1290px;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 5vw, 4rem);
}

/* Configurator header (back link, lang, step line, two-tone title, description) — on the espresso canvas. */
.renin-confighead {
	color: var(--renin-text-on-dark);
	padding-block: var(--renin-space-lg) var(--renin-space-xl);
	padding-inline: 0;
	margin-bottom: var(--renin-space-md);
}.renin-confighead .renin-lang-link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}
.renin-confighead .renin-lang-link.is-active {
	background: #fff;
	color: var(--renin-espresso);
	border-color: #fff;
}

/* Full-bleed canvas (content re-centres to 1290 below); !important beats
   the theme/WP layout rule's own !important auto-margins. */
.entry-content.is-layout-constrained > .renin-browse {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-inline: 0;
}
.renin-browse > .renin-hero--browse,
.renin-browse > .renin-lang,
.renin-browse > .renin-collection-nav,
.renin-browse > .renin-collection {
	max-width: 1290px;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 5vw, 4rem);
}

.renin-configurator, .renin-browse {
	font-family: var(--renin-font-body);
}

.renin-collection-title {
	font-family: var(--renin-font-display);
	font-weight: 300;
}

/* ============================================================
   2. COMPONENTS
   ============================================================ */

/* ---- Hero banner ---- */
.renin-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--renin-space-md);
	background: var(--renin-navy);
	color: #fff;
	padding: var(--renin-space-lg) 1.75rem;
	border-radius: var(--renin-radius);
	margin: 0 0 var(--renin-space-lg);
}

/* Browse hero: sits on the espresso canvas (no separate band), centred with the content column. */
.renin-hero--browse {
	background: transparent;
	color: var(--renin-text-on-dark);
	display: block;
	border-radius: 0;
	padding-block: var(--renin-space-lg) var(--renin-space-xl);
	padding-inline: 0;
	margin: 0 0 var(--renin-space-lg);
}
/* ---- Collection tabs ---- */
.renin-collection-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 var(--renin-space-xl);
}

/* Cap is legibility, not layout: door mullions (3 src px) render crooked
   under ~200px tab width (sub-pixel). 226px keeps them ~1.34px, resolves
   aspect-ratio to a whole 301px; flexible so the row never wraps 2+1. */
.renin-collection-tab {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 0;
	max-width: 226px;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius);
	overflow: hidden;
	background: var(--renin-surface);
	text-decoration: none;
	transition: border-color var(--renin-transition), transform var(--renin-transition);
}

.renin-collection-tab:hover {
	border-color: var(--renin-blue);
	transform: translateY(-2px);
}

/* Client rule 2026-08-10: collection photos are portrait (0.61-0.68) in a
   landscape box — left 55-60% white. Portrait box + cover fit removes it;
   aspect-ratio carries the proportion to every breakpoint. */
.renin-tab-thumb {
	aspect-ratio: 160 / 215;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Deliberately unfiltered — an SVG unsharp mask was tried and removed. At
   this size the softness is mullions under a pixel wide; sharpening can't
   rebuild them and only worsens the unevenness. The width fix above is it. */
.renin-tab-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.renin-tab-label {
	background: var(--renin-surface);
	color: var(--renin-ink);
	text-align: center;
	padding: var(--renin-space-sm);
	font-weight: 600;
	border-top: 1px solid var(--renin-border);
	box-shadow: inset 0 -3px 0 transparent;
}

/* Active collection tab: copper border + copper underline. */
.renin-collection-tab.is-active {
	border-color: var(--renin-copper);
	box-shadow: 0 0 0 1px var(--renin-copper);
}

.renin-collection-tab.is-active .renin-tab-label {
	color: var(--renin-copper-deep);
	box-shadow: inset 0 -3px 0 var(--renin-copper);
}

/* ---- Collection sections + model cards ---- */
.renin-collection {
	margin: 0 0 var(--renin-space-xl);
}

.renin-collection-title {
	margin: 0 0 var(--renin-space-md);
	padding-bottom: var(--renin-space-sm);
	border-bottom: 2px solid var(--renin-border);
	font-size: 1.3rem;
}

.renin-models {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: var(--renin-space-md);
}

.renin-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius);
	overflow: hidden;
	background: var(--renin-surface);
	text-decoration: none;
	color: inherit;
	transition: border-color var(--renin-transition), box-shadow var(--renin-transition), transform var(--renin-transition);
}

.renin-card:hover {
	border-color: var(--renin-blue);
	box-shadow: var(--renin-shadow);
	transform: translateY(-2px);
	position: relative;
	z-index: 20;
}

.renin-thumb,
.renin-preview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--renin-paper), #ece8e2);
	color: var(--renin-muted);
	overflow: hidden;
	padding: var(--renin-space-xl);
}

/* Card photos are tight ~2:3 crops (~0.678 ratio); matching the box ratio
   fills edge-to-edge, no letterbox/crop. Don't use object-fit: cover on a
   shorter box — it clips the frame header ~15px from the photo top. */
.renin-thumb {
	aspect-ratio: 500 / 738;
	height: auto;
	padding: 0;
	border-bottom: 1px solid var(--renin-border);
}

/* width/height + object-fit, not max-*: max-width never scales an image up,
   and some sources are small originals (e.g. 105x155) that would stay tiny
   while the rest grew. */
.renin-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Hover zoom: thumb now renders the door much larger, so the old
   translate + scale(2.4) pop-out would balloon past the card into
   neighbours. Contained nudge instead; model cards only, not tabs. */
.renin-thumb-img {
	transition: transform 0.35s ease;
}

.renin-card:hover .renin-thumb-img {
	transform: scale(1.06);
}

/* Client rule 2026-08-07: in-place pan zoom. JS sets transform-origin from
   the cursor and toggles is-zooming; the scale transition eases in while
   the origin snaps instantly — transitioning origin makes the image swim. */
.renin-thumb {
	overflow: hidden;
}

.renin-thumb.is-zooming .renin-thumb-img {
	transform: scale(2.2);
}

/* Detail-page preview zoom: the stage is the stable frame (listener area,
   clipping, cursor); the layered door scales inside it as one unit. */
.renin-preview__stage {
	display: block;
	width: 100%;
	max-width: 460px;
	margin: 0 auto;
	overflow: hidden;
	cursor: zoom-in;
}

.renin-preview__stage .renin-door--lg {
	transition: transform 0.35s ease;
}

.renin-preview__stage.is-zooming .renin-door--lg {
	transform: scale(2.2);
}

/* Click-to-enlarge lightbox: dark backdrop, door fitted to the viewport,
   same pan-zoom inside. The stage clips the zoom like the cards do. */
.renin-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(20, 17, 14, 0.82);
}

/* Needed: the author display:flex on .renin-lightbox above beats the UA
   [hidden] rule at equal specificity, so without this the closed overlay
   stays painted and swallows every click. */
.renin-lightbox[hidden] {
	display: none;
}

/* The stage takes the door's own shape. Door art is 480x640 for 2 panels,
   720x640 for 3 and 960x640 for 4, so the old fixed 480/640 frame letterboxed
   the wide ones: a 4-panel door filled the width edge to edge and left a
   quarter of the height as blank mat above and below (client report
   2026-08-20). JS sets --renin-lb-ar from the image's natural size once it
   loads; the fallback is the 2-panel shape. content-box keeps the ratio on the
   door itself so the mat below stays an even border on all four sides. */
.renin-lightbox__stage {
	--renin-lb-pad: clamp(0.85rem, 2.2vw, 1.75rem);
	display: block;
	box-sizing: content-box;
	aspect-ratio: var(--renin-lb-ar, 0.75);
	width: min(
		calc(92vw - 2 * var(--renin-lb-pad)),
		calc((88vh - 2 * var(--renin-lb-pad)) * var(--renin-lb-ar, 0.75))
	);
	height: auto;
	padding: var(--renin-lb-pad);
	overflow: hidden;
	border-radius: var(--renin-radius);
	background: linear-gradient(160deg, var(--renin-paper), #ece8e2);
}

.renin-lightbox__door {
	width: 100%;
	height: 100%;
	transition: transform 0.35s ease;
}

.renin-lightbox__stage.is-zooming .renin-lightbox__door {
	transform: scale(2.2);
}

.renin-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1.25rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1d1d1d;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

/* Layered door: panel (insert) behind, frame (transparent centre) on top;
   both are 480x640 so they align when stacked. */
.renin-door {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 480 / 640;
	margin: 0 auto;
}

.renin-door--lg {
	height: auto;
	width: 100%;
	max-width: 460px;
}

.renin-door__panel,
.renin-door__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.renin-card-body {
	display: flex;
	flex-direction: column;
	gap: var(--renin-space-xs);
	padding: 0.85rem var(--renin-space-md) var(--renin-space-md);
}

.renin-model-title {
	font-weight: 700;
	font-size: 1.05rem;
}

.renin-model-desc {
	font-size: 0.85rem;
	color: var(--renin-muted);
	line-height: 1.35;
}
/* ---- Configurator layout ---- */
.renin-back {
	font-size: 0.9rem;
	margin: 0 0 var(--renin-space-sm);
}

/* Left column widened from 1fr/1.4fr (41.7%) to 1fr/1.25fr (44.4%): the store
   cost breakdown put four more rows in there, and the extra width keeps the
   build title and the money rows on fewer lines — which is also less height,
   so the column tips into its scroll cap less often. */
.renin-layout {
	display: grid;
	grid-template-columns: minmax(240px, 1fr) 1.25fr;
	gap: var(--renin-space-lg);
	align-items: start;
}

.renin-preview {
	min-height: 320px;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius);
}

.renin-panel {
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius);
	padding: 1.25rem var(--renin-space-lg);
	background: var(--renin-surface);
}

.renin-fields {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.renin-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--renin-muted);
}

/* Image-tile / swatch selectors */
.renin-tiles {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.renin-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	width: 88px;
	padding: 0.4rem;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
	background: #fff;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--renin-ink);
	transition: border-color var(--renin-transition), box-shadow var(--renin-transition);
}

.renin-tile:hover {
	border-color: var(--renin-blue);
}

.renin-tile.is-selected {
	border-color: var(--renin-navy);
	box-shadow: inset 0 0 0 2px var(--renin-accent);
}

/* Incompatible with the current build: stays visible, but greyed and inert. */
.renin-tile.is-disabled {
	cursor: not-allowed;
	opacity: 0.4;
	filter: grayscale( 1 );
}

.renin-tile.is-disabled:hover {
	border-color: var(--renin-border);
}

.renin-tile img {
	width: 100%;
	height: 56px;
	object-fit: contain;
	/* Frame the swatch so pale tiles (white panel, mirror, frosted glass) don't blend into the tile. */
	border: 1px solid var(--renin-border);
	border-radius: 3px;
}

.renin-tile--text {
	min-width: 56px;
	justify-content: center;
	padding: 0.6rem 0.5rem;
}

.renin-tile-label {
	line-height: 1.2;
	text-align: center;
	/* Long values ("Cherry/Gunstock") wrap inside the tile instead of overflowing. */
	overflow-wrap: anywhere;
	max-width: 100%;
}

.renin-field select {
	padding: var(--renin-space-sm);
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
	font-size: 0.95rem;
	color: var(--renin-ink);
	background: #fff;
}

.renin-field select:focus {
	outline: 2px solid var(--renin-blue);
	outline-offset: 1px;
}
/* Custom size inputs */
.renin-custom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.4rem;
}

.renin-custom-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 0.45rem;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
	font-size: 16px;
}

/* Belt-and-braces: no number spinners even if the input type changes. */
.renin-custom-input::-webkit-outer-spin-button,
.renin-custom-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.renin-custom-ok {
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--renin-blue);
	background: var(--renin-blue);
	color: #fff;
	border-radius: var(--renin-radius-sm);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.renin-custom-ok:hover {
	background: var(--renin-blue-dark);
}
.renin-error {
	flex-basis: 100%;
	font-size: 0.8rem;
	font-weight: 600;
	color: #c0392b;
}

/* Bounds-error callout, speech-bubble style — client feedback. */
.renin-error--callout {
	font-size: 0.85rem;
	background: #fbeeec;
	border: 1px solid #e5b3ac;
	border-radius: var(--renin-radius-sm);
	padding: 0.55rem 0.7rem;
}

/* "Measure A" guidance box under the custom size inputs. */
.renin-measure {
	flex-basis: 100%;
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	background: #eef5fb;
	border: 1px solid #cfe0ef;
	border-radius: var(--renin-radius-sm);
	padding: 0.6rem 0.7rem;
	margin-top: 0.2rem;
}

.renin-measure img {
	flex: none;
	width: 62px;
	height: auto;
}

.renin-measure__text {
	font-size: 0.8rem;
	line-height: 1.35;
	color: var(--renin-ink);
}

.renin-measure__text strong {
	display: block;
	margin-bottom: 0.15rem;
}

.renin-measure__text p {
	margin: 0 0 0.35rem;
}

.renin-measure__text p:last-child {
	margin-bottom: 0;
}

.renin-custom-active {
	flex-basis: 100%;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--renin-blue);
}

/* ---- Price box ---- */
.renin-result {
	margin-top: 1.25rem;
}

.renin-price-box {
	border-top: 2px solid var(--renin-border);
	padding-top: var(--renin-space-md);
}

.renin-sku {
	margin: 0 0 var(--renin-space-sm);
	font-size: 0.9rem;
	color: var(--renin-muted);
}
.renin-price {
	margin: var(--renin-space-sm) 0 0;
	font-size: 1.9rem;
	font-weight: 800;
	color: var(--renin-navy);
}

/* ---- Quote button + form ---- */
.renin-quote { margin-top: 1rem; }
.renin-quote-btn, .renin-quote-send { background: var(--renin-navy); color: #fff; border: 0; border-radius: var(--renin-radius-sm); padding: 0.6rem 1rem; cursor: pointer; font-weight: 600; }
.renin-quote-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
/* Scoped to .renin-summary so it outranks the theme's input[type=email] styling. */
.renin-summary .renin-quote-email { padding: 0.55rem; border: 1px solid var(--renin-border); border-radius: var(--renin-radius-sm); background: #fff; color: var(--renin-ink); font-size: 16px; }
.renin-summary .renin-quote-email::placeholder { color: var(--renin-muted); opacity: 1; }
.renin-quote-ok { color: #1a7f37; font-weight: 600; }
.renin-quote-msg { font-size: 0.9rem; }

/* The one price a customer ever sees (US only) — the first line of the
   finalized summary, so it reads before the reference number. */
.renin-edlp {
	margin: 0 0 0.6rem;
	font-family: var(--renin-font-display);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--renin-copper);
}

/* Copy picker — store/admin only. Sits above the PDF and email actions. */
.renin-copies {
	display: flex;
	flex-wrap: wrap;
	gap: var(--renin-space-md);
	margin: 0.5rem 0 0.6rem;
}

.renin-copies__opt {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.9rem;
	cursor: pointer;
}

.renin-copies__opt input {
	margin: 0;
}

/* Shown only while neither box is ticked (toggled via [hidden] in JS), so the
   greyed-out Download/Send pair explains itself instead of looking broken. */
.renin-copies__hint {
	flex-basis: 100%;
	margin: 0;
	font-size: 0.82rem;
	color: var(--renin-muted);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.renin-hero--browse {
		padding: 2.5rem 1.25rem 2.75rem;
	}
}

@media (max-width: 640px) {
	.renin-layout {
		grid-template-columns: 1fr;
	}

	.renin-hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.renin-hero--browse {
		padding: 1.875rem 1rem 2.125rem;
	}
	/* Two cards per row on phones — auto-fill would drop to one full-width
	   column, where a full-bleed 2:3 thumb runs ~490px tall; capping the
	   height would just letterbox the door again. */
	.renin-models {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ---- Language toggle ---- */
.renin-lang { margin: 0 0 0.5rem; }
.renin-lang-link { display: inline-block; padding: 0.15rem 0.5rem; border: 1px solid var(--renin-border); border-radius: var(--renin-radius-sm); text-decoration: none; color: var(--renin-ink); font-size: 0.85rem; }
.renin-lang-link.is-active { background: var(--renin-navy); color: #fff; border-color: var(--renin-navy); }

/* ---- CE logo ---- */
.renin-logo { display: block; height: auto; max-width: 230px; margin-bottom: var(--renin-space-md); }

/* ============================================================
   3. CONFIGURATOR RESTYLE — Scandi / CE skin
   ============================================================ */

/* ---- Step line ---- */
/* ---- Option rows ---- */
.renin-optrow {
	border-top: 1px solid var(--renin-border);
	padding: var(--renin-space-md) 0;
}

.renin-optrow__label {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	color: var(--renin-muted);
	margin-bottom: 0.4rem;
}

/* ---- Step-by-step gating: options unlock top-down ---- */
.renin-optrow.is-locked {
	opacity: 0.45;
}

.renin-optrow.is-locked .renin-tile,
.renin-optrow.is-locked .renin-custom-input,
.renin-optrow.is-locked .renin-custom-ok {
	pointer-events: none;
	cursor: not-allowed;
}

/* Current step: copper label so the eye lands on what to pick next. */
.renin-optrow.is-active .renin-optrow__label {
	color: var(--renin-copper-deep);
	font-weight: 700;
}

/* ---- Swatch states (mirrors existing .renin-tile states with CE tokens) ---- */
.renin-swatch {
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
}

.renin-swatch.is-selected {
	border-color: var(--renin-copper);
	box-shadow: 0 0 0 2px var(--renin-copper);
}

.renin-swatch.is-unavailable {
	opacity: 0.4;
}

/* ---- Sticky summary bar ---- */
.renin-summary {
	position: sticky;
	bottom: 0;
	background: var(--renin-espresso);
	color: #fff;
	/* Stacked: build line + SKU above, finalize/PDF/email actions below. */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--renin-space-xs);
	padding: var(--renin-space-md) var(--renin-space-lg);
	border-radius: var(--renin-radius);
	margin-top: var(--renin-space-md);
	border-top: none;
}

.renin-summary .renin-sku {
	color: var(--renin-text-on-dark);
	margin: 0;
}

/* Brighter success green so it reads on the espresso summary box. */
.renin-summary .renin-quote-ok {
	color: #7bc67e;
}

/* Store/admin cost breakdown in the summary card — same shape as the reference
   lookup so the two screens read alike. Customers never receive this markup. */
.renin-cost {
	margin: 0.6rem 0 0;
	padding-top: 0.6rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 0.9rem;
}

.renin-cost__row {
	display: flex;
	justify-content: space-between;
	gap: var(--renin-space-sm);
	padding: 0.15rem 0;
}

.renin-cost__total {
	margin-top: 0.3rem;
	padding-top: 0.35rem;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	font-weight: 700;
	color: var(--renin-copper-light);
}

.renin-cost--por {
	font-style: italic;
}

/* ---- Finalize button — copper CTA ---- */
.renin-finalize {
	background: var(--renin-copper);
	color: #fff;
	border: 0;
}

.renin-finalize:hover {
	background: var(--renin-copper-deep);
}

/* Disabled quote buttons: greyed and inert. Without this a disabled finalize
   button was pixel-identical to a live one — it stopped responding while the
   request was in flight, and again once the quote was finalized, with nothing
   on screen saying so. :hover is neutralised too, or the copper CTA still lit
   up under the cursor after it stopped working. */
.renin-quote-btn:disabled,
.renin-quote-send:disabled,
.renin-finalize:disabled,
.renin-finalize:disabled:hover {
	background: var(--renin-muted);
	color: #fff;
	cursor: default;
	opacity: 0.75;
}

/* ---- Back link — brand copper ---- */
.renin-back a { color: var(--renin-copper); text-decoration: none; }
.renin-back a:hover { color: var(--renin-copper-deep); text-decoration: underline; }

/* ---- Sticky summary stacks on narrow screens ---- */
@media (max-width: 560px) {
	.renin-summary {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
		gap: var(--renin-space-sm);
	}
	.renin-summary .renin-finalize {
		width: 100%;
	}
}

/* ============================================================
   4. IMMERSIVE DARK CANVAS — contrast overrides
   ============================================================ */
/* Light content keeps its own dark text on its white/paper background. */
.renin-card,
.renin-panel,
.renin-preview {
	color: var(--renin-ink);
}

.renin-collection-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.renin-browse > .renin-lang .renin-lang-link {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
}
.renin-browse > .renin-lang .renin-lang-link.is-active {
	background: #fff;
	color: var(--renin-espresso);
	border-color: #fff;
}

/* Sticky summary lifts off the espresso canvas. */
.renin-summary {
	background: var(--renin-espresso-2);
}

/* Paint the theme's content container espresso (only where our app lives)
   so its padding isn't a stray white strip; drop the theme's 50px top
   padding so content doesn't start with a gap. */
.ct-container-full:has(.renin-browse),
.ct-container-full:has(.renin-configurator) {
	background: var(--renin-espresso);
	padding-top: 0;
}

/* On configurator/browse pages only: espresso page background + hide the theme footer bar. */
body:has(.renin-browse),
body:has(.renin-configurator) {
	background: var(--renin-espresso);
}
body:has(.renin-browse) #footer,
body:has(.renin-configurator) #footer {
	display: none;
}

/* Header account / login control (top-right of the dark header). */
.renin-account {
	display: block;
	text-align: right;
	margin-bottom: var(--renin-space-sm);
	font-size: 0.85rem;
}
.renin-account__name {
	color: var(--renin-text-on-dark);
	margin-right: 0.6rem;
}
.renin-account__link {
	color: var(--renin-copper);
	text-decoration: none;
	font-weight: 600;
}
.renin-account__link:hover {
	color: #fff;
	text-decoration: underline;
}

/* Login dropdown panel (anchored under the header "Log in" link). */
.renin-account { position: relative; }
.renin-login {
	position: absolute;
	right: 0;
	top: 100%;
	z-index: 50;
	/* Wider, but never wider than the viewport on small screens. */
	width: min(320px, calc(100vw - 2rem));
	text-align: left;
	background: #fff;
	color: var(--renin-ink);
	border-radius: var(--renin-radius);
	box-shadow: var(--renin-shadow);
	padding: var(--renin-space-md);
	display: flex;
	flex-direction: column;
	gap: var(--renin-space-sm);
}
.renin-login[hidden] { display: none; }
.renin-login__field {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--renin-ink);
}
.renin-login__field input {
	padding: 0.55rem;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
	font-size: 16px; /* >=16px so iOS doesn't zoom on focus. */
	font-weight: 400;
}
.renin-login__remember {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.8rem;
	font-weight: 400;
	color: var(--renin-ink);
}
.renin-login__submit {
	background: var(--renin-copper);
	color: #fff;
	border: 0;
	border-radius: var(--renin-radius-sm);
	padding: 0.55rem;
	font-weight: 600;
	cursor: pointer;
}
.renin-login__submit:hover { background: var(--renin-copper-deep); }
.renin-login__submit:disabled { opacity: 0.6; cursor: default; }
.renin-login__msg:not(:empty) {
	font-size: 0.8rem;
	color: #a13b2f;
	background: #fbeeec;
	border-radius: var(--renin-radius-sm);
	padding: 0.4rem 0.5rem;
}

/* ============================================================
   5. FINALIZE FLOW (panels/track at the end + summary card)
   ============================================================ */
.renin-finalize-sec {
	border-top: 2px solid var(--renin-border);
	margin-top: var(--renin-space-lg);
	padding-top: var(--renin-space-md);
}

.renin-finalize-sec__title {
	margin: 0 0 var(--renin-space-sm);
	font-family: var(--renin-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--renin-copper-deep);
}

.renin-track-slot .renin-tile img {
	height: 44px;
	object-fit: contain;
	border: 0;
}

/* Summary of your choices — card under the door preview. */
.renin-choices {
	/* .renin-preview is a centred flex box — take the full row beneath the door. */
	flex-basis: 100%;
	width: 100%;
	background: #fff;
	border-radius: var(--renin-radius);
	box-shadow: var(--renin-shadow);
	padding: var(--renin-space-md);
	margin-top: var(--renin-space-md);
	color: var(--renin-ink);
	text-align: left;
}

.renin-choices__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: var(--renin-space-sm);
	margin-bottom: var(--renin-space-xs);
}

.renin-choices__head h3 {
	margin: 0;
	font-family: var(--renin-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--renin-muted);
}

.renin-choices__reset {
	background: none;
	border: 0;
	padding: 0;
	font-size: 0.78rem;
	color: var(--renin-copper-deep);
	text-decoration: underline;
	cursor: pointer;
}

.renin-choices__row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: var(--renin-space-sm);
	padding: 0.32rem 0;
	border-bottom: 1px solid #f0ede9;
	font-size: 0.84rem;
}

.renin-choices__row:last-of-type {
	border-bottom: 0;
}

.renin-choices__row b {
	font-weight: 600;
}

.renin-choices__val {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	text-align: right;
}

.renin-choices__val img {
	width: 30px;
	height: 30px;
	object-fit: cover;
	border: 1px solid var(--renin-border);
	border-radius: 3px;
}

.renin-choices__finalize {
	display: block;
	width: 100%;
	margin-top: var(--renin-space-md);
}

/* Dark-bar readable build line. */
.renin-quote-title {
	margin: 0 0 0.15rem;
	color: #fff;
	font-weight: 600;
	font-size: 0.95rem;
}

/* Desktop: the door preview + summary card follow the scroll (sticky left column).
   Capped at viewport height with internal scroll when door + summary exceed it. */
@media (min-width: 861px) {
	.renin-preview {
		position: sticky;
		top: var(--renin-space-md);
		max-height: calc(100vh - 2rem);
		overflow-x: hidden;
		overflow-y: auto;
		/* Reserve the scrollbar channel permanently. Without it, a store clicking
		   "Show Price" adds enough height to trip the overflow, the scrollbar
		   appears, and everything inside the column jumps ~15px narrower — the
		   content visibly reflows on a button press (client report 2026-08-24).
		   The bar still appears when the door plus summary genuinely exceed the
		   viewport, which is the point of the cap; it just no longer steals width
		   when it does. */
		scrollbar-gutter: stable;
	}
}

/* ============================================================
   6. STORE REFERENCE LOOKUP
   ============================================================ */
.renin-store__title {
	margin: var(--renin-space-md) 0 0;
	color: #fff;
	font-family: var(--renin-font-display);
	font-weight: 300;
	font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.renin-store__body {
	max-width: 1290px;
	margin-inline: auto;
	padding-inline: clamp(1.5rem, 5vw, 4rem);
	padding-bottom: var(--renin-space-xl);
}

.renin-store__card {
	background: #fff;
	color: var(--renin-ink);
	border-radius: var(--renin-radius);
	box-shadow: var(--renin-shadow);
	padding: var(--renin-space-md) var(--renin-space-lg);
	margin-bottom: var(--renin-space-md);
}

.renin-store__form {
	display: flex;
	align-items: center;
	gap: var(--renin-space-sm);
	flex-wrap: wrap;
}

.renin-store__form label {
	font-weight: 600;
}

.renin-store__form input[type="text"] {
	flex: 1 1 160px;
	min-width: 0;
	padding: 0.55rem;
	border: 1px solid var(--renin-border);
	border-radius: var(--renin-radius-sm);
	font-size: 16px;
}

.renin-store__form button {
	background: var(--renin-copper);
	color: #fff;
	border: 0;
	border-radius: var(--renin-radius-sm);
	padding: 0.6rem 1.1rem;
	font-weight: 600;
	cursor: pointer;
}

.renin-store__form button:hover {
	background: var(--renin-copper-deep);
}

.renin-store__meta {
	display: flex;
	justify-content: space-between;
	gap: var(--renin-space-sm);
	margin-bottom: var(--renin-space-xs);
}
.renin-store__cols {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) 1.4fr;
	gap: var(--renin-space-lg);
	align-items: start;
}

@media (max-width: 700px) {
	.renin-store__cols {
		grid-template-columns: 1fr;
	}
}

.renin-store__door .renin-door {
	display: block;
	max-width: 320px;
}

.renin-store__summary h3 {
	margin: 0 0 var(--renin-space-xs);
	font-family: var(--renin-font-body);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--renin-muted);
}

.renin-store__row {
	display: flex;
	justify-content: space-between;
	gap: var(--renin-space-sm);
	padding: 0.32rem 0;
	border-bottom: 1px solid #f0ede9;
	font-size: 0.88rem;
}

.renin-store__row b {
	font-weight: 600;
}

.renin-store__msrp {
	border-bottom: 0;
	font-size: 1rem;
}

.renin-store__msrp span {
	font-weight: 700;
	color: var(--renin-copper-deep);
}

.renin-store__print {
	margin-top: var(--renin-space-md);
	background: var(--renin-espresso);
	color: #fff;
	border: 0;
	border-radius: var(--renin-radius-sm);
	padding: 0.6rem 1.4rem;
	font-weight: 600;
	cursor: pointer;
}

/* Print: just the door result — hide site chrome, header, form. */
@media print {
	body * {
		visibility: hidden;
	}
	.renin-store__result,
	.renin-store__result * {
		visibility: visible;
	}
	.renin-store__result {
		position: absolute;
		inset: 0;
		box-shadow: none;
	}
	.renin-store__print {
		display: none;
	}
}

/* Store page: hide the theme header + page-title hero (kiosk look, matching the
   configurator front page). Scoped via :has so only our pages are affected. */
body:has(.renin-store) .ct-header,
body:has(.renin-store) #header,
body:has(.renin-store) .hero-section,
body:has(.renin-store) .entry-header {
	display: none;
}

.renin-account__store {
	margin-right: 0.9rem;
}

/* CE catalogue "eyebrow" treatment for small utility text: uppercase, letter-spaced,
   copper links on espresso (matches the branding PDF's functional labels). */
.renin-account,
.renin-back a,
.renin-store__title + * {
	font-family: var(--renin-font-body);
}

.renin-account__link,
.renin-account__name,
.renin-back a {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.72rem;
	font-weight: 600;
	text-decoration: none;
}

/* "Start again" sits top-right of the options panel, as a button like the
   custom-size "Ok". */
.renin-panel__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.25rem;
}

.renin-panel__model {
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--renin-ink);
}

.renin-restart {
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--renin-blue);
	background: var(--renin-blue);
	color: #fff;
	border-radius: var(--renin-radius-sm);
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
	font-family: var(--renin-font-body);
}

.renin-restart:hover {
	background: var(--renin-blue-dark);
}

.renin-account__name {
	color: var(--renin-text-on-dark);
	font-weight: 500;
}

.renin-back a {
	color: var(--renin-copper);
}

.renin-back a:hover {
	color: #fff;
}

/* Language toggle keeps its pills but adopts the same lettering. */
.renin-lang-link {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	font-weight: 600;
}

/* Branded 404. The espresso canvas comes from the body:has(.renin-configurator)
   rule above; min-height just makes this section fill the viewport. */
.renin-404 {
	min-height: 100vh;
}

.renin-404__body {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(3rem, 12vh, 7rem) 1.5rem;
	text-align: center;
	color: var(--renin-text-on-dark);
}

.renin-404__title {
	font-family: var(--renin-font-display);
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	margin: 0 0 0.75rem;
	color: #fff;
}

.renin-404__text {
	margin: 0 0 2rem;
	color: var(--renin-text-on-dark);
}

.renin-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin: 0;
}

.renin-404__cta {
	display: inline-block;
	padding: 0.7rem 1.4rem;
	border-radius: var(--renin-radius);
	background: var(--renin-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

/* ============================================================
   7. STANDALONE (INSTALLED) SAFE AREAS
   ============================================================ */
/* Renin_Pwa::head() keeps apple-mobile-web-app-status-bar-style at
 * black-translucent on purpose (full-bleed espresso look), and Blocksy
 * already emits viewport-fit=cover, so iOS never insets the viewport for us.
 * env(safe-area-inset-*) resolves to 0 in a normal browser and on browsers
 * without support, so these rules change nothing outside an installed app.
 *
 * .renin-app-page hides the theme's #header (see the child theme's
 * style.css), so .renin-hero--browse is the topmost element on the model
 * browser and .renin-confighead is the topmost element on the configurator
 * and the branded 404. The store lookup page is not an .renin-app-page (it
 * is a different shortcode) but hides #header itself further up in this
 * file, so .renin-confighead is topmost there too. Each rule folds in the
 * padding-top that selector already carries at that breakpoint instead of
 * adding to it, so nothing doubles.
 */
.renin-app-page .renin-hero--browse,
.renin-app-page .renin-confighead,
.renin-store .renin-confighead {
	padding-top: calc(var(--renin-space-lg) + env(safe-area-inset-top));
}

@media (max-width: 860px) {
	.renin-app-page .renin-hero--browse {
		padding-top: calc(2.5rem + env(safe-area-inset-top));
	}
}

@media (max-width: 640px) {
	.renin-app-page .renin-hero--browse {
		padding-top: calc(1.875rem + env(safe-area-inset-top));
	}
}

/* .renin-summary carries the Finalize / Download PDF / Email me a copy
 * controls and sticks to the viewport bottom; in standalone there is no
 * browser toolbar to sit above, so without this the home indicator's
 * edge-protection can swallow the first tap on Finalize.
 */
.renin-summary {
	padding-bottom: calc(var(--renin-space-md) + env(safe-area-inset-bottom));
}

/* ============================================================
   8. INSTALL BUTTON + iOS INSTRUCTION SHEET
   ============================================================ */
/* Both start with [hidden] and are revealed by configurator.js. The explicit
   display:none rules are load-bearing: a display:flex declaration outranks the
   browser's built-in [hidden] styling, which is exactly how the lightbox stayed
   painted while its hidden attribute read true. */
.renin-install[hidden],
.renin-install-sheet[hidden] {
	display: none;
}

/* Sits under the account link in the top-right corner, deliberately small: it is
   an offer, not a call to action, and must not compete with the door cards. */
.renin-install {
	display: flex;
	justify-content: flex-end;
	/* Deliberate gap under the login link: they sit in the same corner, and 12px
	   was close enough to catch thumbs aiming for Log in. Padding rather than
	   margin because an adjacent margin here collapses against .renin-account. */
	margin: 0 0 0;
	padding-top: 0.85rem;
}

.renin-install__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	/* Narrow horizontally so it stays a quiet offer, but taller than the text
	   alone needs, so it reads as a button and is comfortable to tap. */
	padding: 0.48rem 0.65rem;
	border: 0;
	border-radius: 999px;
	background: var(--renin-copper);
	color: #fff;
	font-family: inherit;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}

.renin-install__btn svg { width: 11px; height: 11px; }

/* The button is a block in normal flow, so it would otherwise shove the logo
   down by its full height. Taking it out of flow is not an option: the logo is
   centred and the button is right-aligned, so on a phone — the only place the
   button ever appears — they would overlap, especially in French where the
   label is much wider. Instead, reclaim the space from the header's own
   padding, but only while the button is actually visible. */
.renin-hero--browse:has(.renin-install:not([hidden])) {
	padding-block-start: var(--renin-space-sm);
}

.renin-hero--browse:has(.renin-install:not([hidden])) .renin-hero-text {
	margin-top: calc(-1 * var(--renin-space-lg));
}

.renin-install__btn:hover { background: var(--renin-copper-deep); }

.renin-install__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.renin-install-sheet {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 1000;
	align-items: flex-end;
	justify-content: center;
}

.renin-install-sheet__scrim {
	position: absolute;
	inset: 0;
	background: rgba(12, 10, 9, 0.62);
}

.renin-install-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: var(--renin-paper);
	color: var(--renin-ink);
	border-radius: var(--renin-radius) var(--renin-radius) 0 0;
	padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.renin-install-sheet__title {
	font-family: var(--renin-font-display);
	font-size: 1.05rem;
	margin: 0;
}

.renin-install-sheet__sub {
	margin: 0;
	font-size: 0.85rem;
	color: var(--renin-muted);
}

.renin-install-sheet__steps {
	margin: 0;
	padding-left: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.9rem;
}

.renin-install-sheet__dismiss {
	align-self: center;
	margin-top: 0.25rem;
	background: none;
	border: 0;
	color: var(--renin-muted);
	font-family: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
	padding: 0.35rem;
}

.renin-install-sheet__dismiss:focus-visible {
	outline: 2px solid var(--renin-copper);
	outline-offset: 2px;
	border-radius: var(--renin-radius-sm);
}

/* ---- Store price toggle ---- */
/* Store viewers keep cost off-screen until deliberately revealed (a customer
   may be looking at the screen with them). The JS re-applies the state on
   every re-render, so a reveal survives selection changes. */
.renin-cost--masked {
	display: none;
}

.renin-cost-toggle {
	display: block;
	margin: 0.6rem 0 0;
	padding: 0.4rem 0.9rem;
	background: transparent;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: var(--renin-radius-sm);
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
}

.renin-cost-toggle:hover {
	background: rgba(255, 255, 255, 0.12);
}
