/*
 * RaffMaster 7.9 - Refined component finish.
 *
 * Loaded after frontend.css and scoped to body.rm-finish-refined, so the
 * "Classic" finish (Visual system > Component finish) is byte-for-byte the
 * 7.8 look. Everything here reads brand tokens (--rm-accent, --rm-accent-2,
 * --rm-surface, --rm-fg, --rm-font-display, radii, state colours), so every
 * preset and every card skin inherits the same hierarchy in its own paint.
 *
 * Contents
 *  1. Finish tokens
 *  2. Competition card
 *  3. Card skin harmonisers
 *  4. Section headings + view-all
 *  5. Rails
 *  6. Featured hero
 *  7. Product summary polish
 *  8. Mobile
 */

/* 1. Finish tokens ------------------------------------------------ */
body.rm-finish-refined {
	--rmr-ink: var(--rm-fg);
	--rmr-muted: var(--rm-fg-muted);
	--rmr-hair: color-mix(in srgb, var(--rm-fg) 10%, transparent);
	--rmr-chip-bg: var(--rm-accent);
	--rmr-chip-fg: var(--rm-on-accent);
	--rmr-bar-track: color-mix(in srgb, var(--rm-fg) 10%, transparent);
	--rmr-bar-fill: linear-gradient(90deg, var(--rm-accent), color-mix(in srgb, var(--rm-accent) 45%, var(--rm-accent-2)));
	--rmr-today: var(--rm-danger);
	--rmr-today-fg: #fff;
	--rmr-tomorrow: var(--rm-warning);
	--rmr-tomorrow-fg: #1a1203;
	--rmr-week: var(--rm-accent);
	--rmr-week-fg: var(--rm-on-accent);
	--rmr-title-size: 18px;
	--rmr-pad: 16px;
	--rmr-badge-radius: max(8px, min(var(--rm-radius-button, 10px), 14px));
}
:root[data-rm-mode="light"] body.rm-finish-refined {
	--rmr-hair: color-mix(in srgb, var(--rm-fg) 9%, transparent);
	--rmr-bar-track: color-mix(in srgb, var(--rm-fg) 8%, transparent);
	--rmr-tomorrow: #f59e0b;
}

/* 2. Competition card -------------------------------------------- */
body.rm-finish-refined .rm-card--refined {
	display: flex;
	flex-direction: column;
	isolation: isolate;
}
body.rm-finish-refined .rm-card--refined > .rm-card__link {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	color: inherit;
	text-decoration: none;
}

/* Closing strip */
body.rm-finish-refined .rm-card__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 7px 12px;
	font-family: var(--rm-font-display);
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	background: color-mix(in srgb, var(--rm-fg) 7%, var(--rm-surface));
	color: var(--rmr-ink);
	border-bottom: 1px solid var(--rmr-hair);
	position: relative;
	z-index: 2;
}
body.rm-finish-refined .rm-card__status-time {
	font-weight: 600;
	letter-spacing: .04em;
	opacity: .82;
	padding-left: 10px;
	border-left: 1px solid currentColor;
	text-transform: lowercase;
}
body.rm-finish-refined .rm-card__status--today    { background: var(--rmr-today); color: var(--rmr-today-fg); border-color: transparent; }
body.rm-finish-refined .rm-card__status--tomorrow { background: var(--rmr-tomorrow); color: var(--rmr-tomorrow-fg); border-color: transparent; }
body.rm-finish-refined .rm-card__status--week     { background: var(--rmr-week); color: var(--rmr-week-fg); border-color: transparent; }
body.rm-finish-refined .rm-card__status--closed   { opacity: .7; }
body.rm-finish-refined .rm-card__status--today .rm-card__status-label::before {
	content: "";
	display: inline-block;
	width: 7px; height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: currentColor;
	vertical-align: 1px;
	animation: rmr-pulse 1.4s ease-in-out infinite;
}
@keyframes rmr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Media: chips top-left, countdown pill bottom-left */
body.rm-finish-refined .rm-card--refined .rm-card__media { position: relative; }
body.rm-finish-refined .rm-card--refined .rm-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
body.rm-finish-refined .rm-card__chips {
	position: absolute;
	top: 10px; left: 10px;
	display: flex; flex-wrap: wrap; gap: 6px;
	max-width: calc(100% - 20px);
	z-index: 3;
	pointer-events: none;
}
body.rm-finish-refined .rm-card__chip {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: var(--rm-radius-sm, 6px);
	background: var(--rmr-chip-bg);
	color: var(--rmr-chip-fg);
	font-family: var(--rm-font-display);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	line-height: 1.2;
	text-transform: uppercase;
	box-shadow: 0 4px 12px -4px rgba(0,0,0,.45);
}
body.rm-finish-refined .rm-card__timer.rm-card__timer--media {
	position: absolute !important;
	left: 10px; bottom: 10px;
	top: auto; right: auto;
	z-index: 3;
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	width: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 5px 11px 5px 9px !important;
	border-radius: 999px !important;
	border: 1px solid rgba(255,255,255,.14) !important;
	background: rgba(8,10,16,.72) !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff !important;
	box-shadow: 0 6px 18px -8px rgba(0,0,0,.6) !important;
	font-family: var(--rm-font-display);
}
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-tag {
	display: inline-flex !important;
	width: 7px; height: 7px;
	padding: 0 !important; margin: 0 !important;
	border-radius: 50%;
	background: var(--rm-accent) !important;
	font-size: 0 !important;
	overflow: hidden;
	flex: 0 0 auto;
	border: 0 !important;
}
body.rm-finish-refined .rm-card__timer--media.rm-ends-today .rm-card__timer-tag { background: var(--rm-danger) !important; animation: rmr-pulse 1.4s ease-in-out infinite; }
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-digits {
	display: inline-flex !important;
	flex-wrap: nowrap !important;
	justify-content: flex-start !important;
	width: auto !important;
	gap: 6px !important;
	margin: 0 !important;
}
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-unit {
	display: inline-flex !important;
	align-items: baseline;
	gap: 1px;
	min-width: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
}
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-unit b {
	font-size: 12.5px !important;
	font-weight: 800 !important;
	color: #fff !important;
	font-variant-numeric: tabular-nums;
	line-height: 1 !important;
	background: none !important;
	padding: 0 !important;
	min-width: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	display: inline !important;
	-webkit-text-fill-color: currentColor;
}
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-unit i {
	font-style: normal;
	font-size: 9.5px !important;
	font-weight: 600;
	color: rgba(255,255,255,.62) !important;
	text-transform: lowercase;
}
/* Hide a zero-day unit once under a day remains: "02h 58m 57s" reads faster. */
body.rm-finish-refined .rm-card__timer--media.rm-ends-today .rm-card__timer-unit:first-child { display: none !important; }

