/* ---------------------------------------------------------------------------
 * RMS Commerce Core — product page components.
 *
 * Specification tables and cross-brand alternatives. Everything here styles
 * against the --rms-* tokens printed by RMS_Brand::print_tokens(), never
 * against a literal colour, so one stylesheet produces three storefronts.
 *
 * Loaded as one cacheable file, only on pages that render these components.
 * The legacy sites inline ~50KB of CSS into every page including the checkout;
 * nothing here is added to that.
 * ------------------------------------------------------------------------- */

/* Screen-reader-only text. Used for the "Filter products by" prefix on spec
   links and the "(opens in a new tab)" suffix on cross-domain links: both are
   information a sighted user gets from context and a screen-reader user does
   not. */
.rms-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * SPECIFICATIONS
 * ------------------------------------------------------------------------- */

.rms-spec {
	max-width: var(--rms-maxw, 1280px);
	margin: 40px auto;
	padding: 0 var(--rms-gutter, 16px);
	color: var(--rms-text, #12181d);
}

.rms-spec__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rms-spec__note {
	margin: 0 0 24px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rms-text-mut, #5b6b78);
}

/* Two columns where there is room. Groups are short and uneven, so a masonry-
   ish column flow reads better than a grid of half-empty cells. */
.rms-spec__groups {
	column-gap: 40px;
}

@media (min-width: 900px) {
	.rms-spec__groups {
		column-count: 2;
	}
}

.rms-spec__group {
	break-inside: avoid;
	page-break-inside: avoid;
	margin: 0 0 28px;
}

.rms-spec__gtitle {
	margin: 0 0 8px;
	padding: 0 0 6px;
	border-bottom: 2px solid var(--rms-primary, #0098db);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--rms-text, #12181d);
}

.rms-spec-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.45;
}

.rms-spec-table th,
.rms-spec-table td {
	padding: 9px 0;
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
	text-align: left;
	vertical-align: top;
}

.rms-spec-table th {
	width: 46%;
	padding-right: 16px;
	font-weight: 500;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-spec-table td {
	font-weight: 600;
	color: var(--rms-text, #12181d);
	overflow-wrap: anywhere;
}

.rms-spec-table--compact {
	font-size: 13.5px;
}

.rms-spec-table--compact th,
.rms-spec-table--compact td {
	padding: 7px 0;
}

/* Values -------------------------------------------------------------- */

.rms-spec__unit {
	font-weight: 500;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-spec__sep {
	color: var(--rms-text-mut, #5b6b78);
}

/* A spec value that filters. Underlined on hover only: thirty underlined rows
   would read as a link farm, but the value must still announce itself as
   interactive, which the dotted rule under it does. */
.rms-spec__filter {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px dotted var(--rms-text-mut, #5b6b78);
}

.rms-spec__filter:hover,
.rms-spec__filter:focus {
	color: var(--rms-primary-d, #0078ad);
	border-bottom-color: currentColor;
	border-bottom-style: solid;
}

.rms-spec__filter:focus-visible,
.rms-spec__doc:focus-visible,
.rms-alt__link:focus-visible {
	outline: 2px solid var(--rms-primary, #0098db);
	outline-offset: 2px;
}

.rms-spec__doc {
	color: var(--rms-primary-d, #0078ad);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.rms-spec__doc:hover,
.rms-spec__doc:focus {
	border-bottom-color: currentColor;
}

.rms-spec__ext {
	margin-left: 3px;
	font-size: 0.9em;
}

/* Key specifications (product hero) ------------------------------------ */

.rms-keyspec {
	margin: 18px 0;
	padding: 14px 16px;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius-sm, 6px);
}

.rms-keyspec__cap {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	text-align: left;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-keyspec .rms-spec-table tr:last-child th,
.rms-keyspec .rms-spec-table tr:last-child td {
	border-bottom: 0;
}

/* Narrow screens: stack, never scroll sideways ------------------------- */

@media (max-width: 600px) {
	.rms-spec-table,
	.rms-spec-table tbody,
	.rms-spec-table tr,
	.rms-spec-table th,
	.rms-spec-table td {
		display: block;
		width: auto;
	}

	.rms-spec-table tr {
		padding: 10px 0;
		border-bottom: 1px solid var(--rms-border, #dfe6ec);
	}

	.rms-spec-table th,
	.rms-spec-table td {
		padding: 0;
		border-bottom: 0;
	}

	.rms-spec-table th {
		margin-bottom: 2px;
		font-size: 11.5px;
		text-transform: uppercase;
		letter-spacing: 0.05em;
	}
}

/* ---------------------------------------------------------------------------
 * CROSS-BRAND ALTERNATIVES
 * ------------------------------------------------------------------------- */

.rms-alts {
	max-width: var(--rms-maxw, 1280px);
	margin: 40px auto;
	padding: 0 var(--rms-gutter, 16px);
	color: var(--rms-text, #12181d);
}

.rms-alts__title {
	margin: 0 0 6px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.rms-alts__note {
	margin: 0 0 18px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-alts__list {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
	grid-template-columns: 1fr;
}

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

.rms-alt {
	padding: 16px 18px;
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-left: 3px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius-sm, 6px);
}

/* The left rule is the only visual difference between the three relationship
   types, and it tracks the strength of the claim: solid brand colour for a
   verified equivalent, neutral for everything weaker. */
.rms-alt--confirmed {
	border-left-color: var(--rms-primary, #0098db);
}

.rms-alt--close {
	border-left-color: var(--rms-text-mut, #5b6b78);
}

.rms-alt--series {
	border-left-color: var(--rms-primary, #0098db);
	border-left-style: dashed;
}

.rms-alt__badge {
	display: inline-block;
	margin: 0 0 8px;
	padding: 3px 8px;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 2px;
	color: var(--rms-text-mut, #5b6b78);
	background: var(--rms-muted, #f6f8fa);
}

.rms-alt__badge--confirmed {
	color: var(--rms-surface, #fff);
	background: var(--rms-primary-d, #0078ad);
	border-color: var(--rms-primary-d, #0078ad);
}

/* Range-level suggestion from the series table: brand-tinted, but visually
   below "Verified equivalent" — the wording carries the caveat. */
.rms-alt__badge--series {
	color: var(--rms-primary-d, #0078ad);
	background: color-mix(in srgb, var(--rms-primary, #0098db) 10%, var(--rms-surface, #fff));
	border-color: color-mix(in srgb, var(--rms-primary, #0098db) 35%, var(--rms-border, #dfe6ec));
}

@supports not (background: color-mix(in srgb, red 20%, transparent)) {
	.rms-alt__badge--series {
		background: var(--rms-muted, #f6f8fa);
	}
}

.rms-alt__link {
	display: block;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rms-text, #12181d);
	text-decoration: none;
}

.rms-alt__link:hover,
.rms-alt__link:focus {
	color: var(--rms-primary-d, #0078ad);
	text-decoration: underline;
}

.rms-alt__diff {
	margin: 8px 0 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--rms-text, #12181d);
}

.rms-alt__meta {
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--rms-text-mut, #5b6b78);
}

/* ---------------------------------------------------------------------------
 * ADMIN — cross-brand alternatives screen
 *
 * Same file, because it is the same component vocabulary and the screen loads
 * one stylesheet either way.
 * ------------------------------------------------------------------------- */

.rms-alt-admin__intro {
	max-width: 780px;
}

.rms-alt-ac {
	position: relative;
	max-width: 26em;
	margin-top: 10px;
}

.rms-alt-ac input[type="text"] {
	width: 100%;
}

.rms-alt-ac__list {
	position: absolute;
	z-index: 20;
	left: 0;
	right: 0;
	max-height: 260px;
	margin: 2px 0 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid #8c8f94;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.rms-alt-ac__list li {
	margin: 0;
	padding: 7px 10px;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	border-bottom: 1px solid #f0f0f1;
}

.rms-alt-ac__list li:last-child {
	border-bottom: 0;
}

.rms-alt-ac__list li:hover,
.rms-alt-ac__list li[aria-selected="true"] {
	background: #f0f6fc;
}

.rms-alt-ac__list li.is-empty {
	color: #646970;
	cursor: default;
}

.rms-alt-admin__pager {
	margin-top: 12px;
}

/* ---------------------------------------------------------------------------
 * v1.3 — SUMMARY KEY-SPEC STRIP
 * The four numbers an engineer scans for, beside the price.
 * ------------------------------------------------------------------------- */

.rms-sumspecs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 14px 0 18px;
	padding: 0;
	list-style: none;
}

.rms-sumspecs__item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 12px;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-left: 3px solid var(--rms-primary, #0098db);
	border-radius: var(--rms-radius-sm, 6px);
}

.rms-sumspecs__label {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-sumspecs__value {
	font-size: 14.5px;
	font-weight: 650;
	color: var(--rms-text, #12181d);
}

.rms-sumspecs__value a {
	color: var(--rms-primary-d, #0078ad);
	text-decoration: none;
}

.rms-sumspecs__value a:hover,
.rms-sumspecs__value a:focus {
	text-decoration: underline;
}

/* ---------------------------------------------------------------------------
 * v1.3 — QUICK ANSWERS
 * The buyer's questions, answered from the product's own data.
 * ------------------------------------------------------------------------- */

.rms-answers {
	max-width: var(--rms-maxw, 1280px);
	margin: 32px auto;
	padding: 24px 26px;
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-left: 4px solid var(--rms-primary, #0098db);
	border-radius: var(--rms-radius, 10px);
}

.rms-answers__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--rms-text, #12181d);
}

.rms-answers__item {
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
}

.rms-answers__item:last-child {
	border-bottom: 0;
}

.rms-answers__q {
	padding: 12px 4px;
	font-size: 15px;
	font-weight: 650;
	color: var(--rms-text, #12181d);
	cursor: pointer;
	list-style: none;
}

.rms-answers__q::-webkit-details-marker {
	display: none;
}

.rms-answers__q::before {
	content: '+';
	display: inline-block;
	width: 20px;
	font-weight: 700;
	color: var(--rms-primary, #0098db);
}

.rms-answers__item[open] .rms-answers__q::before {
	content: '\2212';
}

.rms-answers__a {
	margin: 0 0 14px;
	padding-left: 20px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--rms-text-mut, #5b6b78);
	max-width: 78ch;
}

/* ---------------------------------------------------------------------------
 * v1.4 — SUMMARY POLISH: order-code chip, document buttons, trust strip.
 * ------------------------------------------------------------------------- */

.rms-skuchip {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 14px;
}

.rms-skuchip__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--rms-text-mut, #5b6b78);
}

.rms-skuchip__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 8px;
	cursor: copy;
	font: inherit;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rms-skuchip__btn:hover,
.rms-skuchip__btn:focus {
	border-color: var(--rms-primary, #0098db);
}

.rms-skuchip__btn.is-copied {
	border-color: #0a7c2f;
	background: #eaf7ee;
}

.rms-skuchip__btn code {
	font-size: 14px;
	font-weight: 700;
	background: none;
	padding: 0;
	color: var(--rms-text, #12181d);
}

.rms-skuchip__hint {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--rms-primary-d, #0078ad);
}

.rms-docbtns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 6px;
}

.rms-docbtn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--rms-text, #12181d);
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 8px;
	text-decoration: none;
	transition: border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.rms-docbtn:hover,
.rms-docbtn:focus {
	border-color: var(--rms-primary, #0098db);
	color: var(--rms-primary-d, #0078ad);
	box-shadow: 0 6px 14px rgba(9, 14, 22, 0.06);
}

.rms-docbtn__icon {
	color: var(--rms-primary, #0098db);
	font-size: 14px;
}

.rms-trust {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 18px 0 0;
	padding: 14px 16px;
	list-style: none;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-left: 3px solid var(--rms-primary, #0098db);
	border-radius: var(--rms-radius-sm, 6px);
}

.rms-trust__item {
	position: relative;
	padding-left: 22px;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--rms-text, #12181d);
}

.rms-trust__item::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 5px;
	width: 6px;
	height: 4px;
	border-left: 2px solid var(--rms-primary-d, #0078ad);
	border-bottom: 2px solid var(--rms-primary-d, #0078ad);
	transform: rotate(-45deg);
}

/* ---------------------------------------------------------------------------
 * v1.4 — SLIDE-IN SUGGESTION
 * ------------------------------------------------------------------------- */

.rms-slidein {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 400;
	width: min(320px, calc(100vw - 36px));
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-top: 3px solid var(--rms-primary, #0098db);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(9, 14, 22, 0.18);
	transform: translateY(16px);
	opacity: 0;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.rms-slidein.is-open {
	transform: translateY(0);
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.rms-slidein {
		transition: none;
		transform: none;
	}
}

.rms-slidein__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 14px 8px;
}

.rms-slidein__title {
	font-size: 13px;
	font-weight: 700;
	color: var(--rms-text, #12181d);
}

.rms-slidein__close {
	width: 28px;
	height: 28px;
	font-size: 18px;
	line-height: 1;
	color: var(--rms-text-mut, #5b6b78);
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}

.rms-slidein__close:hover,
.rms-slidein__close:focus {
	background: var(--rms-muted, #f6f8fa);
	color: var(--rms-text, #12181d);
}

.rms-slidein__list {
	margin: 0;
	padding: 0 8px 8px;
	list-style: none;
}

.rms-slidein__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px;
	border-radius: 8px;
	text-decoration: none;
}

.rms-slidein__link:hover,
.rms-slidein__link:focus {
	background: var(--rms-muted, #f6f8fa);
}

.rms-slidein__thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 8px;
	overflow: hidden;
}

.rms-slidein__thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.rms-slidein__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.rms-slidein__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--rms-text, #12181d);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rms-slidein__sku {
	font-size: 11.5px;
	color: var(--rms-text-mut, #5b6b78);
}

@media (max-width: 599px) {
	.rms-slidein {
		display: none; /* On a phone the panel would cover the buy controls. */
	}
}

/* ===========================================================================
 * v1.5 — THE FULL PRODUCT-PAGE TAKEOVER (body.rms-ptk)
 *
 * Implements the agreed product-page redesign for all three storefronts:
 * two-column engineering layout, breadcrumbs, pills, price card, stacked
 * sections with a sticky nav, sticky gallery, curated product rows and the
 * mobile buy bar. Everything keys off body.rms-ptk so switching the
 * product_takeover setting off removes the entire layout in one stroke.
 * ======================================================================== */

/* ---- the grid ---- */

.rms-ptk div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px 40px;
	align-items: start;
}

@media (min-width: 901px) {
	.rms-ptk div.product {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}
}

/* Everything spans both columns unless it is one of the two columns. */
.rms-ptk div.product > * {
	grid-column: 1 / -1;
	min-width: 0;
}

@media (min-width: 901px) {
	.rms-ptk div.product > .woocommerce-product-gallery,
	.rms-ptk div.product > .rms-pleft {
		grid-column: 1;
	}

	.rms-ptk div.product > .summary,
	.rms-ptk div.product > .entry-summary {
		grid-column: 2;
		grid-row: 1 / span 4;
	}
}

/* Kill the classic float layout the grid replaces. */
.rms-ptk div.product > .woocommerce-product-gallery,
.rms-ptk div.product > .summary,
.rms-ptk div.product > .entry-summary {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
}

/* Sticky gallery — only when rms-product.js confirmed it fits (the class),
   and never on touch layouts. */
@media (min-width: 901px) {
	.rms-ptk .woocommerce-product-gallery.rms-gallery-sticky {
		position: sticky;
		top: 110px;
	}
}

/* ---- breadcrumb ---- */

.rms-crumb {
	margin: 4px 0 14px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rms-crumb__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	font-size: 12.5px;
	color: var(--rms-text-soft, #5a6772);
}

.rms-crumb__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.rms-crumb__item + .rms-crumb__item::before {
	content: "/";
	opacity: 0.45;
}

.rms-crumb__item a {
	color: inherit;
	text-decoration: none;
}

.rms-crumb__item a:hover,
.rms-crumb__item a:focus {
	color: var(--rms-primary, #0a6ea0);
	text-decoration: underline;
}

.rms-crumb__item--now {
	font-weight: 600;
	color: var(--rms-text, #12181d);
}

/* ---- lockup: brand + category pills ---- */

.rms-plockup {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 10px;
}

.rms-ppill {
	display: inline-flex;
	align-items: center;
	padding: 4px 11px;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--rms-text, #12181d);
	background: var(--rms-surface, #fff);
	text-decoration: none;
	transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.rms-ppill:hover,
.rms-ppill:focus {
	background: var(--rms-primary, #0a6ea0);
	border-color: var(--rms-primary, #0a6ea0);
	color: #fff;
}

.rms-ppill--brand {
	border-color: var(--rms-primary, #0a6ea0);
	color: var(--rms-primary, #0a6ea0);
}

/* ---- price card ---- */

.rms-pricecard {
	margin: 12px 0;
	padding: 14px 16px;
	background: var(--rms-muted, #f6f8fa);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
}

.rms-pricecard__kicker {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rms-text-soft, #5a6772);
	margin-bottom: 2px;
}

.rms-pricecard .price {
	display: block;
	margin: 0 0 4px;
	font-size: 26px;
	font-weight: 700;
	color: var(--rms-text, #12181d);
}

.rms-pricecard__note {
	margin: 0 0 6px;
	font-size: 12.5px;
	color: var(--rms-text-soft, #5a6772);
}

.rms-pricecard__stock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--rms-text-soft, #5a6772);
}

.rms-pricecard__stock::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--rms-text-soft, #5a6772);
}

.rms-pricecard__stock--in {
	color: #1c7a3d;
}

.rms-pricecard__stock--in::before {
	background: #1c7a3d;
}

/* ---- ordering & delivery ---- */

.rms-porder {
	margin: 14px 0 0;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
	background: var(--rms-surface, #fff);
}

.rms-porder__head {
	padding: 11px 14px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}

.rms-porder__head::-webkit-details-marker {
	display: none;
}

.rms-porder__head::after {
	content: "▾";
	float: right;
	transition: transform 0.15s ease;
}

.rms-porder[open] > .rms-porder__head::after {
	transform: rotate(180deg);
}

.rms-porder__body {
	padding: 0 14px 12px;
}

.rms-porder__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rms-porder__list li {
	position: relative;
	padding: 4px 0 4px 20px;
	font-size: 13.5px;
	color: var(--rms-text, #12181d);
}

.rms-porder__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 4px;
	font-weight: 700;
	color: var(--rms-primary, #0a6ea0);
}

/* ---- left column: key specs under the gallery ---- */

.rms-pleft {
	margin-top: 4px;
	padding: 14px 16px;
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
	background: var(--rms-surface, #fff);
}

.rms-pleft .rms-keyspec__cap {
	caption-side: top;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rms-text-soft, #5a6772);
	padding-bottom: 8px;
}

/* ---- sticky section nav ---- */

.rms-pnav {
	position: sticky;
	top: 0;
	z-index: 40;
	margin: 26px 0 0;
	background: var(--rms-surface, #fff);
	border-bottom: 1px solid var(--rms-border, #dfe6ec);
}

.rms-pnav__list {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rms-pnav__link {
	display: inline-block;
	padding: 12px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--rms-text-soft, #5a6772);
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

.rms-pnav__link:hover,
.rms-pnav__link:focus,
.rms-pnav__link[aria-current='true'] {
	color: var(--rms-primary, #0a6ea0);
	border-bottom-color: var(--rms-primary, #0a6ea0);
}

/* Anchored sections land below the sticky nav, not underneath it. */
.rms-ptk #rms-desc,
.rms-ptk #rms-specifications,
.rms-ptk #rms-quick-answers,
.rms-ptk #rms-prows,
.rms-ptk .rms-alt {
	scroll-margin-top: 64px;
}

/* ---- description section ---- */

.rms-pdesc {
	margin: 26px 0 0;
}

.rms-pdesc__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--rms-text, #12181d);
}

.rms-pdesc__body {
	max-width: 860px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--rms-text, #12181d);
}

.rms-pdesc__body table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.rms-pdesc__body table td,
.rms-pdesc__body table th {
	border: 1px solid var(--rms-border, #dfe6ec);
	padding: 6px 10px;
	font-size: 13px;
}

/* ---- product rows ---- */

.rms-prows {
	margin: 30px 0 0;
}

.rms-prow {
	margin: 0 0 26px;
}

.rms-prow__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 12px;
	color: var(--rms-text, #12181d);
}

.rms-prow__list {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(190px, 220px);
	gap: 12px;
	list-style: none;
	margin: 0;
	padding: 2px 2px 10px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
}

.rms-prow__item {
	scroll-snap-align: start;
	min-width: 0;
}

.rms-prow__card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	padding: 12px;
	background: var(--rms-surface, #fff);
	border: 1px solid var(--rms-border, #dfe6ec);
	border-radius: var(--rms-radius, 10px);
	text-decoration: none;
	color: var(--rms-text, #12181d);
	transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.rms-prow__card:hover,
.rms-prow__card:focus {
	border-color: var(--rms-primary, #0a6ea0);
	box-shadow: 0 6px 18px rgba(11, 18, 32, 0.08);
	transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
	.rms-prow__card,
	.rms-prow__card:hover {
		transition: none;
		transform: none;
	}
}

.rms-prow__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--rms-radius-sm, 6px);
	background: var(--rms-muted, #f6f8fa);
}

.rms-prow__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rms-prow__name {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rms-prow__sku {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	color: var(--rms-text-soft, #5a6772);
}

.rms-prow__price {
	margin-top: auto;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--rms-primary, #0a6ea0);
}

/* ---- mobile buy bar ---- */

.rms-buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 80;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
	background: var(--rms-surface, #fff);
	border-top: 1px solid var(--rms-border, #dfe6ec);
	box-shadow: 0 -8px 24px rgba(11, 18, 32, 0.1);
}

@media (min-width: 901px) {
	.rms-buybar {
		display: none;
	}
}

.rms-buybar__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
}

.rms-buybar__name {
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--rms-text, #12181d);
}

.rms-buybar__price {
	font-size: 13px;
	font-weight: 700;
	color: var(--rms-primary, #0a6ea0);
}

.rms-buybar__btn {
	flex: 0 0 auto;
	padding: 11px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--rms-primary, #0a6ea0);
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
}

.rms-buybar__btn:hover,
.rms-buybar__btn:focus {
	background: var(--rms-primary-d, #085a83);
}

/* ---- search-fallback spec links look like facet links, dotted ---- */

.rms-spec__filter--q {
	text-decoration-style: dotted;
}

/* Inside the takeover grid the container already sets the page width, so the
   stacked sections align to the same left edge as everything else instead of
   centering themselves a second time. */
.rms-ptk div.product > .rms-spec,
.rms-ptk div.product > .rms-answers {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.rms-ptk div.product > .rms-answers {
	padding: 24px 26px;
	max-width: 860px;
}
