/*
 * Arsan Configurator — customer Order Application stylesheet.
 * Rebuilt against "Arsan Order Design System v1" (§5 colour, §6 typography,
 * §7 spacing/radius/border, §8 components, §9 stepper, §10 financial summary,
 * §12 Configurator screen, §15 responsive, §16 accessibility/RTL).
 *
 * Layers, in order: (1) tokens, (2) shell/base, (3) typography,
 * (4) layout, (5) components, (6) states, (7) responsive.
 *
 * Rules: ink acts, orange indicates, gold values (§5.2).
 * Radius is 0, var(--arsan-radius) or var(--arsan-radius-pill) — nothing else (§7.2).
 * No external assets: every graphic is an inline SVG data URI.
 * !important appears only in the three documented guards marked below.
 */

/* ============================================================
 * LAYER 1 — TOKENS
 * The block between the BEGIN/END markers is mirrored byte-identically
 * across the Arsan Order plugins. Do not edit it here.
 * ============================================================ */

.arsan-configurator {
/* ARSAN ORDER DESIGN TOKENS v1 — BEGIN — mirrored byte-identically in both plugins. */
	--arsan-page: #ffffff;
	--arsan-surface: #ffffff;
	--arsan-inset: #f8f9fa;
	--arsan-ink: #1d1c1a;
	--arsan-ink-hover: #2b2a27;
	--arsan-muted: #676158;
	--arsan-faint: #746e63;
	--arsan-on-dark: #ffffff;
	--arsan-line: #bcc1c7;
	--arsan-line-strong: #606872;
	--arsan-orange: #FFA800;
	--arsan-orange-strong: #d99100;
	--arsan-orange-tint: #fff4d6;
	--arsan-gold: #b08a4a;
	--arsan-gold-tint: #f6efe0;
	--arsan-success: #3d6b4f;
	--arsan-success-tint: #edf4ef;
	--arsan-warning: #8a6a2c;
	--arsan-warning-tint: #f7f1e3;
	--arsan-error: #963a2f;
	--arsan-error-tint: #faece9;
	--arsan-disabled-surface: #eceff2;
	--arsan-disabled-ink: #68707a;
	--arsan-sp-1: 4px;
	--arsan-sp-2: 8px;
	--arsan-sp-3: 12px;
	--arsan-sp-4: 16px;
	--arsan-sp-5: 24px;
	--arsan-sp-6: 32px;
	--arsan-sp-7: 48px;
	--arsan-radius: 6px;
	--arsan-radius-pill: 999px;
	--arsan-shadow-sticky: 0 -1px 0 var(--arsan-line-strong), 0 -8px 24px -16px rgba(29, 28, 26, .2);
/* ARSAN ORDER DESIGN TOKENS v1 — END */
}

/* ============================================================
 * LAYER 2 — SHELL AND BASE
 * ============================================================ */

.arsan-configurator {
	background: #fff;
	color: var(--arsan-ink);
	font-feature-settings: "ss01" 1;
	min-height: 70vh;
	padding: var(--arsan-sp-7) 20px 96px;
}

/* 0.10.27: keep the standard Xtra page-title/breadcrumb bar visible on the Configurator route. */

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

/* Guard 1 (theme): themes commonly set display on generic children. */
.arsan-configurator [hidden] {
	display: none !important;
}

.arsan-configurator button,
.arsan-configurator input,
.arsan-configurator select,
.arsan-configurator textarea {
	font: inherit;
	color: inherit;
}

.arsan-configurator summary {
	cursor: pointer;
}

.arsan-configurator :focus-visible {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 2px;
}