/* Corner ribbon becomes a matching chip, top-right */
body.rm-finish-refined .rm-card--refined .rm-card__corner {
	top: 10px !important;
	right: 10px !important;
	left: auto !important;
	padding: 4px 9px !important;
	border-radius: var(--rm-radius-sm, 6px) !important;
	font-family: var(--rm-font-display);
	font-size: 10px !important;
	letter-spacing: .08em !important;
	line-height: 1.2 !important;
	z-index: 3;
}
body.rm-finish-refined .rm-card--refined .rm-card__corner--instant { background: #facc15 !important; color: #1a1203 !important; }
body.rm-finish-refined .rm-card--refined .rm-card__corner--sale { background: var(--rm-danger) !important; color: #fff !important; }
body.rm-finish-refined.rm-corners-sharp .rm-card--refined .rm-card__corner { border-radius: 0 !important; }
body.rm-finish-refined.rm-corners-pill .rm-card--refined .rm-card__corner { border-radius: 999px !important; padding: 4px 10px !important; }
/* Instant-win count pill under the image: same yellow language */
body.rm-finish-refined .rm-card--refined .rm-card__pill--instant {
	background: color-mix(in srgb, #facc15 16%, transparent) !important;
	color: color-mix(in srgb, #facc15 85%, var(--rm-fg)) !important;
	border: 1px solid color-mix(in srgb, #facc15 45%, transparent) !important;
}
:root[data-rm-mode="light"] body.rm-finish-refined .rm-card--refined .rm-card__pill--instant { color: #854d0e !important; background: #fef9c3 !important; border-color: #fde047 !important; }

/* Rail: draw type + entries left */
body.rm-finish-refined .rm-card--refined .rm-card__rail {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px var(--rmr-pad) 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: none !important;
	font-family: var(--rm-font-body);
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--rmr-muted);
	position: static !important;
	inset: auto !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
body.rm-finish-refined .rm-card--refined .rm-card__rail-draw::before,
body.rm-finish-refined .rm-card--refined .rm-card__rail::before,
body.rm-finish-refined .rm-card--refined .rm-card__rail::after { content: none !important; }
body.rm-finish-refined .rm-card--refined .rm-card__rail-draw { display: inline-flex; align-items: center; gap: 6px; color: var(--rmr-muted); }
body.rm-finish-refined .rm-card--refined .rm-card__rail-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rm-accent) 22%, transparent); }
body.rm-finish-refined .rm-card--refined .rm-card__rail-left { color: var(--rmr-ink); opacity: .82; white-space: nowrap; }
body.rm-finish-refined .rm-card--refined .rm-card__rail-cat { color: var(--rm-accent); }

/* Body */
body.rm-finish-refined .rm-card--refined .rm-card__body {
	display: flex !important;
	flex-direction: column;
	gap: 10px !important;
	padding: 10px var(--rmr-pad) 14px !important;
	flex: 1 1 auto;
}
body.rm-finish-refined .rm-card--refined .rm-card__pills { margin: 0 !important; }
body.rm-finish-refined .rm-card--refined .rm-card__title {
	margin: 0 !important;
	font-family: var(--rm-font-display) !important;
	font-size: var(--rmr-title-size) !important;
	font-weight: 800 !important;
	line-height: 1.15 !important;
	letter-spacing: -.01em;
	color: var(--rmr-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
body.rm-finish-refined .rm-card--refined .rm-card__sub {
	margin: -4px 0 0 !important;
	font-size: 13px !important;
	line-height: 1.45 !important;
	color: var(--rmr-muted) !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Progress + deal row */
body.rm-finish-refined .rm-card__gauge--refined { margin-top: auto !important; padding: 0 !important; }
body.rm-finish-refined .rm-card__gauge--refined .rm-card__gauge-bar {
	height: 6px !important;
	border-radius: 999px !important;
	background: var(--rmr-bar-track) !important;
	overflow: visible;
	position: relative;
	border: 0 !important;
	box-shadow: none !important;
}
body.rm-finish-refined .rm-card__gauge--refined .rm-card__gauge-bar > span {
	display: block;
	height: 100% !important;
	border-radius: inherit !important;
	background: var(--rmr-bar-fill) !important;
	box-shadow: 0 0 12px -2px color-mix(in srgb, var(--rm-accent) 55%, transparent);
	animation: none !important;
}
body.rm-finish-refined .rm-card__deal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 40px;
}
body.rm-finish-refined .rm-card__gauge--refined + .rm-card__deal { margin-top: -2px; }
body.rm-finish-refined .rm-card__body > .rm-card__deal:first-of-type:not(:only-child) { margin-top: auto; }
body.rm-finish-refined .rm-card__deal-sold {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 2px 6px;
	font-size: 12px;
	color: var(--rmr-muted);
	font-variant-numeric: tabular-nums;
}
body.rm-finish-refined .rm-card__deal-pct { color: var(--rm-accent); font-weight: 800; }
body.rm-finish-refined .rm-card__price-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin-left: auto;
	padding: 6px 12px;
	border-radius: var(--rmr-badge-radius);
	border: 1.5px solid color-mix(in srgb, var(--rm-fg) 28%, transparent);
	background: color-mix(in srgb, var(--rm-fg) 4%, transparent);
	font-family: var(--rm-font-display);
	line-height: 1;
	white-space: nowrap;
}
body.rm-finish-refined .rm-card__price-badge .rm-card__price-now {
	font-size: 19px !important;
	font-weight: 800 !important;
	color: var(--rmr-ink) !important;
	letter-spacing: -.01em;
}
body.rm-finish-refined .rm-card__price-badge .rm-card__price-was { font-size: 12px; color: var(--rmr-muted); }
body.rm-finish-refined .rm-card--price-highlight .rm-card__price-badge { border-color: color-mix(in srgb, var(--rm-accent) 70%, transparent); background: color-mix(in srgb, var(--rm-accent) 10%, transparent); }
body.rm-finish-refined .rm-card--price-highlight .rm-card__price-badge .rm-card__price-now { color: var(--rm-accent) !important; }

/* Purchase row */
body.rm-finish-refined .rm-card--refined .rm-card__qa {
	display: grid !important;
	grid-template-columns: minmax(96px, 2fr) 3fr;
	gap: 8px !important;
	padding: 0 var(--rmr-pad) var(--rmr-pad) !important;
	margin: 0 !important;
}
body.rm-finish-refined .rm-card--refined .rm-card__qa-step { min-height: 44px; }
body.rm-finish-refined .rm-card--refined .rm-card__qa-add {
	min-height: 44px;
	font-family: var(--rm-font-display);
	font-weight: 800 !important;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--rm-accent) 80%, transparent);
}
body.rm-finish-refined .rm-card--refined .rm-card__quickbuy { padding: 0 var(--rmr-pad) var(--rmr-pad) !important; margin: 0 !important; }

/* Equal-height cards in rails and grids: purchase rows line up. */
body.rm-finish-refined .rm-rail__item { display: flex; }
body.rm-finish-refined .rm-rail__item > .rm-card--refined { flex: 1 1 auto; width: 100%; }
body.rm-finish-refined .rm-grid > .rm-card--refined { height: 100%; }

/* Finished */
body.rm-finish-refined .rm-card--refined.rm-card--finished .rm-card__media img { filter: grayscale(.55) brightness(.8); }

/* Hover: lift the image a touch, keep the frame still */
@media (hover: hover) {
	body.rm-finish-refined .rm-card--refined .rm-card__media img { transition: transform .6s var(--rm-ease-out); }
	body.rm-finish-refined .rm-card--refined:hover .rm-card__media img { transform: scale(1.04); }
}

/* 3. Card skin harmonisers --------------------------------------- */
/* Poster: refined keeps the rail under the image (chips + countdown own the
   image); poster keeps its taller artwork and heavier type. */
body.rm-finish-refined.rm-card-style-poster .rm-card--refined { --rmr-title-size: 19px; }
body.rm-finish-refined.rm-card-style-poster .rm-card--refined .rm-card__title { text-transform: uppercase; letter-spacing: .005em; }
/* Ticket stub keeps its perforation; status strip sits above it. */
body.rm-finish-refined.rm-card-style-ticket .rm-card--refined .rm-card__status { border-radius: 0; }
/* Minimal: quieter strip, no fill. */
body.rm-finish-refined.rm-card-style-minimal .rm-card--refined .rm-card__status { background: transparent; color: var(--rmr-ink); border-bottom: 1px solid var(--rmr-hair); }
body.rm-finish-refined.rm-card-style-minimal .rm-card--refined .rm-card__status--today { color: var(--rm-danger); }
body.rm-finish-refined.rm-card-style-minimal .rm-card--refined .rm-card__status--tomorrow { color: var(--rm-accent); }
body.rm-finish-refined.rm-card-style-minimal .rm-card--refined .rm-card__price-badge { border-width: 0 0 1.5px; border-radius: 0; background: none; padding: 4px 0; }
/* Console: mono digits everywhere. */
body.rm-finish-refined.rm-card-style-console .rm-card--refined .rm-card__status,
body.rm-finish-refined.rm-card-style-console .rm-card--refined .rm-card__price-badge { font-family: var(--rm-font-display); }
/* Sharp corners preset family. */
body.rm-finish-refined.rm-corners-sharp .rm-card__chip,
body.rm-finish-refined.rm-corners-sharp .rm-card__price-badge { border-radius: 0; }
body.rm-finish-refined.rm-corners-pill .rm-card__chip { border-radius: 999px; padding: 4px 10px; }

/* 4. Section headings + view-all --------------------------------- */
body.rm-finish-refined .rm-section-header {
	position: relative;
}
body.rm-finish-refined .rm-section-header:has(> .rm-section-header__more) {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	column-gap: 24px;
}
body.rm-finish-refined .rm-section-header:has(> .rm-section-header__more) > :not(.rm-section-header__more) { grid-column: 1; justify-self: start; max-width: 100%; }
body.rm-finish-refined .rm-section-header__more {
	grid-column: 2;
	grid-row: 1 / span 3;
	align-self: end;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	margin-bottom: 6px;
	font-family: var(--rm-font-display);
	font-size: 12.5px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--rm-accent);
	white-space: nowrap;
}
body.rm-finish-refined .rm-section-header__more i { transition: transform var(--rm-dur-2) var(--rm-ease); font-size: .9em; }
body.rm-finish-refined .rm-section-header__more:hover i { transform: translateX(4px); }
body.rm-finish-refined .rm-section-title {
	font-family: var(--rm-font-display);
	font-size: clamp(28px, 3.4vw, 42px) !important;
	font-weight: 800 !important;
	line-height: 1.05 !important;
	letter-spacing: -.02em;
}
body.rm-finish-refined .rm-eyebrow {
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--rmr-muted);
}

