/**
 * 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-card  ·  element .renin-card__body  ·  modifier .renin-hero--slim
 *
 * 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);
}

/* Configurator: full-width espresso canvas (content re-centres to 1290 below).
   !important defeats the theme/WP layout rule's !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-hero-title__tag { color: #fff; }
.renin-confighead .renin-hero-sub { color: var(--renin-text-on-dark); }
.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;
}

/* Browse: full-width espresso canvas (content re-centres to 1290 below).
   !important defeats the theme/WP layout rule's !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-hero-title, .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);
}

.renin-hero--slim {
	padding: var(--renin-space-md) var(--renin-space-lg);
}

.renin-hero-title {
	margin: 0;
	color: #fff;
	font-size: 1.6rem;
	line-height: 1.2;
}

/* Browse hero headline: large Poppins display type, white. */
.renin-hero--browse .renin-hero-title {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	line-height: 1.1;
	color: #fff;
}

.renin-hero-sub {
	margin: var(--renin-space-xs) 0 0;
	color: rgba(255, 255, 255, 0.82);
	font-size: 0.95rem;
}

/* Browse hero sub: light text on dark. */
.renin-hero--browse .renin-hero-sub {
	color: var(--renin-text-on-dark);
	font-size: 1.05rem;
	max-width: 50ch;
}

/* ---- Eyebrow label ---- */
.renin-eyebrow {
	display: inline-block;
	font-family: var(--renin-font-body);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--renin-copper);
	margin: var(--renin-space-md) 0 var(--renin-space-xs);
}

/* ---- Step indicator ---- */
.renin-steps {
	display: flex;
	gap: var(--renin-space-lg);
	list-style: none;
	padding: 0;
	margin: var(--renin-space-lg) 0 0;
	counter-reset: step;
	flex-wrap: wrap;
}

.renin-step {
	font-size: 0.85rem;
	color: var(--renin-muted);
	counter-increment: step;
}

.renin-step::before {
	content: counter(step) ". ";
	color: var(--renin-copper);
}

.renin-step.is-active {
	color: var(--renin-ink);
	font-weight: 600;
}

/* Browse hero steps: white/translucent on espresso. */
.renin-hero--browse .renin-step {
	color: rgba(255, 255, 255, 0.6);
}

.renin-hero--browse .renin-step.is-active {
	color: #fff;
}

.renin-badge {
	flex: none;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}

/* Browse badge: translucent white on espresso. */
.renin-hero--browse .renin-badge {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.25);
}

/* ---- Collection tabs ---- */
.renin-collection-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 var(--renin-space-xl);
}

.renin-collection-tab {
	display: flex;
	flex-direction: column;
	width: 200px;
	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);
}

.renin-tab-thumb {
	height: 130px;
	overflow: hidden;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.renin-tab-thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

.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);
	overflow: visible;
	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);
}

.renin-thumb {
	height: 240px;
	border-bottom: 1px solid var(--renin-border);
}

.renin-thumb-img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
}

/* Hover zoom: pop the full model image larger over the grid (no cropping).
   Applies to model cards only — not the collection tabs. */
.renin-thumb-img {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.renin-card:hover .renin-thumb {
	overflow: visible;
}

.renin-card:hover .renin-thumb-img {
	transform: translate(52px, -48px) scale(2.4);
	position: relative;
	z-index: 30;
	background: #fff;
	box-shadow: 0 12px 34px rgba(38, 35, 32, 0.28);
}

/* Layered door: panel (insert) behind, frame (transparent centre) on top.
   Both source images 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-thumb-text {
	font-size: 0.8rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.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;
}

.renin-model-count {
	margin-top: auto;
	font-size: 0.78rem;
	color: var(--renin-blue);
	font-weight: 600;
}

/* ---- Configurator layout ---- */
.renin-back {
	font-size: 0.9rem;
	margin: 0 0 var(--renin-space-sm);
}

.renin-layout {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) 1.4fr;
	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;
}

.renin-auto {
	font-weight: 600;
	color: var(--renin-ink);
}

/* 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-hint {
	flex-basis: 100%;
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--renin-muted);
}

.renin-error {
	flex-basis: 100%;
	font-size: 0.8rem;
	font-weight: 600;
	color: #c0392b;
}

/* Prominent bounds-error callout (speech-bubble style, per 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-kit {
	display: block;
	margin: var(--renin-space-sm) 0;
	font-size: 0.9rem;
}

.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; }

/* ---- 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;
	}

	.renin-steps {
		gap: var(--renin-space-md);
	}

	/* Collection cards: fill the row instead of hugging the left at a fixed width. */
	.renin-collection-tab {
		width: 100%;
	}

	.renin-tab-thumb {
		height: 170px;
	}
}

/* ---- 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 ---- */
.renin-stepline {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.72rem;
	color: var(--renin-copper);
	margin: 0 0 var(--renin-space-sm);
}

/* ---- Two-tone config hero ---- */
.renin-hero--config {
	background: transparent;
	color: var(--renin-ink);
	padding: 0;
	margin: 0 0 var(--renin-space-md);
	display: block;
}

.renin-hero--config .renin-hero-title {
	color: var(--renin-ink);
	font-size: clamp( 1.4rem, 3vw, 2rem );
	margin: 0;
}

.renin-hero-title__name {
	color: var(--renin-copper);
	font-family: var(--renin-font-display);
	font-weight: 300;
}

.renin-hero-title__tag {
	color: var(--renin-ink);
	font-family: var(--renin-font-display);
	font-weight: 300;
	margin-left: 0.5rem;
}

.renin-hero--config .renin-hero-sub {
	color: var(--renin-muted);
	font-size: 0.95rem;
	margin: var(--renin-space-xs) 0 0;
}

/* ---- 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;
}

.renin-summary__price {
	color: var(--renin-copper-light);
	font-family: var(--renin-font-display);
	font-weight: 600;
	margin: var(--renin-space-xs) 0 0;
}

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

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

/* ---- 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);
}

/* Collection section title reads on the espresso canvas. */
.renin-collection-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

/* Browse EN/FR toggle on the dark canvas. */
.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
   top/bottom padding isn't a stray white strip above/below the canvas; drop the
   theme's 50px top padding so the content doesn't start with a big 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;
	}
}

/* ============================================================
   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__keep {
	color: var(--renin-muted);
	font-size: 0.85rem;
	margin: 0 0 var(--renin-space-md);
}

.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;
}