.arsan-configurator__visually-hidden {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ============================================================
 * LAYER 3 — TYPOGRAPHY
 * Persian-first: no text-transform, no letter-spacing on Persian,
 * line-height >= 1.7 on paragraphs (§6.4, §16.4).
 * ============================================================ */

.arsan-configurator .arsan-type-page-title { color: var(--arsan-ink); font-size: clamp(1.3rem, 2.3vw, 1.5rem); font-weight: 700; line-height: 1.4; }
.arsan-configurator .arsan-type-product-title { color: var(--arsan-ink); font-size: 1.05rem; font-weight: 700; line-height: 1.5; }
.arsan-configurator .arsan-type-section-title { color: var(--arsan-ink); font-size: 1rem; font-weight: 700; line-height: 1.6; }
.arsan-configurator .arsan-type-field-label { color: var(--arsan-ink); font-size: .85rem; font-weight: 600; line-height: 1.5; }
.arsan-configurator .arsan-type-field-value { color: var(--arsan-ink); font-size: .9rem; font-weight: 600; }
.arsan-configurator .arsan-type-helper { color: var(--arsan-muted); font-size: .78rem; line-height: 1.75; }
.arsan-configurator .arsan-type-financial-label { color: var(--arsan-muted); font-size: .8rem; font-weight: 500; }
.arsan-configurator .arsan-type-financial-amount { color: var(--arsan-ink); font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.arsan-configurator .arsan-type-status { font-size: .78rem; font-weight: 700; }

/* Section header: no box, no fill, no side border — a 24x2px orange
 * overline tick above the title is the only graphic element (§8.2). */
.arsan-configurator__display-label {
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--arsan-ink);
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	padding: 0;
}

.arsan-configurator__display-label::before,
.arsan-configurator__field-group h3::before {
	background: var(--arsan-orange);
	content: "";
	display: block;
	height: 2px;
	margin-bottom: var(--arsan-sp-3);
	width: 24px;
}

.arsan-configurator__field-group h3 {
	background: transparent;
	border: 0;
	color: var(--arsan-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 var(--arsan-sp-4);
	padding: 0;
}

.arsan-configurator p {
	line-height: 1.8;
}

/* ============================================================
 * LAYER 4 — LAYOUT
 * ============================================================ */

.arsan-configurator__container {
	margin: 0 auto;
	max-width: 1120px;
}

/* Canonical five-stage journey. Markup, state classes and geometry mirror the
 * Order Workflow contract; each plugin owns only its scoped CSS copy. */
.arsan-configurator .arsan-workflow-progress {
	margin: 0 0 var(--arsan-sp-5);
}

.arsan-configurator .arsan-workflow-progress__list {
	display: grid;
	gap: var(--arsan-sp-2);
	grid-template-columns: repeat(5, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.arsan-configurator .arsan-workflow-progress__step {
	align-content: start;
	color: var(--arsan-muted);
	display: grid;
	font-size: .78rem;
	font-weight: 600;
	gap: var(--arsan-sp-1);
	line-height: 1.6;
	min-width: 0;
}

.arsan-configurator .arsan-workflow-progress__step::before {
	background: var(--arsan-line-strong);
	content: "";
	display: block;
	height: 3px;
	width: 100%;
}

.arsan-configurator .arsan-workflow-progress__number {
	color: inherit;
	font-variant-numeric: tabular-nums;
	font-weight: 800;
}

.arsan-configurator .arsan-workflow-progress__label {
	overflow-wrap: anywhere;
}

.arsan-configurator .arsan-workflow-progress__current {
	display: none;
}

.arsan-configurator .arsan-workflow-progress__step.is-complete {
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-workflow-progress__step.is-complete::before {
	background: var(--arsan-ink);
}

.arsan-configurator .arsan-workflow-progress__step.is-current {
	color: var(--arsan-ink);
	font-weight: 700;
}

.arsan-configurator .arsan-workflow-progress__step.is-current::before {
	background: var(--arsan-orange);
}

.arsan-configurator .arsan-workflow-progress__step.is-future {
	color: var(--arsan-faint);
	cursor: default;
	font-weight: 500;
}

.arsan-configurator .arsan-workflow-progress__step.is-future::before {
	background: var(--arsan-line);
}

.arsan-configurator__hero {
	align-items: end;
	border-bottom: 1px solid var(--arsan-line-strong);
	display: grid;
	gap: var(--arsan-sp-7);
	grid-template-columns: minmax(140px, 200px) 1fr;
	padding-bottom: var(--arsan-sp-6);
}

.arsan-configurator__product-image {
	align-items: center;
	aspect-ratio: 3 / 4;
	background: transparent;
	border: 0;
	display: flex;
	justify-content: center;
	overflow: hidden;
}

.arsan-configurator__product-image img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.arsan-configurator__product-image > span {
	color: var(--arsan-faint);
	font-size: .78rem;
}

.arsan-configurator__hero-copy {
	min-width: 0;
}

.arsan-configurator__eyebrow {
	color: var(--arsan-muted);
	display: block;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.6;
	margin-bottom: var(--arsan-sp-3);
}

.arsan-configurator__hero h1 {
	color: var(--arsan-ink);
	font-size: clamp(1.3rem, 2.3vw, 1.5rem);
	font-weight: 700;
	line-height: 1.45;
	margin: 0 0 var(--arsan-sp-3);
	overflow-wrap: anywhere;
	word-break: normal;
}

.arsan-configurator__hero p {
	color: var(--arsan-muted);
	line-height: 1.8;
	margin: var(--arsan-sp-2) 0;
	max-width: 620px;
}

.arsan-configurator__code {
	font-size: .85rem;
}

.arsan-configurator__code bdi {
	color: var(--arsan-ink);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

.arsan-configurator__layout {
	align-items: start;
	display: grid;
	gap: var(--arsan-sp-7);
	grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
	margin-top: var(--arsan-sp-7);
}

.arsan-configurator__main {
	display: grid;
	gap: 0;
	min-width: 0;
}

.arsan-configurator__card,
.arsan-configurator__summary-card,
.arsan-configurator__confirmation,
.arsan-configurator__unavailable {
	box-shadow: none;
}

.arsan-configurator__card {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	margin-top: var(--arsan-sp-6);
	padding: var(--arsan-sp-5);
}

.arsan-configurator__main > .arsan-configurator__card:first-child {
	margin-top: 0;
}

.arsan-configurator__section-heading {
	display: block;
	margin-bottom: var(--arsan-sp-5);
	padding-inline-start: var(--arsan-sp-4);
	position: relative;
}

.arsan-configurator__section-heading::before {
	background: var(--arsan-orange);
	content: "";
	height: 28px;
	inset-block-start: 2px;
	inset-inline-start: 0;
	position: absolute;
	width: 3px;
}

.arsan-configurator__section-heading p {
	color: var(--arsan-muted);
	font-size: .83rem;
	line-height: 1.75;
	margin: var(--arsan-sp-1) 0 0;
	max-width: 620px;
}

/* ============================================================
 * LAYER 5 — COMPONENTS
 * ============================================================ */

/* --- 5.1 Actions (§8.9–§8.12) --- */

.arsan-configurator .arsan-action {
	align-items: center;
	border-radius: var(--arsan-radius);
	cursor: pointer;
	display: inline-flex;
	font-size: .9rem;
	font-weight: 600;
	justify-content: center;
	min-height: 48px;
	padding: 0 var(--arsan-sp-5);
	text-decoration: none;
	-webkit-text-fill-color: currentColor;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.arsan-configurator .arsan-action--primary {
	background: var(--arsan-ink);
	border: 1px solid var(--arsan-ink);
	color: var(--arsan-on-dark);
}

.arsan-configurator .arsan-action--primary:hover:not(:disabled) {
	background: var(--arsan-ink-hover);
	border-color: var(--arsan-ink-hover);
}

.arsan-configurator .arsan-action--secondary {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-ink);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-action--secondary:hover:not(:disabled) {
	background: var(--arsan-inset);
	border-color: var(--arsan-ink);
}

.arsan-configurator .arsan-action--danger {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-error);
	color: var(--arsan-error);
}

.arsan-configurator .arsan-action--danger:hover:not(:disabled) {
	background: var(--arsan-error-tint);
}

.arsan-configurator .arsan-action--text {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--arsan-faint);
	border-radius: 0;
	color: var(--arsan-ink);
	min-height: 0;
	padding: 2px 0;
}

.arsan-configurator .arsan-action--text:hover {
	border-bottom-color: var(--arsan-orange);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-action:focus-visible {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 2px;
}

.arsan-configurator .arsan-action:disabled,
.arsan-configurator .arsan-action.is-disabled,
.arsan-configurator .arsan-action[aria-disabled="true"] {
	background: var(--arsan-disabled-surface);
	border: 0;
	color: var(--arsan-disabled-ink);
	cursor: not-allowed;
	opacity: 1;
}

.arsan-configurator__product-link,
.arsan-configurator__back {
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--arsan-faint);
	border-radius: 0;
	color: var(--arsan-ink);
	display: inline-block;
	font-size: .87rem;
	font-weight: 600;
	margin-top: var(--arsan-sp-3);
	padding: var(--arsan-sp-1) 0;
	text-decoration: none;
	-webkit-text-fill-color: currentColor;
	transition: border-color .15s ease, color .15s ease;
}

.arsan-configurator__product-link:hover,
.arsan-configurator__back:hover {
	border-bottom-color: var(--arsan-orange);
	color: var(--arsan-ink);
}

.arsan-configurator__product-link:focus-visible,
.arsan-configurator__back:focus-visible {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 3px;
}

/* --- 5.2 Choice cards: نوع سفارش (§8.14) --- */

.arsan-configurator__mode {
	display: grid;
	gap: var(--arsan-sp-3);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arsan-configurator__mode-button {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line-strong);
	border-radius: var(--arsan-radius);
	color: var(--arsan-ink);
	cursor: pointer;
	min-height: 72px;
	padding: var(--arsan-sp-4) var(--arsan-sp-5) var(--arsan-sp-4) var(--arsan-sp-4);
	position: relative;
	text-align: right;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.arsan-configurator__mode-button:hover {
	border-color: var(--arsan-ink);
}

.arsan-configurator__mode-button:focus-visible {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 3px;
}

.arsan-configurator__mode-button.is-active {
	background: var(--arsan-orange-tint);
	border: 2px solid var(--arsan-orange);
	color: var(--arsan-ink);
}

.arsan-configurator__mode-button.is-active::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23d99100' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.6 6.4 12 13 4.8'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	content: "";
	height: 16px;
	inset-inline-end: var(--arsan-sp-4);
	position: absolute;
	top: var(--arsan-sp-4);
	width: 16px;
}

.arsan-configurator__mode-button strong,
.arsan-configurator__mode-button span {
	display: block;
}

.arsan-configurator__mode-button strong {
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.6;
}

.arsan-configurator__mode-button span {
	color: var(--arsan-muted);
	font-size: .82rem;
	line-height: 1.7;
	margin-top: var(--arsan-sp-1);
}

/* The word «انتخاب‌شده» stays for screen readers; the border and the check
 * carry the state visually. No dark pill inside a card (§8.14). */
.arsan-configurator__mode-selected {
	display: none;
}

.arsan-configurator__mode-button.is-active .arsan-configurator__mode-selected {
	clip-path: inset(50%);
	display: block;
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* --- 5.3 Spec table (§8.4) --- */

.arsan-configurator__spec-grid {
	background: var(--arsan-line);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	box-sizing: border-box;
	display: grid;
	gap: 1px;
	grid-template-columns: minmax(0, 1fr);
	margin: 0;
	overflow: hidden;
	padding: 0 !important;
	width: 100%;
}

.arsan-configurator__spec {
	align-items: center;
	background: #fbfaf6;
	column-gap: var(--arsan-sp-3);
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	min-height: 46px;
	padding: var(--arsan-sp-3) 14px;
}

.arsan-configurator__spec dt,
.arsan-configurator__spec span {
	color: var(--arsan-muted);
	font-size: .83rem;
	font-weight: 500;
	line-height: 1.6;
	margin: 0;
	white-space: nowrap;
}

.arsan-configurator__spec dd,
.arsan-configurator__spec strong {
	color: var(--arsan-ink);
	font-size: .88rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0;
	min-width: 0;
	overflow-wrap: normal;
	text-align: start;
	word-break: normal;
}

/* --- 5.4 Field groups and fields (§12.3) --- */

.arsan-configurator__custom-fields,
.arsan-configurator__field-group + .arsan-configurator__field-group {
	margin-top: var(--arsan-sp-7);
}

.arsan-configurator__field-group {
	border: 0;
	padding: 0;
}

.arsan-configurator__field-grid,
.arsan-configurator__size-grid,
.arsan-configurator__order-fields {
	display: grid;
	gap: var(--arsan-sp-4);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arsan-configurator__order-fields {
	align-items: end;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.arsan-configurator__size-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.arsan-configurator__field > label,
.arsan-configurator__size-grid label,
.arsan-configurator__direction-quantity {
	color: var(--arsan-ink);
	display: block;
	font-size: .85rem;
	font-weight: 600;
	line-height: 1.5;
	margin-bottom: var(--arsan-sp-2);
}

.arsan-configurator__detected-form {
	align-items: center;
	background: var(--arsan-inset);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	display: flex;
	gap: var(--arsan-sp-3);
	justify-content: space-between;
	min-height: 48px;
	padding: var(--arsan-sp-2) var(--arsan-sp-4);
}

.arsan-configurator__detected-form span {
	color: var(--arsan-muted);
	font-size: .78rem;
}

.arsan-configurator__detected-form strong {
	color: var(--arsan-ink);
	font-size: .88rem;
	font-weight: 600;
}

.arsan-configurator__help,
.arsan-configurator__auto,
.arsan-configurator__empty {
	color: var(--arsan-muted);
	font-size: .78rem;
	line-height: 1.75;
	margin: var(--arsan-sp-2) 0 0;
	max-width: 620px;
}

.arsan-configurator__auto {
	color: var(--arsan-warning);
}

.arsan-configurator__field.is-locked {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}

.arsan-configurator__locked-value {
	background: var(--arsan-disabled-surface);
	border: 0;
	border-radius: var(--arsan-radius);
	color: var(--arsan-disabled-ink);
	font-size: .88rem;
	font-weight: 600;
	min-height: 48px;
	padding: var(--arsan-sp-3) var(--arsan-sp-4);
}

.arsan-configurator__locked-message {
	color: var(--arsan-muted);
	font-size: .78rem;
	line-height: 1.75;
	margin: var(--arsan-sp-2) 0 0;
}

/* --- 5.5 Text and select controls (§8.5, §8.6) --- */

.arsan-configurator select,
.arsan-configurator input[type="number"],
.arsan-configurator input[type="text"] {
	background-color: var(--arsan-surface);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	color: var(--arsan-ink);
	height: 48px;
	outline: none;
	padding: 0 var(--arsan-sp-3);
	transition: border-color .15s ease;
	width: 100%;
}

/* One inline SVG chevron at the RTL end edge, 40px of reserved padding. */
.arsan-configurator select {
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23676158' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-position: left 14px center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
	cursor: pointer;
	padding: 0 12px 0 42px;
}

.arsan-configurator select:hover:not(:disabled),
.arsan-configurator input[type="number"]:hover:not(:disabled) {
	border-color: var(--arsan-faint);
}

.arsan-configurator select:disabled,
.arsan-configurator input:disabled {
	background-color: var(--arsan-disabled-surface);
	border: 0;
	color: var(--arsan-disabled-ink);
	cursor: not-allowed;
	opacity: 1;
}

.arsan-configurator select:disabled {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%236e685f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
}

.arsan-configurator select:focus-visible,
.arsan-configurator input:focus-visible {
	border-color: var(--arsan-orange);
	outline: 2px solid var(--arsan-orange);
	outline-offset: 2px;
}

.arsan-configurator ::placeholder {
	color: var(--arsan-faint);
	opacity: 1;
}

/* --- 5.6 Numeric stepper (§9) --- */

.arsan-configurator__number-control {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	direction: ltr;
	display: grid;
	grid-template-columns: 44px minmax(72px, 1fr) 44px;
	overflow: hidden;
	width: 100%;
}

.arsan-configurator__number-control input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
	background: var(--arsan-surface);
	border: 0;
	border-left: 1px solid var(--arsan-line);
	border-radius: 0;
	border-right: 1px solid var(--arsan-line);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	grid-column: 2;
	height: 42px;
	margin: 0;
	text-align: center;
}

.arsan-configurator__number-control input[type="number"]::-webkit-inner-spin-button,
.arsan-configurator__number-control input[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.arsan-configurator__number-control input[type="number"]:focus-visible {
	border-color: var(--arsan-line);
	outline: 2px solid var(--arsan-orange);
	outline-offset: -2px;
}

.arsan-configurator__number-stepper {
	align-items: center;
	background: var(--arsan-surface);
	border: 0;
	border-radius: 0;
	color: var(--arsan-ink);
	cursor: pointer;
	display: inline-flex;
	justify-content: center;
	min-height: 42px;
	padding: 0;
	-webkit-text-fill-color: currentColor;
	transition: background-color .12s ease, color .12s ease;
}

.arsan-configurator__number-stepper svg {
	display: block;
	height: 14px;
	pointer-events: none;
	width: 14px;
}

.arsan-configurator__number-stepper:hover:not(:disabled) {
	background: var(--arsan-inset);
	color: var(--arsan-ink);
}

.arsan-configurator__number-stepper:active:not(:disabled),
.arsan-configurator__number-stepper.is-pressed:not(:disabled) {
	background: var(--arsan-ink);
	color: var(--arsan-on-dark);
}

.arsan-configurator__number-stepper:focus-visible {
	outline: 2px solid var(--arsan-orange);
	outline-offset: -2px;
}

.arsan-configurator__number-stepper:disabled,
.arsan-configurator__number-stepper[aria-disabled="true"] {
	background: var(--arsan-disabled-surface);
	color: var(--arsan-disabled-ink);
	cursor: not-allowed;
	opacity: 1;
}

/* --- 5.7 Radio/boolean choices --- */

.arsan-configurator__choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--arsan-sp-2);
}

.arsan-configurator__choice {
	position: relative;
}

.arsan-configurator__choice input {
	opacity: 0;
	position: absolute;
}

.arsan-configurator__choice > span {
	align-items: center;
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line-strong);
	border-radius: var(--arsan-radius);
	cursor: pointer;
	display: inline-flex;
	font-size: .84rem;
	gap: var(--arsan-sp-2);
	min-height: 44px;
	padding: var(--arsan-sp-2) var(--arsan-sp-4);
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.arsan-configurator__choice input:focus-visible + span {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 2px;
}

.arsan-configurator__choice.is-selected > span,
.arsan-configurator__choice input:checked + span {
	background: var(--arsan-orange-tint);
	border-color: var(--arsan-orange);
	color: var(--arsan-ink);
	font-weight: 600;
}

.arsan-configurator__choice small {
	background: var(--arsan-inset);
	border-radius: var(--arsan-radius-pill);
	color: var(--arsan-muted);
	font-size: .68rem;
	font-weight: 600;
	padding: 2px var(--arsan-sp-2);
}

/* Extra vertical profile: keep the two boolean choices as equal cards in one row. */
.arsan-configurator__choice-list:has(input[data-field="extra_vertical_profile"]) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--arsan-sp-3);
	width: 100%;
}

.arsan-configurator__choice-list:has(input[data-field="extra_vertical_profile"]) .arsan-configurator__choice {
	display: flex;
	min-width: 0;
}

.arsan-configurator__choice-list:has(input[data-field="extra_vertical_profile"]) .arsan-configurator__choice > span {
	box-sizing: border-box;
	flex: 1 1 auto;
	justify-content: center;
	text-align: center;
	width: 100%;
}

@media (max-width: 320px) {
	.arsan-configurator__choice-list:has(input[data-field="extra_vertical_profile"]) {
		grid-template-columns: 1fr;
	}
}

/* --- 5.8 Quantity by direction (§8.8) --- */

.arsan-configurator__direction-quantity input {
	margin-top: var(--arsan-sp-2);
}

.arsan-configurator__direction-quantity .arsan-configurator__number-control {
	margin-top: var(--arsan-sp-2);
}

.arsan-configurator__quantity-total {
	align-items: center;
	background: var(--arsan-inset);
	border-radius: var(--arsan-radius);
	display: flex;
	gap: var(--arsan-sp-3);
	grid-column: 1 / -1;
	justify-content: space-between;
	min-height: 48px;
	padding: var(--arsan-sp-3) var(--arsan-sp-4);
}

.arsan-configurator__quantity-total span {
	color: var(--arsan-muted);
	font-size: .82rem;
}

.arsan-configurator__quantity-total strong {
	color: var(--arsan-ink);
	font-size: .95rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
}

.arsan-configurator__order-help {
	color: var(--arsan-muted);
	font-size: .78rem;
	line-height: 1.8;
	margin: var(--arsan-sp-3) 0 0;
	max-width: 620px;
}

/* --- 5.9 Summary panel and financial tiers (§10) --- */

.arsan-configurator__summary {
	position: sticky;
	top: var(--arsan-sp-6);
}

.arsan-configurator__summary-card {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line-strong);
	border-radius: var(--arsan-radius);
	min-width: 0;
	padding: var(--arsan-sp-5);
}

.arsan-configurator__summary-card > h2 {
	color: var(--arsan-ink);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.6;
	margin: 0 0 var(--arsan-sp-4);
}

.arsan-configurator__summary-details {
	border-top: 1px solid var(--arsan-line-strong);
	margin-bottom: var(--arsan-sp-4);
	padding-top: var(--arsan-sp-3);
}

.arsan-configurator__summary-details > summary {
	color: var(--arsan-ink);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.6;
	list-style: none;
	min-height: 44px;
	padding: var(--arsan-sp-3) 0;
}

.arsan-configurator__summary-details > summary::-webkit-details-marker {
	display: none;
}

.arsan-configurator__summary-details > summary::after {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23676158' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
	content: "";
	display: inline-block;
	height: 12px;
	margin-right: var(--arsan-sp-2);
	vertical-align: middle;
	width: 12px;
}

.arsan-configurator__summary-details[open] > summary::after {
	transform: rotate(180deg);
}

.arsan-configurator__summary-section {
	border-top: 1px solid var(--arsan-line);
	margin-bottom: var(--arsan-sp-3);
	padding-top: var(--arsan-sp-3);
}

.arsan-configurator__summary-section h3 {
	color: var(--arsan-muted);
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.6;
	margin: 0 0 var(--arsan-sp-2);
}

.arsan-configurator__summary-section ul {
	color: var(--arsan-muted);
	font-size: .8rem;
	line-height: 1.75;
	margin: 0 var(--arsan-sp-4) 0 0;
	padding: 0;
}

/* Tier 1: supporting figures. */
.arsan-configurator__summary-section > div,
.arsan-configurator__summary-row,
.arsan-configurator__total {
	border-top: 1px solid var(--arsan-line);
	display: flex;
	gap: var(--arsan-sp-2);
	justify-content: space-between;
	padding: var(--arsan-sp-2) 0;
}

.arsan-configurator__summary-section > div span,
.arsan-configurator__summary-row span,
.arsan-configurator__total span {
	color: var(--arsan-muted);
	font-size: .8rem;
	font-weight: 400;
	line-height: 1.6;
}

.arsan-configurator__summary-section > div strong,
.arsan-configurator__summary-row strong,
.arsan-configurator__total strong {
	color: var(--arsan-ink);
	font-size: .9rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	line-height: 1.6;
}

/* Tier 2: the one decisive number on the screen. */
.arsan-configurator__line-total {
	background: var(--arsan-gold-tint);
	border: 1px solid var(--arsan-gold);
	border-radius: var(--arsan-radius);
	display: grid;
	gap: var(--arsan-sp-1);
	margin: var(--arsan-sp-4) 0 0;
	min-width: 0;
	padding: var(--arsan-sp-4);
}

.arsan-configurator__line-total > .arsan-financial-label {
	color: var(--arsan-muted);
	font-size: .8rem;
	font-weight: 500;
	line-height: 1.6;
}

.arsan-configurator__line-total strong {
	color: var(--arsan-ink);
	font-size: clamp(1.35rem, 4.2vw, 2rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.3;
	max-width: 100%;
	min-width: 0;
}

.arsan-configurator__financial-amount {
	align-items: baseline;
	column-gap: var(--arsan-sp-2);
	display: flex;
	flex-wrap: wrap;
	overflow-wrap: anywhere;
	white-space: normal;
}

.arsan-configurator__currency {
	color: var(--arsan-muted);
	display: inline-block;
	font-size: .5em;
	font-weight: 600;
	white-space: nowrap;
}

/* Shared Order Application financial-total contract. Keep declaration values
 * in sync with Order Workflow; regression tests compare both copies. */
.arsan-configurator .arsan-financial-total {
	background: var(--arsan-gold-tint);
	border: 1px solid var(--arsan-gold);
	border-radius: var(--arsan-radius);
	display: grid;
	gap: var(--arsan-sp-1);
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
	padding: var(--arsan-sp-4) var(--arsan-sp-5);
}

.arsan-configurator .arsan-financial-label {
	color: var(--arsan-muted);
	font-size: .8rem;
	font-weight: 500;
}

.arsan-configurator .arsan-financial-amount {
	align-items: baseline;
	color: var(--arsan-ink);
	column-gap: var(--arsan-sp-2);
	display: flex;
	flex-wrap: wrap;
	font-size: clamp(1.35rem, 4.2vw, 2rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.3;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal;
}

.arsan-configurator .arsan-financial-currency {
	color: var(--arsan-muted);
	display: inline-block;
	font-size: .5em;
	font-weight: 600;
	white-space: nowrap;
}

.arsan-configurator__lead-time {
	background: transparent;
	color: var(--arsan-muted);
	font-size: .8rem;
	line-height: 1.75;
	margin: var(--arsan-sp-3) 0;
	text-align: right;
}

.arsan-configurator__phase-note {
	color: var(--arsan-muted);
	font-size: .78rem;
	line-height: 1.75;
	margin: var(--arsan-sp-3) 0 0;
}

/* --- 5.10 Notices (§8.18, §8.19) --- */

.arsan-configurator__notice {
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	color: var(--arsan-ink);
	font-size: .82rem;
	line-height: 1.8;
	margin-bottom: var(--arsan-sp-4);
	padding: var(--arsan-sp-3) var(--arsan-sp-4);
}

.arsan-configurator__notice ul {
	margin: var(--arsan-sp-2) var(--arsan-sp-4) 0 0;
	padding: 0;
}

.arsan-configurator__notice.is-error {
	background: var(--arsan-error-tint);
	border-color: var(--arsan-error);
}

.arsan-configurator__notice.is-warning {
	background: var(--arsan-warning-tint);
	border-color: var(--arsan-warning);
}

.arsan-configurator__notice.is-success {
	background: var(--arsan-success-tint);
	border-color: var(--arsan-success);
}

.arsan-configurator__notice.is-calculating {
	align-items: center;
	background: var(--arsan-surface);
	border-color: var(--arsan-line);
	color: var(--arsan-muted);
	display: flex;
	gap: var(--arsan-sp-2);
}

.arsan-configurator__notice.is-calculating > span {
	animation: arsan-configurator-spin .8s linear infinite;
	border: 1.5px solid var(--arsan-line);
	border-radius: var(--arsan-radius-pill);
	border-top-color: var(--arsan-orange);
	flex: 0 0 14px;
	height: 14px;
	width: 14px;
}

.arsan-configurator__retry {
	display: inline-block;
	margin-inline-start: var(--arsan-sp-2);
	background: transparent;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	margin-top: var(--arsan-sp-2);
	padding: 0;
}

@keyframes arsan-configurator-spin {
	to { transform: rotate(360deg); }
}

/* --- 5.11 Primary CTA (§8.9) and confirmation --- */

.arsan-configurator .arsan-configurator__confirm {
	background: var(--arsan-ink);
	border: 0;
	border-radius: var(--arsan-radius);
	color: var(--arsan-on-dark);
	cursor: pointer;
	font-size: .92rem;
	font-weight: 600;
	min-height: 48px;
	padding: 0 var(--arsan-sp-5);
	-webkit-text-fill-color: var(--arsan-on-dark);
	transition: background-color .18s ease;
	width: 100%;
}

.arsan-configurator .arsan-configurator__confirm:hover:not(:disabled) {
	background: var(--arsan-ink-hover);
}

.arsan-configurator .arsan-configurator__confirm:focus-visible:not(:disabled) {
	outline: 2px solid var(--arsan-orange);
	outline-offset: 3px;
}

.arsan-configurator .arsan-configurator__confirm:disabled {
	background: var(--arsan-disabled-surface);
	border: 0;
	color: var(--arsan-disabled-ink);
	cursor: not-allowed;
	opacity: 1;
}

.arsan-configurator__confirmation {
	background: var(--arsan-success-tint);
	border: 1px solid var(--arsan-success);
	border-radius: var(--arsan-radius);
	display: grid;
	gap: var(--arsan-sp-1);
	margin-top: var(--arsan-sp-5);
	padding: var(--arsan-sp-4);
}

.arsan-configurator__confirmation strong {
	color: var(--arsan-ink);
}

.arsan-configurator__confirmation small {
	color: var(--arsan-muted);
	line-height: 1.75;
}

.arsan-configurator__unavailable {
	margin: var(--arsan-sp-7) auto;
	max-width: 560px;
	padding: 0;
	text-align: center;
}

.arsan-configurator__unavailable h1 {
	font-weight: 700;
	margin-top: 0;
}

/* ============================================================
 * LAYER 6 — STATES
 * ============================================================ */

.arsan-configurator .arsan-state--selected {
	background: var(--arsan-orange-tint);
	border-color: var(--arsan-orange);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-state--success {
	background: var(--arsan-success-tint);
	border-color: var(--arsan-success);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-state--warning,
.arsan-configurator .arsan-state--needs-review {
	background: var(--arsan-warning-tint);
	border-color: var(--arsan-warning);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-state--error {
	background: var(--arsan-error-tint);
	border-color: var(--arsan-error);
	color: var(--arsan-ink);
}

.arsan-configurator .arsan-state--disabled {
	background: var(--arsan-disabled-surface);
	border: 0;
	color: var(--arsan-disabled-ink);
}

.arsan-configurator .arsan-financial-register {
	background: var(--arsan-gold-tint);
	border-color: var(--arsan-gold);
}

.arsan-configurator.is-loading .arsan-configurator__summary-card {
	opacity: .6;
	pointer-events: none;
}

/* ============================================================
 * LAYER 7 — RESPONSIVE AND ENVIRONMENT
 * ============================================================ */

@media (max-width: 960px) {
	.arsan-configurator__layout {
		gap: var(--arsan-sp-5);
		grid-template-columns: 1fr;
		padding-bottom: 120px;
	}

	.arsan-configurator__main {
		padding-bottom: var(--arsan-sp-5);
	}

	/* The summary is not duplicated: the same element becomes the
	 * sticky decision bar, so the single aria-live region is preserved. */
	.arsan-configurator__summary {
		bottom: 0;
		position: sticky;
		top: auto;
		z-index: 20;
	}

	.arsan-configurator__summary-card {
		background: var(--arsan-surface);
		border: 0;
		border-radius: 0;
		box-shadow: var(--arsan-shadow-sticky);
		margin: 0 -16px;
		max-height: 80vh;
		overflow-y: auto;
		padding: var(--arsan-sp-3) var(--arsan-sp-4) var(--arsan-sp-4);
	}

	.arsan-configurator__summary-card > h2 {
		clip-path: inset(50%);
		height: 1px;
		margin: 0;
		overflow: hidden;
		position: absolute;
		white-space: nowrap;
		width: 1px;
	}

	.arsan-configurator__summary-details {
		border-top: 0;
		margin-bottom: var(--arsan-sp-2);
		padding-top: 0;
	}

	.arsan-configurator__line-total {
		margin-top: var(--arsan-sp-2);
		padding: var(--arsan-sp-3) var(--arsan-sp-4);
	}


	.arsan-configurator__lead-time {
		margin: var(--arsan-sp-2) 0;
	}
}

@media (max-width: 700px) {
	.arsan-configurator .arsan-workflow-progress__list {
		column-gap: var(--arsan-sp-2);
		grid-template-columns: repeat(5, minmax(0, 1fr));
		row-gap: 0;
	}

	.arsan-configurator .arsan-workflow-progress__step {
		font-size: .75rem;
		gap: 2px;
		grid-column: auto;
		line-height: 1.2;
		text-align: center;
	}

	.arsan-configurator .arsan-workflow-progress__step:nth-child(4) {
		grid-column: auto;
	}

	.arsan-configurator .arsan-workflow-progress__step::before {
		height: 2px;
		justify-self: center;
		width: calc(100% - 8px);
	}

	.arsan-configurator .arsan-workflow-progress__number {
		line-height: 1.2;
		white-space: nowrap;
	}

	.arsan-configurator .arsan-workflow-progress__step.is-current .arsan-workflow-progress__number {
		color: var(--arsan-orange);
	}

	.arsan-configurator .arsan-workflow-progress__label {
		display: none;
	}

	.arsan-configurator .arsan-workflow-progress__current {
		color: var(--arsan-ink);
		display: block;
		font-size: .75rem;
		font-weight: 700;
		line-height: 1.5;
		margin: var(--arsan-sp-2) 0 0;
	}

	.arsan-configurator .arsan-financial-amount {
		font-size: 1.75rem;
	}

	.arsan-configurator {
		padding: var(--arsan-sp-5) 16px var(--arsan-sp-5);
	}

	.arsan-configurator__hero {
		gap: var(--arsan-sp-4);
		grid-template-columns: 96px minmax(0, 1fr);
		padding-bottom: var(--arsan-sp-5);
	}

	/* The title wraps to at most two lines; it is never set to nowrap
	 * and never ellipsised (§8.1, §17.12). */
	.arsan-configurator__hero h1 {
		display: -webkit-box;
		font-size: clamp(1.05rem, 5vw, 1.3rem);
		-webkit-line-clamp: 2;
		line-clamp: 2;
		-webkit-box-orient: vertical;
		line-height: 1.5;
		margin-bottom: var(--arsan-sp-2);
		overflow: hidden;
	}

	/* The hero description carries the only sentence explaining the page:
	 * it is reorganised on mobile, never removed. */
	.arsan-configurator__hero p {
		display: block;
	}

	.arsan-configurator__layout {
		margin-top: var(--arsan-sp-5);
	}

	.arsan-configurator__card {
		padding-top: var(--arsan-sp-6);
	}

	.arsan-configurator__section-heading {
		margin-bottom: 20px;
	}

	.arsan-configurator__mode,
	.arsan-configurator__spec-grid,
	.arsan-configurator__field-grid,
	.arsan-configurator__size-grid,
	.arsan-configurator__order-fields {
		grid-template-columns: 1fr;
	}

	.arsan-configurator__spec {
		column-gap: var(--arsan-sp-2);
		min-height: 44px;
		padding: 9px 10px;
	}

	/* 0.10.12 mobile correction: the Xtra host theme keeps dt at 200px until
	 * its own 280px breakpoint.  Use one auto-layout table across all rows and
	 * reset generic dl/dt/dd geometry only inside the Configurator spec block. */
	.arsan-configurator__spec-grid {
		border-collapse: separate;
		border-spacing: 0;
		display: table;
		gap: 0;
		grid-template-columns: none;
		margin-inline: calc(0px - var(--arsan-sp-3));
		table-layout: auto;
		width: calc(100% + var(--arsan-sp-5));
	}

	.arsan-configurator__spec {
		background: transparent;
		display: table-row;
		min-height: 0;
		padding: 0;
	}

	.arsan-configurator__spec > dt,
	.arsan-configurator__spec > span,
	.arsan-configurator__spec > dd,
	.arsan-configurator__spec > strong {
		background: #fbfaf6;
		display: table-cell;
		float: none;
		margin: 0;
		max-width: none;
		min-width: 0;
		overflow: visible;
		overflow-wrap: normal;
		padding: 9px 6px;
		text-overflow: clip;
		vertical-align: middle;
		white-space: normal;
		width: auto;
		word-break: normal;
	}

	.arsan-configurator__spec + .arsan-configurator__spec > dt,
	.arsan-configurator__spec + .arsan-configurator__spec > span,
	.arsan-configurator__spec + .arsan-configurator__spec > dd,
	.arsan-configurator__spec + .arsan-configurator__spec > strong {
		border-top: 1px solid var(--arsan-line);
	}

	.arsan-configurator input,
	.arsan-configurator select,
	.arsan-configurator textarea {
		font-size: 16px;
	}

	.arsan-configurator__number-control {
		grid-template-columns: 48px minmax(72px, 1fr) 48px;
	}

	.arsan-configurator__number-control input[type="number"] {
		height: 46px;
	}

	.arsan-configurator__number-stepper {
		min-height: 46px;
	}

	.arsan-configurator__number-stepper svg {
		height: 16px;
		width: 16px;
	}
}

@media (max-width: 420px) {
	.arsan-configurator__hero {
		gap: var(--arsan-sp-3);
		grid-template-columns: 60px minmax(0, 1fr);
	}
}

@media (max-width: 350px) {
	.arsan-configurator__hero {
		gap: var(--arsan-sp-3);
		grid-template-columns: 1fr;
	}

	.arsan-configurator__product-image {
		justify-self: end;
		width: 64px;
	}
}

@media (forced-colors: active) {
	.arsan-configurator select {
		-webkit-appearance: auto;
		appearance: auto;
		background-image: none;
		padding-left: 12px;
	}

	.arsan-configurator__mode-button.is-active::after,
	.arsan-configurator__summary-details > summary::after {
		background-image: none;
	}
}

/* Guard 2 (user preference): motion must stop everywhere inside the subtree. */
@media (prefers-reduced-motion: reduce) {
	.arsan-configurator * {
		scroll-behavior: auto !important;
		transition: none !important;
	}

	.arsan-configurator__notice.is-calculating > span {
		animation: none;
	}
}

/* --- 5.13 Ready Stock Variant (0.10.22, presentation only) ------------------
 * Every rule is scoped to .arsan-ready-stock. Specification and availability
 * rows reuse the approved «مشخصات سفارش» contract
 * (.arsan-configurator__spec-grid / .arsan-configurator__spec) instead of a
 * second visual system, so borders, surface, typography, Persian wrapping and
 * the 0.10.12 mobile auto-table geometry are inherited unchanged. No shared
 * component is redefined here. */

.arsan-ready-stock__list { display: grid; gap: var(--arsan-sp-5); }

.arsan-ready-stock__item {
	background: var(--arsan-surface);
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius);
	display: grid;
	gap: 0;
	overflow: hidden;
}

/* Orange indicates state; the border stays 1px so nothing reflows on select. */
.arsan-ready-stock__item.is-selected {
	border-color: var(--arsan-orange);
	box-shadow: inset 0 0 0 1px var(--arsan-orange);
}

.arsan-ready-stock__item-head {
	align-items: center;
	background: var(--arsan-inset);
	border-bottom: 1px solid var(--arsan-line);
	column-gap: var(--arsan-sp-3);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	padding: var(--arsan-sp-3) var(--arsan-sp-4);
	row-gap: var(--arsan-sp-2);
}

.arsan-ready-stock__item.is-selected .arsan-ready-stock__item-head {
	background: var(--arsan-orange-tint);
	border-bottom-color: var(--arsan-orange);
}

.arsan-ready-stock__identity {
	align-items: center;
	column-gap: var(--arsan-sp-3);
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
	row-gap: var(--arsan-sp-1);
}

.arsan-ready-stock__size {
	color: var(--arsan-ink);
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.6;
}

.arsan-ready-stock__match {
	border: 1px solid var(--arsan-line);
	border-radius: var(--arsan-radius-pill);
	color: var(--arsan-muted);
	font-size: .78rem;
	font-weight: 600;
	line-height: 1.6;
	padding: 2px var(--arsan-sp-3);
}

.arsan-ready-stock__match.is-exact {
	background: var(--arsan-orange-tint);
	border-color: var(--arsan-orange);
	color: var(--arsan-ink);
}

.arsan-ready-stock__item small.arsan-ready-stock__delivery {
	color: var(--arsan-success);
	font-size: .8rem;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.arsan-ready-stock__body {
	display: grid;
	gap: var(--arsan-sp-4);
	padding: var(--arsan-sp-4);
}

.arsan-ready-stock__block {
	display: grid;
	gap: var(--arsan-sp-2);
	min-width: 0;
}

.arsan-ready-stock__block-title {
	color: var(--arsan-muted);
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: normal;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	text-transform: none;
}

/* Financial emphasis reuses the shared gold register; no global rule changes. */
.arsan-ready-stock__price {
	align-items: baseline;
	border: 1px solid var(--arsan-gold);
	border-radius: var(--arsan-radius);
	column-gap: var(--arsan-sp-3);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	margin: 0;
	padding: var(--arsan-sp-3) var(--arsan-sp-4);
	row-gap: var(--arsan-sp-1);
}

.arsan-ready-stock__amount {
	color: var(--arsan-ink);
	font-size: clamp(1.05rem, 3.4vw, 1.3rem);
	font-variant-numeric: tabular-nums;
	font-weight: 800;
	line-height: 1.4;
	min-width: 0;
	overflow-wrap: anywhere;
	white-space: normal;
}

.arsan-ready-stock button, .arsan-ready-stock__reset { min-height: 44px; border-radius: 9px; cursor: pointer; }
.arsan-ready-stock__item button { border: 0; background: var(--arsan-ink); color: #fff; padding: 9px 16px; }
.arsan-ready-stock__item button,
.arsan-ready-stock__selection-status { align-items: center; box-sizing: border-box; display: inline-flex; font-weight: 700; justify-content: center; min-height: 44px; width: 100%; }
.arsan-ready-stock__selection-status { background: var(--arsan-success-tint); border: 1px solid var(--arsan-success); border-radius: 9px; color: var(--arsan-success-ink, #166534); padding: 9px 16px; }
.arsan-ready-stock__actions { align-items: center; display: grid; gap: 10px; grid-template-columns: minmax(0, auto) minmax(0, auto); justify-content: space-between; margin-top: 16px; }
.arsan-ready-stock__action-slot { align-items: center; display: flex; min-width: 0; }
.arsan-ready-stock__action-slot--browse { grid-column: 1; grid-row: 1; }
.arsan-ready-stock__action-slot--reset { grid-column: 2; grid-row: 1; }
.arsan-ready-stock__browse {
	align-items: center;
	background: var(--arsan-ink);
	border: 1px solid var(--arsan-ink);
	border-radius: 9px;
	color: #fff;
	display: inline-flex;
	font-size: .86rem;
	font-weight: 700;
	gap: 10px;
	justify-content: center;
	line-height: 1.6;
	min-height: 46px;
	padding: 9px 18px;
	text-decoration: none;
	transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}
.arsan-ready-stock__browse svg { fill: none; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 18px; }
.arsan-ready-stock__browse:hover { background: var(--arsan-ink-hover); border-color: var(--arsan-ink-hover); color: #fff; }
.arsan-ready-stock__browse:active { transform: translateY(1px); }
.arsan-ready-stock__browse:focus-visible { outline: 3px solid var(--arsan-orange); outline-offset: 3px; }
.arsan-ready-stock__reset {
	align-items: center;
	background: #fff;
	border: 1px solid var(--arsan-line-strong);
	box-sizing: border-box;
	color: var(--arsan-ink);
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	line-height: 1.45;
	min-height: 46px;
	padding: 9px 18px;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.arsan-ready-stock__reset:hover { background: var(--arsan-bg-soft); border-color: var(--arsan-ink); color: var(--arsan-ink); }
.arsan-ready-stock__reset:active { transform: translateY(1px); }
.arsan-ready-stock__reset:focus-visible { outline: 3px solid var(--arsan-orange); outline-offset: 3px; }
/* Mobile: same breakpoint as the shared specification auto-table. The shared
 * table reclaims 12px of the surrounding card padding; inside a Variant the
 * padding is already compact, so the table stays inside the padding box. Row
 * geometry, wrapping and the Xtra dt/dd neutralisation are untouched. */
@media screen and (max-width: 700px) {
	.arsan-ready-stock__item-head { padding: var(--arsan-sp-3); }
	.arsan-ready-stock__body { gap: var(--arsan-sp-3); padding: var(--arsan-sp-3); }
	.arsan-ready-stock__price { padding: var(--arsan-sp-3); }
	.arsan-ready-stock .arsan-configurator__spec-grid { margin-inline: 0; width: 100%; }
}

@media (max-width: 600px) {
	.arsan-ready-stock__actions { align-items: stretch; grid-template-columns: minmax(0, 1fr); }
	.arsan-ready-stock__action-slot--browse { grid-column: 1; grid-row: 1; }
	.arsan-ready-stock__action-slot--reset { grid-column: 1; grid-row: 2; }
	.arsan-ready-stock__action-slot,
	.arsan-ready-stock__browse,
	.arsan-ready-stock__reset { width: 100%; }
	.arsan-ready-stock__browse,
	.arsan-ready-stock__reset,
	.arsan-ready-stock__item button,
	.arsan-ready-stock__selection-status { min-height: 48px; padding: 11px 14px; }
}