/* 5. Rails: arrows live in the heading row, never over a card ------ */
body.rm-finish-refined .rm-ending-rail { position: relative; }
body.rm-finish-refined .rm-ending-rail .rm-rail-shell { position: relative; }
body.rm-finish-refined .rm-ending-rail .rm-rail__arrow {
	top: -58px !important;
	bottom: auto !important;
	transform: none !important;
	width: 40px !important;
	height: 40px !important;
}
body.rm-finish-refined .rm-ending-rail .rm-rail__arrow--prev { left: auto !important; right: 48px !important; }
body.rm-finish-refined .rm-ending-rail .rm-rail__arrow--next { right: 0 !important; }
body.rm-finish-refined .rm-ending-rail .rm-section-header:has(> .rm-section-header__more) { padding-right: 104px; }
body.rm-finish-refined .rm-ending-rail .rm-section-header:not(:has(> .rm-section-header__more)) { padding-right: 104px; }

/* 6. Featured hero ----------------------------------------------- */
body.rm-finish-refined .rm-featured__title {
	font-family: var(--rm-font-display) !important;
	font-size: clamp(38px, 5.2vw, 68px) !important;
	font-weight: 800 !important;
	line-height: .98 !important;
	letter-spacing: -.025em !important;
	text-wrap: balance;
}
body.rm-finish-refined .rm-featured__title .rm-title-accent {
	color: var(--rm-accent);
	-webkit-text-fill-color: currentColor;
	text-decoration: none;
	background: none;
}
body.rm-finish-refined .rm-featured__sub { font-size: clamp(15px, 1.4vw, 18px) !important; max-width: 46ch; }
body.rm-finish-refined .rm-featured__eyebrow {
	font-size: 12px !important;
	font-weight: 800 !important;
	letter-spacing: .16em !important;
}
/* Countdown as four tiles */
body.rm-finish-refined .rm-featured__timer.rm-card__timer {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	box-shadow: none !important;
	width: auto !important;
	max-width: none !important;
}
body.rm-finish-refined .rm-featured__timer .rm-card__timer-tag {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rmr-muted) !important;
}
body.rm-finish-refined .rm-featured__timer.rm-ends-today .rm-card__timer-tag { color: var(--rm-danger) !important; }
body.rm-finish-refined .rm-featured__timer .rm-card__timer-digits { display: flex !important; gap: 8px !important; }
body.rm-finish-refined .rm-featured__timer .rm-card__timer-unit {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 64px !important;
	padding: 10px 6px 8px !important;
	border-radius: var(--rm-radius-md, 12px) !important;
	border: 1px solid color-mix(in srgb, var(--rm-fg) 14%, transparent) !important;
	background: color-mix(in srgb, var(--rm-fg) 5%, var(--rm-surface)) !important;
	box-shadow: var(--rm-rim) !important;
}
body.rm-finish-refined .rm-featured__timer .rm-card__timer-unit b {
	font-family: var(--rm-font-display);
	font-size: 26px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: var(--rmr-ink) !important;
	font-variant-numeric: tabular-nums;
}
body.rm-finish-refined .rm-featured__timer .rm-card__timer-unit i {
	margin-top: 5px;
	font-style: normal;
	font-size: 10px !important;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rmr-muted) !important;
}
body.rm-finish-refined .rm-featured__gauge .rm-card__gauge-bar {
	height: 8px !important;
	border-radius: 999px !important;
	background: var(--rmr-bar-track) !important;
	border: 0 !important;
}
body.rm-finish-refined .rm-featured__gauge .rm-card__gauge-bar > span {
	border-radius: inherit !important;
	background: var(--rmr-bar-fill) !important;
	box-shadow: 0 0 16px -2px color-mix(in srgb, var(--rm-accent) 60%, transparent);
	animation: none !important;
}
body.rm-finish-refined .rm-featured__actions .rm-card__qa-add,
body.rm-finish-refined .rm-featured__actions .rm-featured__qa .rm-card__qa-add {
	min-height: 52px;
	font-family: var(--rm-font-display);
	font-size: 15px !important;
	font-weight: 800 !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--rm-accent) 90%, transparent);
}
body.rm-finish-refined .rm-featured__actions .rm-card__qa-step { min-height: 52px; }
/* Offset accent frame behind the prize image */
body.rm-finish-refined .rm-featured__media { position: relative; }
body.rm-finish-refined .rm-featured__frame { position: relative; z-index: 1; }
body.rm-finish-refined .rm-featured__media::before {
	content: "";
	position: absolute;
	inset: 18px -14px -14px 18px;
	border-radius: var(--rm-radius-lg, 18px);
	border: 1.5px solid color-mix(in srgb, var(--rm-accent) 70%, transparent);
	box-shadow: 0 0 40px -12px color-mix(in srgb, var(--rm-accent) 55%, transparent);
	pointer-events: none;
	z-index: 0;
}
body.rm-finish-refined.rm-corners-sharp .rm-featured__media::before { border-radius: 0; }

/* Slider hero shares the featured hero's type scale */
body.rm-finish-refined .rm-hero-slide__title {
	font-family: var(--rm-font-display) !important;
	font-size: clamp(34px, 4.6vw, 60px) !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: -.025em !important;
	text-wrap: balance;
}
body.rm-finish-refined .rm-hero-slide__eyebrow { font-weight: 800 !important; letter-spacing: .16em !important; }
body.rm-finish-refined .rm-hero-slide__cta {
	min-height: 50px;
	padding-inline: 28px !important;
	font-family: var(--rm-font-display);
	font-weight: 800 !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 16px 34px -16px color-mix(in srgb, var(--rm-accent) 90%, transparent);
}
body.rm-finish-refined .rm-countdown-boxes__num { font-family: var(--rm-font-display); font-weight: 800 !important; font-variant-numeric: tabular-nums; }

/* 7. Product summary polish (Conversion layer switch: product_refined) ----- */
body.rm-product-refined .rm-product-hero__title {
	font-family: var(--rm-font-display) !important;
	font-size: clamp(30px, 3.6vw, 50px) !important;
	font-weight: 800 !important;
	letter-spacing: -.02em !important;
	line-height: 1.02 !important;
	text-wrap: balance;
}
body.rm-product-refined .rm-product-hero__tag {
	display: inline-flex !important;
	align-items: center;
	padding: 4px 10px !important;
	border-radius: var(--rm-radius-sm, 6px) !important;
	border: 0 !important;
	background: var(--rmr-chip-bg) !important;
	color: var(--rmr-chip-fg) !important;
	font-family: var(--rm-font-display);
	font-size: 10.5px !important;
	font-weight: 800 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase;
}
body.rm-product-refined.rm-corners-sharp .rm-product-hero__tag { border-radius: 0 !important; }
body.rm-product-refined.rm-corners-pill .rm-product-hero__tag { border-radius: 999px !important; }
body.rm-product-refined .rm-product-hero__sub { font-size: clamp(15px, 1.3vw, 17px) !important; }
body.rm-product-refined .rm-product-countdown .countdown-value {
	font-family: var(--rm-font-display);
	font-weight: 800 !important;
	font-variant-numeric: tabular-nums;
}
body.rm-product-refined .rm-ticket-selector__total-value,
body.rm-product-refined .rm-ticket-selector__price-value {
	font-family: var(--rm-font-display);
	font-weight: 800 !important;
	letter-spacing: -.01em;
}
body.rm-product-refined .rm-ticket-selector__total-value { font-size: clamp(28px, 2.6vw, 34px) !important; }
body.rm-product-refined .rm-ticket-selector__submit {
	min-height: 56px;
	font-family: var(--rm-font-display);
	font-size: 16px !important;
	font-weight: 800 !important;
	letter-spacing: .05em;
	text-transform: uppercase;
	box-shadow: 0 18px 36px -18px color-mix(in srgb, var(--rm-accent) 95%, transparent) !important;
}
body.rm-product-refined .rm-buybox__preset { font-family: var(--rm-font-display); font-weight: 800 !important; }
body.rm-product-refined .rm-buybox__tab { font-family: var(--rm-font-display); font-weight: 800 !important; letter-spacing: .04em; text-transform: uppercase; }

/* 8. Mobile ------------------------------------------------------- */
@media (max-width: 640px) {
	body.rm-finish-refined { --rmr-title-size: 16.5px; --rmr-pad: 14px; }
	body.rm-finish-refined .rm-featured__timer .rm-card__timer-unit { min-width: 0 !important; flex: 1 1 0; }
	body.rm-finish-refined .rm-featured__timer .rm-card__timer-digits { width: 100%; }
	body.rm-finish-refined .rm-featured__media::before { inset: 12px -8px -8px 12px; }
	body.rm-finish-refined .rm-section-header__more { font-size: 11px; letter-spacing: .08em; }
}
@media (max-width: 760px) {
	/* View-all drops under the title instead of crowding it. */
	body.rm-finish-refined .rm-section-header:has(> .rm-section-header__more) { grid-template-columns: minmax(0, 1fr); }
	body.rm-finish-refined .rm-section-header__more { grid-column: 1; grid-row: auto; justify-self: start; margin: 6px 0 0; }
	/* Rails swipe on phones; arrows only add clutter. */
	body.rm-finish-refined .rm-ending-rail .rm-rail__arrow { display: none !important; }
	body.rm-finish-refined .rm-ending-rail .rm-section-header { padding-right: 0 !important; }
}
/* Image countdown keeps its unit letters and tight spacing at every width. */
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-unit { width: auto !important; flex: 0 0 auto !important; }
body.rm-finish-refined .rm-card__timer--media .rm-card__timer-unit i { display: inline !important; position: static !important; }

/* Two-up phone grids: compact everything so nothing wraps awkwardly. */
@media (max-width: 640px) {
	body.rm-finish-refined.rm-mgrid-2 .rm-grid { --rmr-title-size: 14px; --rmr-pad: 10px; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__status { font-size: 9.5px; padding: 6px 6px; gap: 6px; letter-spacing: .05em; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__status-time { display: none; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card--refined .rm-card__sub { display: none !important; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card--refined .rm-card__rail-left { display: none; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__deal { flex-direction: column; align-items: flex-start; gap: 6px; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__price-badge { margin-left: 0; padding: 5px 9px; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__price-badge .rm-card__price-now { font-size: 16px !important; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__deal-count { display: none; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card--refined .rm-card__qa { grid-template-columns: 1fr; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__timer--media { left: 6px; bottom: 6px; padding: 4px 8px 4px 7px !important; gap: 5px; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__timer--media .rm-card__timer-unit b { font-size: 11px !important; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__timer--media .rm-card__timer-unit:last-child { display: none !important; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__chip { font-size: 9px; padding: 3px 7px; }
	/* No room for two chips side by side: the instant/game ribbon wins. */
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card__media:has(.rm-card__corner) .rm-card__chips { display: none; }
	body.rm-finish-refined.rm-mgrid-2 .rm-grid .rm-card--refined .rm-card__corner { top: 6px !important; right: 6px !important; font-size: 9px !important; padding: 3px 7px !important; }
}

@media (prefers-reduced-motion: reduce) {
	body.rm-finish-refined .rm-card__status--today .rm-card__status-label::before,
	body.rm-finish-refined .rm-card__timer--media.rm-ends-today .rm-card__timer-tag { animation: none; }
}

/* =====================================================================
 * 9. 7.9.1 Conversion layer
 * Each block is scoped to its own body class, added only when that
 * Visual system > Conversion layer switch is on (all default off).
 * ===================================================================== */

/* 9a. Basket total in the header -------------------------------------- */
body.rm-has-cart-total .rm-site-header__cart.has-total {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 12px 0 12px;
	border-radius: max(10px, min(var(--rm-radius-button, 12px), 14px));
	background: var(--rm-accent);
	color: var(--rm-on-accent);
	text-decoration: none;
	font-family: var(--rm-font-display);
	font-weight: 800;
	box-shadow: 0 10px 26px -14px var(--rm-accent);
}
body.rm-has-cart-total .rm-site-header__cart.has-total .dashicons { color: inherit; font-size: 18px; width: 18px; height: 18px; }
body.rm-has-cart-total .rm-site-header__cart-total { font-size: 14px; letter-spacing: -.005em; white-space: nowrap; }
body.rm-has-cart-total .rm-site-header__cart-total .woocommerce-Price-amount { color: inherit; }
body.rm-has-cart-total .rm-site-header__cart.has-total .rm-site-header__cart-count {
	margin-left: 0;
	background: var(--rm-on-accent);
	color: var(--rm-accent);
	font-size: 11px;
	border-radius: 999px;
}
@media (max-width: 420px) {
	body.rm-has-cart-total .rm-site-header__cart.has-total { padding: 0 10px; gap: 6px; }
	body.rm-has-cart-total .rm-site-header__cart.has-total .dashicons { display: none; }
}

/* 9b. Category strip + next draw -------------------------------------- */
.rm-subnav {
	border-bottom: 1px solid color-mix(in srgb, var(--rm-fg) 8%, transparent);
	background: color-mix(in srgb, var(--rm-surface) 55%, var(--rm-bg));
}
.rm-subnav__inner {
	max-width: var(--rm-site-max, 1280px);
	margin: 0 auto;
	padding: 9px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}
.rm-subnav__pills {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}
.rm-subnav__pills::-webkit-scrollbar { display: none; }
.rm-subnav__pill {
	flex: 0 0 auto;
	scroll-snap-align: start;
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--rm-fg) 14%, transparent);
	color: var(--rm-fg);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color var(--rm-dur-2) var(--rm-ease), background var(--rm-dur-2) var(--rm-ease);
}
.rm-subnav__pill:hover { border-color: var(--rm-accent); color: var(--rm-fg); }
.rm-subnav__pill.is-active { background: var(--rm-accent); border-color: var(--rm-accent); color: var(--rm-on-accent); font-weight: 800; }
body.rm-corners-sharp .rm-subnav__pill { border-radius: 0; }
.rm-subnav__next {
	margin: 0 0 0 auto;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: var(--rm-fg-muted);
	white-space: nowrap;
}
.rm-subnav__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rm-danger); animation: rmr-pulse 1.4s ease-in-out infinite; }
.rm-subnav__timer {
	font-family: var(--rm-font-display);
	font-size: 15px;
	font-weight: 800;
	color: var(--rm-fg);
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}
@media (max-width: 760px) {
	.rm-subnav__inner { padding: 8px 12px; gap: 10px; flex-direction: column; align-items: stretch; }
	.rm-subnav__next { margin: 0; justify-content: flex-start; gap: 8px; font-size: 12px; order: -1; }
	.rm-subnav__timer { margin-left: auto; font-size: 14px; }
}

/* 9c. Refined competition page ---------------------------------------- */
body.rm-product-refined .rm-product-hero__media { position: relative; display: flex; flex-direction: column; gap: 12px; }
body.rm-product-refined .rm-product-status {
	border-radius: var(--rm-radius-lg, 16px) var(--rm-radius-lg, 16px) 0 0;
	margin-bottom: -12px;
	padding: 10px 14px;
	font-size: 12.5px;
	position: relative;
	z-index: 2;
}
body.rm-product-refined .rm-product-status + .rm-card__chips + * .rm-gallery__main,
body.rm-product-refined .rm-product-status ~ .rm-gallery .rm-gallery__main,
body.rm-product-refined .rm-product-status ~ * .rm-gallery__main { border-top-left-radius: 0; border-top-right-radius: 0; }
body.rm-product-refined.rm-corners-sharp .rm-product-status { border-radius: 0; }
body.rm-product-refined .rm-product-chips { top: 14px; left: 14px; }
body.rm-product-refined .rm-product-chips.has-status { top: 54px; }
body.rm-product-refined .rm-card__chip--instant { background: #facc15; color: #1a1203; }
/* The strip already says when it closes. */
body.rm-product-refined .rm-product-hero__media:has(.rm-product-status) .rm-gallery__labels .rm-ends-flair { display: none; }
body.rm-product-refined .rm-product-hero__media:has(.rm-product-chips) .rm-gallery__labels--tl { top: auto; bottom: 14px; }

body.rm-product-refined .rm-product-facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}
body.rm-product-refined .rm-product-facts__item {
	padding: 14px 16px;
	border-radius: var(--rm-radius-md, 12px);
	background: var(--rm-surface);
	border: 1px solid var(--rm-border);
}
body.rm-product-refined .rm-product-facts dt {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--rm-fg-muted);
}
body.rm-product-refined .rm-product-facts dd {
	margin: 4px 0 0;
	font-family: var(--rm-font-display);
	font-size: 19px;
	font-weight: 800;
	color: var(--rm-fg);
	line-height: 1.15;
}

body.rm-product-refined .rm-product-meta {
	margin: 0 0 10px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rm-fg-muted);
}
body.rm-product-refined .rm-product-meta__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rm-accent) 22%, transparent); }
body.rm-product-refined .rm-product-hero__title {
	font-family: var(--rm-font-display) !important;
	font-size: clamp(34px, 4vw, 56px) !important;
	font-weight: 800 !important;
	line-height: .98 !important;
	letter-spacing: -.02em !important;
	text-wrap: balance;
	margin: 0 0 12px !important;
}
body.rm-product-refined .rm-product-hero__title .rm-title-accent { color: var(--rm-accent); -webkit-text-fill-color: currentColor; background: none; text-decoration: none; }

/* Countdown: four tiles */
body.rm-product-refined .rm-product-countdown {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	text-align: left !important;
}
body.rm-product-refined .rm-product-countdown__label {
	margin: 0 0 8px !important;
	font-size: 11.5px !important;
	font-weight: 800 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rm-fg-muted) !important;
}
body.rm-product-refined .rm-product-countdown .countdown-timer {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px !important;
	justify-content: stretch !important;
}
body.rm-product-refined .rm-product-countdown .countdown-timer > div {
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 12px 0 10px !important;
	min-width: 0 !important;
	border-radius: var(--rm-radius-md, 12px) !important;
	background: var(--rm-surface) !important;
	border: 1px solid color-mix(in srgb, var(--rm-fg) 12%, transparent) !important;
	box-shadow: var(--rm-rim) !important;
}
body.rm-product-refined .rm-product-countdown .countdown-value {
	font-family: var(--rm-font-display);
	font-size: clamp(24px, 2.4vw, 32px) !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	color: var(--rm-fg) !important;
	background: none !important;
	border: 0 !important;
	padding: 0 !important;
	min-width: 0 !important;
	font-variant-numeric: tabular-nums;
}
body.rm-product-refined .rm-product-countdown .countdown-label {
	margin-top: 5px !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--rm-fg-muted) !important;
}

/* Sold bar: accent gradient, not the half/quarter state colours */
body.rm-product-refined .rm-progress-block .rm-progress__track,
body.rm-product-refined .rm-progress-block .progress {
	height: 10px !important;
	border-radius: 999px !important;
	background: color-mix(in srgb, var(--rm-fg) 9%, transparent) !important;
	overflow: hidden;
}
body.rm-product-refined .rm-progress-block .rm-progress__bar-parent { height: 100% !important; border-radius: inherit !important; }
body.rm-product-refined .rm-progress-block .rm-progress__bar,
body.rm-product-refined .rm-progress-block .progress-bar {
	height: 100% !important;
	border-radius: inherit !important;
	background: linear-gradient(90deg, var(--rm-accent), color-mix(in srgb, var(--rm-accent) 45%, var(--rm-accent-2))) !important;
	box-shadow: 0 0 16px -2px color-mix(in srgb, var(--rm-accent) 60%, transparent);
}
body.rm-product-refined .rm-progress-block .rm-progress__handle { display: none !important; }
body.rm-product-refined .rm-progress-block .rm-progress__text,
body.rm-product-refined .rm-progress-block .rm-progress__count { font-size: 13px !important; color: var(--rm-fg-muted) !important; font-weight: 600; }

/* Buy box */
body.rm-product-refined .rm-buybox { border-radius: calc(var(--rm-radius-lg, 16px) + 4px) !important; border-color: color-mix(in srgb, var(--rm-accent) 32%, var(--rm-border)) !important; }
body.rm-product-refined .rm-buybox__tabs { padding: 6px !important; gap: 6px !important; }
body.rm-product-refined .rm-buybox__tab { min-height: 44px; }
body.rm-product-refined .rm-buybox__presets {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px !important;
	margin: 16px 0 6px !important;
	padding-top: 8px;
}
body.rm-product-refined .rm-buybox__preset--bundle {
	position: relative;
	width: auto !important;
	height: auto !important;
	min-height: 58px;
	padding: 8px 4px !important;
	display: flex !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	border-radius: var(--rm-radius-md, 12px) !important;
	border: 1px solid color-mix(in srgb, var(--rm-fg) 14%, transparent) !important;
	background: color-mix(in srgb, var(--rm-fg) 3%, transparent) !important;
	color: var(--rm-fg) !important;
	box-shadow: none !important;
	cursor: pointer;
}
body.rm-product-refined .rm-buybox__preset--bundle b { font-family: var(--rm-font-display); font-size: 20px; font-weight: 800; line-height: 1; }
body.rm-product-refined .rm-buybox__preset-total { font-size: 11px; font-weight: 600; color: var(--rm-fg-muted); }
body.rm-product-refined .rm-buybox__preset-total .woocommerce-Price-amount { color: inherit; }
body.rm-product-refined .rm-buybox__preset--bundle:hover { border-color: color-mix(in srgb, var(--rm-accent) 60%, transparent) !important; }
body.rm-product-refined .rm-buybox__preset--bundle.is-active {
	border: 2px solid var(--rm-accent) !important;
	background: color-mix(in srgb, var(--rm-accent) 13%, transparent) !important;
}
body.rm-product-refined .rm-buybox__preset--bundle.is-active .rm-buybox__preset-total { color: var(--rm-fg); }
body.rm-product-refined .rm-buybox__preset-flag {
	position: absolute;
	top: -9px;
	left: 50%;
	transform: translateX(-50%);
	padding: 2px 7px;
	border-radius: 999px;
	background: #facc15;
	color: #1a1203;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	white-space: nowrap;
}
/* Bundles replace the slider; the stepper stays for exact numbers. */
body.rm-product-refined .rm-buybox__slider-row { display: none !important; }
body.rm-product-refined .rm-ticket-selector__submit {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}
body.rm-product-refined .rm-ticket-selector__submit-sep { opacity: .55; }
body.rm-product-refined .rm-ticket-selector__submit .woocommerce-Price-amount { color: inherit; }
body.rm-product-refined .rm-ticket-selector__trust {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 12px 0 0 !important;
	font-size: 12px;
	color: var(--rm-fg-muted);
}
@media (max-width: 420px) {
	body.rm-product-refined .rm-buybox__preset--bundle b { font-size: 17px; }
	body.rm-product-refined .rm-buybox__preset-total { font-size: 10px; }
	body.rm-product-refined .rm-product-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
	body.rm-product-refined .rm-product-facts__item { padding: 10px; }
	body.rm-product-refined .rm-product-facts dd { font-size: 15px; }
	body.rm-product-refined .rm-product-facts dt { font-size: 9px; letter-spacing: .08em; }
}

/* 9d. Mobile sticky buy bar ------------------------------------------- */
.rm-sticky-buy { display: none; }
@media (max-width: 768px) {
	.rm-sticky-buy:not([hidden]) {
		position: fixed;
		left: 0; right: 0; bottom: 0;
		z-index: 90;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--rm-surface) 96%, transparent);
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		border-top: 1px solid color-mix(in srgb, var(--rm-accent) 35%, var(--rm-border));
		box-shadow: 0 -18px 40px -14px rgba(0,0,0,.55);
		transform: translateY(110%);
		transition: transform .28s var(--rm-ease-out);
	}
	.rm-sticky-buy.is-visible { transform: none; }
	.rm-sticky-buy__sum { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
	.rm-sticky-buy__qty { font-size: 11.5px; font-weight: 600; color: var(--rm-fg-muted); }
	.rm-sticky-buy__qty b { color: var(--rm-fg); }
	.rm-sticky-buy__total { font-family: var(--rm-font-display); font-size: 22px; font-weight: 800; color: var(--rm-accent); white-space: nowrap; }
	.rm-sticky-buy__total .woocommerce-Price-amount { color: inherit; }
	.rm-sticky-buy__btn {
		flex: 1 1 auto;
		min-height: 52px;
		border: 0;
		border-radius: max(10px, min(var(--rm-radius-button, 12px), 16px));
		background: var(--rm-accent);
		color: var(--rm-on-accent);
		font-family: var(--rm-font-display);
		font-size: 15px;
		font-weight: 800;
		letter-spacing: .06em;
		text-transform: uppercase;
		box-shadow: 0 14px 30px -14px var(--rm-accent);
		cursor: pointer;
	}
	/* Lift other bottom-fixed UI (members bar, chat bubbles) clear of the bar. */
	body.rm-sticky-buy-on .rm-bottom-bar { transform: translateY(-84px); }
}
@media (prefers-reduced-motion: reduce) { .rm-sticky-buy { transition: none !important; } .rm-subnav__dot { animation: none; } }
body.rm-has-cart-total .rm-site-header__cart.has-total .rm-site-header__cart-count { position: static !important; transform: none !important; inset: auto !important; }
@media (min-width: 1024px) {
	body.rm-product-refined .rm-product-hero { align-items: start !important; }
	body.rm-product-refined .rm-product-hero__media { position: sticky; top: calc(var(--rm-header-h, 84px) + 16px); }
}
body.rm-has-cart-total .rm-site-header__cart.has-total { width: auto !important; min-width: 0; flex: 0 0 auto; }
@media (max-width: 760px) { body.rm-has-cart-total .rm-site-header__cart.has-total { height: 40px; } }
body.rm-product-refined .rm-product-hero__media:has(.rm-card__chip--instant) .rm-gallery__chip--instant { display: none !important; }
body.rm-product-refined .rm-product-hero__media:has(.rm-product-status) .rm-gallery__labels--tr { top: 54px; }

/* 7.10: split footer stacks on phones (it kept a 220px brand column and pushed the page wide). */
@media (max-width: 720px) {
	body.rm-finish-refined .rm-footer-style-split .rm-footer-main { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	body.rm-finish-refined .rm-footer-style-split .rm-footer-brand { padding-right: 0; border-right: 0; }
}

/* =====================================================================
 * 7.10.3 layout fixes
 * ===================================================================== */

/* Phone header: the logo keeps a real column instead of being squeezed to
   0px under the wallet / basket group, and the action buttons tighten up
   so the whole row fits a 360px screen. */
@media (max-width: 1024px) {
	.rm-site-header__inner,
	.rm-header-style-centered .rm-site-header__inner { grid-template-columns: auto minmax(36px, 1fr) auto; }
	.rm-site-header__brand { min-width: 36px; display: flex; align-items: center; }
	.rm-site-header__brand .custom-logo-link { display: block; min-width: 0; max-width: 100%; }
	.rm-site-header__brand .custom-logo { display: block; max-width: 100%; object-fit: contain; object-position: left center; }
	.rm-site-header__title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.rm-site-header__actions { flex-wrap: nowrap; }
	.rm-site-header__actions > * { flex: 0 0 auto; }
}
@media (max-width: 560px) {
	.rm-site-header__inner,
	.rm-header-style-centered .rm-site-header__inner { gap: 8px; padding: 8px 12px; }
	.rm-site-header__hamburger { width: 34px; height: 36px; }
	.rm-site-header .custom-logo { max-height: 34px; max-width: 100%; }
	.rm-site-header__actions { gap: 4px; }
	.rm-site-header__actions .rm-site-header__icon-btn { width: 32px; height: 32px; }
	.rm-site-header__wallet .woo-wallet-menu-contents,
	.rm-site-header__wallet > a { height: 34px; padding: 0 10px; gap: 4px; font-size: 13px; }
	.rm-site-header__wallet .woo-wallet-icon-wallet { font-size: 14px; }
	body.rm-has-cart-total .rm-site-header__cart.has-total { height: 36px; padding: 0 10px; gap: 6px; }
	body.rm-has-cart-total .rm-site-header__cart.has-total .dashicons { display: none; }
	body.rm-has-cart-total .rm-site-header__cart-total { font-size: 13.5px; }
}
@media (max-width: 380px) {
	.rm-site-header__wallet .woo-wallet-icon-wallet { display: none; }
	.rm-site-header__wallet .woo-wallet-menu-contents,
	.rm-site-header__wallet > a { padding: 0 8px; font-size: 12.5px; }
	body.rm-has-cart-total .rm-site-header__cart.has-total { padding: 0 8px; gap: 5px; }
	body.rm-has-cart-total .rm-site-header__cart.has-total .rm-site-header__cart-count { min-width: 17px; height: 17px; padding: 0 4px; font-size: 10px; }
}

/* Slash and pill headings: the title was a flex row, so "Frequently asked"
   and the accented "questions" became separate boxes that wrapped on their
   own. The text now flows as one line of type; the slash and rule are
   inline decorations either side of it. */
.rm-heading-style-slash .rm-section-title { display: block; }
.rm-heading-style-slash .rm-section-title::before { display: inline-block; vertical-align: -.12em; margin-right: .38em; }
.rm-heading-style-slash .rm-section-title::after { display: inline-block; vertical-align: middle; margin: 0 0 0 .4em; }
.rm-heading-style-pill .rm-section-title { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.rm-heading-style-pill .rm-section-title::after { display: inline-block; vertical-align: middle; }
@media (max-width: 560px) {
	body.rm-finish-refined.rm-heading-style-pill .rm-section-title { font-size: clamp(20px, 6vw, 28px) !important; padding: 7px 14px; border-radius: max(18px, var(--rm-radius-md, 18px)); }
}

/* FAQ heading is centred as one composition (eyebrow, title, rule). */
.rm-faq .rm-section-header { align-items: center; text-align: center; }
.rm-faq .rm-section-title { align-self: center; }
.rm-faq .rm-section-title::after { margin-left: auto; margin-right: auto; }
.rm-heading-style-slash .rm-faq .rm-section-title::after,
.rm-heading-style-pill .rm-faq .rm-section-title::after { margin: 0 0 0 .4em; }

/* Footer newsletter on phones: when the field stacks, the input and button
   become two clean controls instead of a pill border wrapped around both. */
@media (max-width: 440px) {
	.rm-footer-cta__field { gap: 10px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none !important; }
	.rm-footer-cta__field input {
		flex: 0 0 auto;
		height: 48px;
		background: var(--rm-surface);
		border: 1px solid var(--rm-border);
		border-radius: var(--rm-radius-button, 999px);
		transition: border-color .15s, box-shadow .15s;
	}
	.rm-footer-cta__field input:focus { border-color: var(--rm-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rm-accent) 18%, transparent); }
	.rm-footer-cta__field button { flex: 0 0 auto; height: 48px; }
}
