/* The account chain (ticket #184): the design layer, the guest cards and the
 * gates. The owner-accepted prototype is the source —
 * docs/design/2026-10-15-account-redesign/prototype/assets/app.css — and its
 * values are the ones below: the teal ramp, the ease and the duration are the
 * site's own tokens (content/windpress/tokens.css), everything the tokens do
 * not carry is named --acct-* here, once, for both this file and account.css.
 *
 * This file also carries the contact form and the Proforma request's own
 * rules; they are the replica surfaces and stay as they are.
 * This file is discovered by WindPressVolume::files() and compiled via main.css.
 */

/* ── The account chain's design layer ──────────────────────────────────── */
:root {
	--acct-canvas: var(--proto-canvas-zebra);      /* #f4f6f6 · the chain's page ground */
	--acct-ink: var(--proto-ink);
	--acct-ink-2: var(--proto-neutral-700);
	--acct-muted: var(--proto-neutral-500);
	--acct-faint: var(--proto-neutral-400);
	--acct-line: var(--proto-neutral-200);
	--acct-line-soft: var(--proto-neutral-100);
	--acct-card: var(--proto-canvas-white);
	--acct-fill: #eef1f1;                          /* the prototype's input/soft fill */
	--acct-fill-hover: #e7eaea;
	--acct-ok: var(--proto-sem-ok);
	--acct-ok-ink: #1d5239;
	--acct-ok-bg: #edf6f1;
	--acct-warn: var(--proto-sem-warn);
	--acct-warn-ink: #7a6020;
	--acct-warn-bg: #faf5e8;
	--acct-danger: var(--proto-sem-danger);
	--acct-danger-ink: #7c3526;
	--acct-danger-bg: #faf0ed;
	--acct-r-sm: 10px;
	--acct-r-md: 14px;
	--acct-r-lg: 20px;
	--acct-r-xl: 28px;
	--acct-shadow-card: 0 1px 2px rgba(12, 15, 15, 0.04), 0 12px 40px rgba(12, 15, 15, 0.07);
	--acct-shadow-pop: 0 4px 12px rgba(12, 15, 15, 0.08), 0 24px 64px rgba(12, 15, 15, 0.14);
}

/* ── The account chain's shared components ─────────────────────────────── */
.linker-auth .linker-auth-hint,
.linker-account .linker-account-hint,
.linker-account .linker-account-note {
	display: block;
	margin: 6px 0 0;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--acct-muted);
}

.linker-auth .linker-auth-error,
.linker-account .linker-account-error {
	display: flex;
	gap: 6px;
	align-items: center;
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--acct-danger);
}

.linker-auth .linker-auth-error[hidden],
.linker-account .linker-account-error[hidden] { display: none; }

.linker-auth .linker-auth-error svg,
.linker-account .linker-account-error svg { flex: none; }

/* One button vocabulary for the chain: the prototype's pill, primary or ghost
 * (the workspace's own .linker-account-btn lives in account.css). */
.linker-auth .linker-auth-card :is(.button, .linker-auth-btn),
.linker-gate .linker-gate-btn,
.linker-account .linker-account-content .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: var(--proto-radius-round);
	background: var(--proto-teal-600);
	color: #fff;
	box-shadow: 0 6px 16px rgba(12, 127, 115, 0.28);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform var(--proto-duration) var(--proto-ease), background var(--proto-duration) var(--proto-ease), box-shadow var(--proto-duration) var(--proto-ease), color var(--proto-duration) var(--proto-ease);
}

.linker-auth .linker-auth-card :is(.button, .linker-auth-btn):hover,
.linker-gate .linker-gate-btn.is-primary:hover,
.linker-account .linker-account-content .button:hover {
	background: var(--proto-teal-700);
	box-shadow: 0 8px 20px rgba(12, 127, 115, 0.32);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.linker-auth .linker-auth-card :is(.button, .linker-auth-btn):active,
.linker-gate .linker-gate-btn:active,
.linker-account .linker-account-content .button:active { transform: translateY(0) scale(0.99); }

.linker-auth .linker-auth-card :is(.button, .linker-auth-btn):focus-visible,
.linker-gate .linker-gate-btn:focus-visible,
.linker-account .linker-account-content .button:focus-visible { outline: 2px solid var(--proto-teal-600); outline-offset: 3px; }

.linker-gate .linker-gate-btn.is-ghost {
	background: transparent;
	color: var(--proto-teal-700);
	box-shadow: inset 0 0 0 1.5px var(--proto-teal-200);
}

.linker-gate .linker-gate-btn.is-ghost:hover { background: var(--proto-teal-50); }

/* The submit state (assets/account-ui.js): the button reports the post it is
 * in, the way the prototype's .btn.is-loading does. */
.linker-auth .linker-auth-card :is(.button, .linker-auth-btn),
.linker-gate .linker-gate-btn,
.linker-account .linker-account-content .button { position: relative; }

.linker-auth .linker-auth-card :is(.button, .linker-auth-btn).is-loading,
.linker-gate .linker-gate-btn.is-loading,
.linker-account .linker-account-content .button.is-loading { opacity: 0.75; pointer-events: none; }

.linker-auth .linker-auth-card :is(.button, .linker-auth-btn).is-loading::after,
.linker-gate .linker-gate-btn.is-loading::after,
.linker-account .linker-account-content .button.is-loading::after {
	content: "";
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: linker-account-spin 0.8s linear infinite;
}

.linker-auth .linker-auth-recovery .button.is-loading::after,
.linker-gate .linker-gate-btn.is-ghost.is-loading::after,
.linker-account .linker-account-content .button.is-ghost.is-loading::after {
	border-color: var(--proto-teal-200);
	border-top-color: var(--proto-teal-700);
}

@keyframes linker-account-spin { to { rotate: 360deg; } }

/* WooCommerce's notices, in the chain's language. Woo prints the markup (and
 * its own leading icon), so only the frame and the palette are set here. */
.linker-auth :is(.woocommerce-error, .woocommerce-message, .woocommerce-info),
.linker-gate :is(.woocommerce-error, .woocommerce-message, .woocommerce-info),
.linker-account :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--acct-r-md);
	font-size: 14px;
	line-height: 1.45;
}

.linker-auth .woocommerce-error,
.linker-gate .woocommerce-error,
.linker-account .woocommerce-error { background: var(--acct-danger-bg); border-color: #eed5cd; color: var(--acct-danger-ink); }

.linker-auth .woocommerce-message,
.linker-gate .woocommerce-message,
.linker-account .woocommerce-message { background: var(--acct-ok-bg); border-color: #d3e8dc; color: var(--acct-ok-ink); }

.linker-auth .woocommerce-info,
.linker-gate .woocommerce-info,
.linker-account .woocommerce-info { background: var(--proto-teal-50); border-color: var(--proto-teal-100); color: var(--proto-teal-800); }

/* WooCommerce's own leading mark is absolutely placed at 1.5em/1em for the
 * padding box of its stock notice (1em 2em 1em 3.5em). The chain's notices are
 * flex rows with their own 14px/16px padding, so the mark is brought back into
 * the flow as the row's first item — the prototype's icon-beside-text shape —
 * instead of landing on top of the first word. */
.linker-auth :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before,
.linker-gate :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before,
.linker-account :is(.woocommerce-error, .woocommerce-message, .woocommerce-info)::before {
	position: static;
	display: block;
	flex: none;
	margin: 1px 0 0;
	font-size: 18px;
	line-height: 1;
	color: currentColor;
}

.linker-auth :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) ul,
.linker-gate :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) ul,
.linker-account :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) ul { margin: 0; padding-left: 18px; }

/* A WooCommerce notice is a list of messages (the register card can produce
 * several at once, #225; the account's company form names every missing field
 * at once). The frame's flex row above suits a single message: applied to a
 * list it makes one flex item per message, and six messages squeezed side by
 * side push the page wider than the phone it is read on (measured 485px in a
 * 390px viewport). A list notice is therefore a grid wherever it appears —
 * the icon in its own column, every message in the second column, one row
 * each — while the single-message element below keeps the flex row. */
.linker-auth :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info),
.linker-gate :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info),
.linker-account :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: 12px;
	row-gap: 4px;
	padding-left: 0;
}

.linker-auth :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info)::before,
.linker-gate :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info)::before,
.linker-account :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info)::before { grid-column: 1; grid-row: 1; }

.linker-auth :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info) > li,
.linker-gate :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info) > li,
.linker-account :is(ul.woocommerce-error, ul.woocommerce-message, ul.woocommerce-info) > li { grid-column: 2; min-width: 0; }

.linker-auth .woocommerce-notices-wrapper:empty,
.linker-account .woocommerce-notices-wrapper:empty { display: none; }

/* WooCommerce's own notice element (wc_print_notice), used unwrapped by the
 * lost-password confirmation. It is not a list, so it keeps the flex row; the
 * lists above never take this rule. */
.linker-auth > .linker-auth-inner :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):not(ul) { display: flex; }

/* ── The guest chain: the frame ────────────────────────────────────────── */
.linker-auth {
	font-family: var(--proto-font-sans);
	display: grid;
	place-items: center;
	padding: clamp(20px, 4vw, 48px) 0;
}

.linker-auth :is(h1, h2) { font-family: inherit; }

.linker-auth-inner {
	display: grid;
	gap: 20px;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

/* One card and the brand panel that belongs to it. Stacked on the phone (the
 * panel is hidden there), a two-column frame from 1080px up: the panel takes
 * the card's own height and no other card's. */
.linker-auth-unit {
	display: grid;
	gap: 20px;
	min-width: 0;
}

@media (min-width: 1080px) {
	.linker-auth-inner { max-width: 1060px; }

	.linker-auth-unit {
		grid-template-columns: 460px minmax(0, 1fr);
		gap: 0;
		align-items: stretch;
		border-radius: var(--acct-r-xl);
		overflow: hidden;
		box-shadow: var(--acct-shadow-card);
	}

	.linker-auth-unit > .linker-auth-card {
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	/* A page with one card (lost password, the new password, the confirmation)
	 * keeps the centred card at every width, with no brand panel. */
	.linker-auth-inner--solo {
		max-width: 480px;
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
		overflow: visible;
		border-radius: 0;
		box-shadow: none;
	}

	.linker-auth-inner--solo > .linker-auth-card {
		border: 1px solid var(--acct-line-soft);
		border-radius: var(--acct-r-xl);
		box-shadow: var(--acct-shadow-card);
	}
}

/* ── The brand panel (desktop only) ────────────────────────────────────── */
.linker-auth-brand { display: none; }

/* The theme's own element rules (`p { color: … }`, `h1 { color: … }`) apply
 * directly to these children and beat the panel's inherited colour, so the
 * reset below makes the panel's own colour the default and each named line
 * sets its own (both carry one more class than the reset). */
.linker-auth-brand :is(h1, h2, p, span, strong) { color: inherit; }

.linker-auth-brand .linker-auth-brand-title { color: #eaf4f2; }

.linker-auth-brand .linker-auth-brand-sub { color: #b9d6d1; }

@media (min-width: 1080px) {
	.linker-auth-brand {
		display: flex;
		flex-direction: column;
		gap: 52px;
		padding: 48px 44px;
		background:
			radial-gradient(120% 90% at 0% 0%, rgba(61, 175, 159, 0.25) 0%, transparent 55%),
			linear-gradient(160deg, var(--proto-teal-900) 0%, var(--proto-teal-800) 60%, #063f38 100%);
		color: #eaf4f2;
	}
}

.linker-auth-brand-logo {
	display: block;
	width: 124px;
	height: auto;
	filter: brightness(0) invert(1);
	opacity: 0.96;
}

.linker-auth-brand-title {
	margin: 0 0 14px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.linker-auth-brand-sub { margin: 0; font-size: 15px; }

.linker-auth-brand-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }

.linker-auth-brand-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #d7e9e6; }

.linker-auth-brand-points svg { flex: none; margin-top: 2px; color: var(--proto-teal-300); }

/* ── The card ──────────────────────────────────────────────────────────── */
.linker-auth-card {
	padding: clamp(24px, 4vw, 40px);
	background: var(--acct-card);
	border: 1px solid var(--acct-line-soft);
	border-radius: var(--acct-r-xl);
	box-shadow: var(--acct-shadow-card);
}

.linker-auth-card-heading { margin-bottom: 24px; }

.linker-auth-card-heading :is(h1, h2) {
	margin: 0 0 6px;
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--acct-ink);
}

.linker-auth-card-heading p { margin: 0; font-size: 15px; color: var(--acct-muted); }

/* ── Fields (WooCommerce's own form rows, in the chain's language) ─────── */
/* WooCommerce draws its own box around the login and register forms; the card
 * is the box here. (`.woocommerce form.login` is 0,2,1, so this rule carries
 * one more class.) */
.linker-auth .linker-auth-card form:is(.login, .register, .woocommerce-ResetPassword, .lost_reset_password) {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	text-align: left;
}

.linker-auth .form-row,
.linker-account .form-row {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
}

.linker-auth .form-row label,
.linker-account .form-row label {
	display: block;
	margin-bottom: 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--acct-ink-2);
}

.linker-auth .form-row :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea),
.linker-account .form-row :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea) {
	width: 100%;
	height: 52px;
	min-height: 52px;
	padding: 0 18px;
	border: 1.5px solid transparent;
	border-radius: var(--acct-r-md);
	background: var(--acct-fill);
	color: var(--acct-ink);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.2;
	box-shadow: none;
	appearance: none;
	transition: background var(--proto-duration) var(--proto-ease), border-color var(--proto-duration) var(--proto-ease), box-shadow var(--proto-duration) var(--proto-ease);
}

.linker-auth .form-row textarea,
.linker-account .form-row textarea { height: auto; min-height: 6.5rem; padding: 14px 18px; }

/* The chevron, at the base rule's own weight: the field list in :is() above
   takes the specificity of its most specific argument (input[type] → 0,3,1),
   and its background and padding shorthands ate the two declarations below at
   the plain `select` weight (0,2,1) — the drawn chevron never rendered, and
   padding-right stayed 18px. `select[name]` adds one class-level selector to
   reach that weight (a name is what makes a select a form field, and every
   field WooCommerce or the templates print carries one). It also keeps
   WooCommerce's own select CSS out (`.woocommerce form .form-row select`,
   0,2,2 — a white field with Woo's own chevron and 3em padding), which wins
   when this rule is written at :where()/plain-select weight instead. */
.linker-auth .form-row select[name],
.linker-account .form-row select[name] {
	background-image: linear-gradient(45deg, transparent 50%, var(--acct-muted) 50%), linear-gradient(135deg, var(--acct-muted) 50%, transparent 50%);
	background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
	padding-right: 44px;
}

/* The field's own states, at the base rule's weight (see the chevron above for
   why the weight matters). What each selector actually won, measured on the
   register page: the hover tint and the focus ring with the --acct-card fill
   were already the field's (a `:hover`/`:focus` selector ties the base rule on
   its own, and the source order decided for it), while the focused field's
   *border-color* came from WooCommerce's
   `.woocommerce form .form-row .input-text:focus{border-color:currentcolor}` —
   one weight heavier than the old variants, so it out-ruled them and focus
   read a dark 1px border instead of the prototype's teal. Naming :is(input[type], …), which is what the base
   rule's own list weighs, wins the border back.

   Both rules stand aside for an invalid field (:not([aria-invalid="true"])):
   :hover/:focus weigh one class more than the red-field rule below, so without
   it a focused mismatch field would read as a focused field, not as a red one
   (measured through the real submit: account-ui.js sets aria-invalid on
   #password_2 and the field kept the focus look). The prototype orders the two
   the same way — red last. */
.linker-auth .form-row :is(input[type], input, select, textarea):hover:not([aria-invalid="true"]),
.linker-account .form-row :is(input[type], input, select, textarea):hover:not([aria-invalid="true"]) { background-color: var(--acct-fill-hover); }

.linker-auth .form-row :is(input[type], input, select, textarea):focus:not([aria-invalid="true"]),
.linker-account .form-row :is(input[type], input, select, textarea):focus:not([aria-invalid="true"]) {
	background-color: var(--acct-card);
	border-color: var(--proto-teal-600);
	box-shadow: 0 0 0 4px var(--proto-teal-100);
	outline: none;
}

.linker-auth .form-row .required,
.linker-account .form-row .required { color: var(--acct-danger); }

/* WooCommerce's own invalid state reads as the prototype's red field, and so
   does account-ui.js's own mark: it sets aria-invalid="true" on the second
   password field of the reset and account forms when the two do not match
   (assets/account-ui.js, showMismatch). Both selectors therefore need the base
   rule's weight *and* the weight of Woo's focused-field rule
   (`.woocommerce form .form-row .input-text:focus{border-color:currentcolor}`,
   0,4,1 — the field is focused right after the refused submit), so the field
   goes on .form-row here: measured before, an aria-invalid field read the idle
   fill and a transparent border; with the plain weight it kept the red fill
   but the border stayed Woo's dark currentcolor. */
.linker-auth .form-row.woocommerce-invalid :is(input[type], input, select, textarea),
.linker-account .form-row.woocommerce-invalid :is(input[type], input, select, textarea),
.linker-auth .form-row :is(input[type], input, select)[aria-invalid="true"],
.linker-account .form-row :is(input[type], input, select)[aria-invalid="true"] {
	border-color: var(--acct-danger);
	background-color: var(--acct-danger-bg);
}

/* The eye toggle is WooCommerce's own (.show-password-input, drawn with Woo's
 * own icon): only its place and its hit area are set here. */
.linker-auth .password-input,
.linker-account .password-input { position: relative; display: block; width: 100%; }

.linker-auth .password-input .input-text,
.linker-account .password-input .input-text { padding-right: 56px; }

.linker-auth button.show-password-input,
.linker-account button.show-password-input {
	top: 26px;
	right: 6px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--acct-r-sm);
	background: transparent;
	transform: translateY(-50%);
}

.linker-auth button.show-password-input:hover,
.linker-account button.show-password-input:hover { background: rgba(12, 15, 15, 0.05); }

.linker-auth button.show-password-input:focus-visible,
.linker-account button.show-password-input:focus-visible { outline: 2px solid var(--proto-teal-600); outline-offset: 2px; }

/* The checkbox: WooCommerce's own input, drawn as the prototype's box. */
.linker-auth .form-row.linker-auth-remember {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 16px;
}

.linker-auth-remember > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--proto-teal-700);
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.linker-auth form .form-row label.woocommerce-form-login__rememberme,
.linker-account form .form-row label.woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--acct-ink-2);
	cursor: pointer;
}

.linker-auth input[type="checkbox"],
.linker-account input[type="checkbox"] {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	border: 1.5px solid var(--acct-line);
	border-radius: 7px;
	background: var(--acct-card);
	appearance: none;
	cursor: pointer;
	transition: background var(--proto-duration) var(--proto-ease), border-color var(--proto-duration) var(--proto-ease);
}

.linker-auth input[type="checkbox"]:checked,
.linker-account input[type="checkbox"]:checked { background: var(--proto-teal-600); border-color: var(--proto-teal-600); }

.linker-auth input[type="checkbox"]:checked::after,
.linker-account input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	inset: 3px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}

.linker-auth input[type="checkbox"]:focus-visible,
.linker-account input[type="checkbox"]:focus-visible { outline: 2px solid var(--proto-teal-600); outline-offset: 2px; }

/* ── The register card's two steps (owner ruling 2026-10-17, #225) ──────── */
/* The progress bar, its note and the panes exist only after account-ui.js
 * adds .is-split; without the script both panes show and the single Register
 * button posts the form. The bar's values are the accepted prototype's
 * (docs/prototypes/2026-10-17-registration/registration-prototype.css:55-58). */
.linker-auth-progress { display: flex; gap: 8px; margin: 22px 0 0; }
.linker-auth-progress[hidden] { display: none; }
.linker-auth-progress-segment { flex: 1; height: 4px; border-radius: 4px; background: var(--acct-line-soft); }
.linker-auth-progress-segment.is-on { background: var(--proto-teal-600); }

.linker-auth-stepnote { margin: 8px 0 0; font-size: 12.5px; color: var(--acct-muted); }
.linker-auth-stepnote[hidden] { display: none; }

.linker-auth-pane { display: block; }
.linker-auth-register-form.is-split [data-pane="2"] { display: none; }
.linker-auth-register-form.is-split[data-active-step="2"] [data-pane="1"] { display: none; }
.linker-auth-register-form.is-split[data-active-step="2"] [data-pane="2"] { display: block; }

.linker-auth-pane-title { margin: 20px 0 4px; font-size: 15px; font-weight: 600; color: var(--acct-ink); }

.linker-auth-note { margin: 4px 0 6px; font-size: 13px; color: var(--acct-muted); }

/* The verification pair sits in one soft box (prototype line 36-37): the two
 * fields are each optional, one of them is required. */
.linker-auth-verify { margin-top: 14px; padding: 14px 16px 16px; border: 1px solid var(--acct-line-soft); border-radius: 16px; background: #f7f9f9; }
.linker-auth-verify .linker-auth-fields { margin-top: 6px; }

/* Keep the native radio clickable across its visible choice label. */
.linker-auth .form-row:has(input[type="radio"]) .woocommerce-input-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

.linker-auth .form-row label.radio {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	min-height: 52px;
	margin: 0;
	padding: 0 8px;
	border: 1.5px solid transparent;
	border-radius: var(--acct-r-md);
	background: var(--acct-fill);
	color: var(--acct-ink-2);
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

/* Woo's option label shares the component library's radio class. Its
 * generated disc becomes an extra flex item and pushes the label text aside;
 * the native input below already owns the complete choice hit area. */
.linker-auth .form-row label.radio::before { content: none; }

.linker-auth .form-row label.radio:hover {
	border-color: var(--proto-teal-600);
	background: var(--acct-fill-hover);
}

/* The pill's whole area is the input's own box: focusable, clickable, and
 * large enough to be a 44px touch target. Its focus ring is the label's
 * (below) because the generic field focus rule above resets the outline of
 * a focused input — the label ring is the one a keyboard user sees. */
.linker-auth .form-row label.radio input[type="radio"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.linker-auth .form-row label.radio:has(input[type="radio"]:checked) {
	border-color: var(--proto-teal-600);
	background: #e6f4f1;
	color: #0a5f56;
}

.linker-auth .form-row label.radio:has(input[type="radio"]:focus-visible) {
	outline: 2px solid var(--proto-teal-600);
	outline-offset: 2px;
}

/* The two name fields share a row, with full-width email and password. */
.linker-auth-fields { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Native first/last rows keep a 47% width for Woo's float layout. The grid
 * already places them, so each row must fill its assigned track. */
.linker-auth .linker-auth-fields > .form-row { width: auto; }

.linker-auth-fields > * { grid-column: 1 / -1; }

.linker-auth-fields > :is(#billing_first_name_field, #billing_last_name_field) { grid-column: auto; }

.linker-auth-fields .form-row:last-child { margin-bottom: 0; }

/* The step buttons: Continue is the primary pill, Back the ghost the prototype
 * draws under it (registration-prototype.css:51-52). */
.linker-auth .linker-auth-card .linker-auth-btn[data-next],
.linker-auth .linker-auth-card .linker-auth-btn[data-back] { width: 100%; margin-top: 18px; }

.linker-auth .linker-auth-card .linker-auth-btn.is-ghost {
	border: 1.5px solid var(--proto-teal-600);
	background: var(--acct-card);
	color: var(--proto-teal-700);
	box-shadow: none;
}

.linker-auth .linker-auth-card .linker-auth-btn.is-ghost:hover { background: var(--proto-teal-50); color: var(--proto-teal-800); }

/* WooCommerce's searchable country select (selectWoo) in the card's own field
 * language: 52px, the soft fill and the teal focus ring of auth.css:371-437.
 * The dropdown frame follows the chain's popover (--acct-shadow-pop). */
.linker-auth .select2-container { width: 100% !important; }

.linker-auth .select2-container .select2-selection--single {
	height: 52px;
	border: 1.5px solid transparent;
	border-radius: var(--acct-r-md);
	background: var(--acct-fill);
}

.linker-auth .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 44px 0 18px;
	color: var(--acct-ink);
	font-size: 15px;
	line-height: 49px;
}

.linker-auth .select2-container .select2-selection--single .select2-selection__arrow { top: 0; right: 12px; height: 49px; }

.linker-auth .select2-container--focus .select2-selection--single,
.linker-auth .select2-container--open .select2-selection--single {
	border-color: var(--proto-teal-600);
	background: var(--acct-card);
	box-shadow: 0 0 0 4px var(--proto-teal-100);
}

/* selectWoo attaches its dropdown to <body>, outside the card; the dropdown
 * is identified by its own class (dropdownCssClass in account-ui.js). The
 * option and group spacing follows the prototype's list
 * (registration-prototype.css:44-47); the 44px search field is the chain's
 * touch floor (auth.css:492-506 uses the same floor for Woo's own controls). */
.select2-dropdown.linker-country-dropdown {
	border: 1px solid var(--acct-line);
	border-radius: var(--acct-r-md);
	background: var(--acct-card);
	box-shadow: var(--acct-shadow-pop);
	color: var(--acct-ink);
	font-family: inherit;
	font-size: 14.5px;
}

.linker-country-dropdown .select2-search--dropdown { padding: 8px; }

.linker-country-dropdown .select2-search__field {
	height: 44px;
	padding: 0 14px;
	border: 1.5px solid transparent;
	border-radius: var(--acct-r-sm);
	background: var(--acct-fill);
	color: var(--acct-ink);
	font-family: inherit;
	font-size: 14.5px;
}

.linker-country-dropdown .select2-search__field:focus {
	border-color: var(--proto-teal-600);
	background: var(--acct-card);
	box-shadow: 0 0 0 4px var(--proto-teal-100);
	outline: none;
}

.linker-country-dropdown .select2-results__option { padding: 9px 12px; }

.linker-country-dropdown .select2-results__group { padding: 8px 12px 4px; color: var(--acct-muted); font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

.linker-country-dropdown .select2-results__option.select2-results__option--highlighted,
.linker-country-dropdown .select2-results__option--highlighted[aria-selected] { background: #e6f4f1; color: #0a5f56; }

/* ── The guest cards' links ────────────────────────────────────────────── */
.linker-auth-links {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	margin: 20px 0 0;
	font-size: 14px;
	text-align: center;
}

.linker-auth .linker-auth-links a { color: var(--proto-teal-700); font-weight: 600; }
.linker-auth .linker-auth-links a:hover { color: var(--proto-teal-800); }

.linker-auth-links.linker-auth-legal { display: block; margin: 4px 0 16px; font-size: 13.5px; color: var(--acct-muted); }

.linker-auth .linker-auth-submit { margin: 0; }

.linker-auth .linker-auth-create { margin-top: 12px; }

.linker-auth .linker-auth-submit :is(.button, .linker-auth-btn) { width: 100%; }

.linker-auth-recovery {
	margin-top: var(--proto-space-7);
	padding-top: var(--proto-space-6);
	border-top: 1px solid var(--acct-line);
}

.linker-auth-recovery h2 {
	margin: 0;
	color: var(--acct-ink);
	font-size: 18px;
	font-weight: 600;
}

.linker-auth-recovery h2 + p {
	margin: 4px 0 var(--proto-space-5);
	color: var(--acct-ink-2);
	font-size: 14px;
}

.linker-auth .linker-auth-recovery .button {
	background: var(--proto-teal-50);
	color: var(--proto-teal-800);
	box-shadow: none;
}

.linker-auth .linker-auth-recovery .button:hover {
	background: var(--proto-teal-100);
	color: var(--proto-teal-900);
	box-shadow: none;
}

/* ── The gates (pending, restricted, the two Proforma gates) ───────────── */
.linker-gate-col { width: 100%; max-width: 480px; margin: 0 auto; }

.linker-gate {
	padding: clamp(24px, 4vw, 40px);
	background: var(--acct-card);
	border: 1px solid var(--acct-line-soft);
	border-radius: var(--acct-r-xl);
	box-shadow: var(--acct-shadow-card);
}

.linker-gate h1,
.linker-account-status h2 {
	margin: 0;
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--acct-ink);
}

.linker-gate-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 18px;
	padding: 7px 14px;
	border-radius: var(--proto-radius-round);
	font-size: 13px;
	font-weight: 600;
}

.linker-gate-badge.is-pending { background: var(--acct-warn-bg); color: var(--acct-warn-ink); }
.linker-gate-badge.is-restricted { background: var(--acct-danger-bg); color: var(--acct-danger-ink); }

.linker-gate-sub { margin: 6px 0 0; font-size: 15px; color: var(--acct-muted); }

.linker-gate-body { display: grid; gap: 12px; margin-top: 18px; }

/* #245: customer email must wrap inside the account gate on narrow screens. */
.linker-admin-access .linker-gate-body { overflow-wrap: anywhere; }
.linker-admin-access .linker-gate-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
.linker-admin-access .linker-gate-btn { padding-block: var(--proto-space-2); }

.linker-gate-body p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--acct-muted); }

/* The gate's own notice — the restricted account's reason (ticket #184). It is
 * our element, so it carries the frame and the palette Woo's notices get; the
 * body grid already spaces the card's lines, so it needs no own margin. */
.linker-gate .notice {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--acct-r-md);
	font-size: 14px;
	line-height: 1.45;
}

.linker-gate .notice-info { background: var(--proto-teal-50); border-color: var(--proto-teal-100); color: var(--proto-teal-800); }

.linker-gate .notice svg { flex: none; margin-top: 1px; }

.linker-gate .notice strong { font-weight: 600; }

.linker-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.linker-gate-actions .linker-gate-btn { flex: 1 1 190px; }

.linker-gate-links { margin: 18px 0 0; font-size: 14px; }
.linker-gate .linker-gate-links a { color: var(--proto-teal-700); font-weight: 600; }

/* The Genie entry under the title, the live page's pill carried over */
.linker-gate-genie { margin: 14px 0 0; }

.linker-gate-genie-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: var(--proto-radius-round);
	background: var(--proto-teal-900);
	color: #d7e9e6;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	transition: background var(--proto-duration) var(--proto-ease), transform var(--proto-duration) var(--proto-ease);
}

.linker-gate-genie-pill:hover { background: var(--proto-teal-800); color: #d7e9e6; text-decoration: none; transform: translateY(-1px); }
.linker-gate-genie-pill:focus-visible { outline: 2px solid var(--proto-teal-600); outline-offset: 3px; }
.linker-gate-genie-pill svg { width: 16px; height: 16px; color: var(--proto-teal-300); }

/* ── The guest account page's own ground ───────────────────────────────── */
body.woocommerce-account:not(.logged-in) .linker-account #container-content-account { padding: clamp(20px, 4vw, 48px) 1rem; }

/* Replace the contact shortcode's literal palette with the site's tokens.
 * Desktop dimensions reproduce its previous utility classes. */
#contact-form .linker-contact-form .linker-form-primary,
.linker-inquiry-success .linker-form-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--proto-control-height);
	padding: var(--proto-space-2) var(--proto-space-5);
	border: 1px solid var(--proto-pill-a-line);
	border-radius: var(--proto-radius-md);
	background: var(--proto-pill-a-bg);
	color: var(--proto-pill-a-fg);
	font-size: var(--proto-size-sm);
	font-weight: var(--proto-weight-semibold);
	text-decoration: none;
}
#contact-form .linker-contact-form .linker-form-primary { justify-self: start; }

#contact-form .linker-contact-form :where(a, button, input, textarea):focus-visible,
.linker-inquiry-success a:focus-visible {
	outline: var(--proto-focus-ring);
	outline-offset: var(--proto-focus-offset);
}
#contact-form .linker-contact-form :is(.woocommerce-message, .woocommerce-error)::before { display: none; }
#contact-form .linker-contact-form .linker-form-success,
#contact-form .linker-contact-form .linker-form-error {
	margin: 0;
	padding: var(--proto-space-5);
	border: 1px solid var(--proto-line-journal);
	border-radius: var(--proto-radius-card);
	background: var(--proto-canvas-white);
	color: var(--proto-ink-deep);
	font-size: var(--proto-size-sm);
}
#contact-form .linker-contact-form .linker-form-success { text-align: center; }
.linker-form-state-icon {
	display: inline-grid;
	place-items: center;
	width: var(--proto-space-7);
	height: var(--proto-space-7);
	border-radius: var(--proto-radius-round);
	background: var(--proto-teal-50);
	color: var(--proto-sem-ok);
	font-size: var(--proto-size-xl);
}
#contact-form .linker-contact-form .linker-form-error .linker-form-state-icon {
	background: var(--proto-neutral-50);
	color: var(--proto-sem-danger);
}

/* 639px matches the existing auth card breakpoint; desktop remains untouched.
 * 52px = 44px touch floor + 8px breathing room, measured in metrics.md. */
@media (max-width: 639px) {
	/* The guest cards fill the phone's width; the register steps keep their
	 * rhythm and the two-card spacing stays the chain's own. */
	body.woocommerce-account:not(.logged-in) .linker-account #container-content-account { padding: 1.25rem 1rem 3rem; }

	.linker-auth { padding: 0; }

	.linker-auth-inner { gap: var(--proto-space-6); }

	.linker-auth-card { border-radius: var(--acct-r-lg); box-shadow: none; padding: 1.5rem 1rem; }

	.linker-auth-pane-title { margin-top: var(--proto-space-5); }

	/* The prototype stacks the three business-type pills on the phone
	 * (registration-prototype.css:72). */
	.linker-auth .form-row:has(input[type="radio"]) .woocommerce-input-wrapper { grid-template-columns: minmax(0, 1fr); }

	.linker-gate { border-radius: var(--acct-r-lg); }

	.linker-gate-actions { display: grid; grid-template-columns: minmax(0, 1fr); }

	.linker-gate-actions .linker-gate-btn { flex: none; width: 100%; }

	.linker-gate-actions .linker-gate-btn.is-ghost { order: 1; }

	#contact-form .linker-contact-form {
		display: grid;
		gap: var(--proto-space-5);
	}
	#contact-form .linker-contact-form > div:has(.linker-form-label) {
		display: grid;
		gap: var(--proto-space-5);
	}
	#contact-form { padding-inline: var(--proto-space-4); }
	#contact-form .linker-contact-form .linker-form-label { gap: var(--proto-space-2); }
		#contact-form .linker-contact-form .linker-form-consent a,
		#tv-woo-b2b-checkout .woocommerce-privacy-policy-text a {
			display: inline-flex;
			align-items: center;
			min-height: var(--proto-control-height);
		}
		#tv-woo-b2b-checkout .checkout-inline-error-message { color: var(--proto-sem-danger); }
	#tv-woo-b2b-checkout form.checkout textarea { min-height: 6.5rem; }
	#contact-form .linker-contact-form .linker-form-consent {
		display: flex;
		gap: var(--proto-space-3);
		align-items: center;
		min-height: var(--proto-control-height);
	}
	#contact-form .linker-contact-form textarea.linker-form-input { min-height: 10rem; }
	#contact-form .linker-contact-form .linker-form-submit p { margin: 0; }
	#contact-form .linker-contact-form .linker-form-success {
		display: grid;
		justify-items: center;
		gap: var(--proto-space-5);
		padding: var(--proto-space-7) var(--proto-space-4);
		border: 1px solid var(--proto-line-journal);
		border-radius: var(--proto-radius-panel);
		background: var(--proto-canvas-white);
		color: var(--proto-ink-deep);
		text-align: center;
	}
	#contact-form .linker-contact-form .linker-form-success p { margin: 0; }
	#contact-form .linker-contact-form .linker-form-success .linker-form-state-icon {
		width: var(--proto-space-8);
		height: var(--proto-space-8);
		font-size: var(--proto-size-2xl);
	}
	#tv-woo-b2b-checkout .woocommerce-invalid .checkout-inline-error-message { display: none; }
	#container-content-checkout { padding: var(--proto-space-5) var(--proto-space-4) var(--proto-space-7); }
	#tv-woo-b2b-checkout { padding: 0; }
	#tv-woo-b2b-checkout form.checkout {
		overflow-anchor: none;
		grid-template-columns: minmax(0, 1fr);
		gap: var(--proto-space-6);
	}
	#tv-woo-b2b-checkout form.checkout .col2-set { gap: var(--proto-space-6); }
	#tv-woo-b2b-checkout .woocommerce-billing-fields__field-wrapper,
	#tv-woo-b2b-checkout .woocommerce-shipping-fields__field-wrapper,
	#tv-woo-b2b-checkout .woocommerce-additional-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--proto-space-5);
	}
	#tv-woo-b2b-checkout form.checkout .form-row { margin: 0; }
	#tv-woo-b2b-checkout form.checkout label { margin-bottom: var(--proto-space-2); }
	#tv-woo-b2b-checkout form.checkout #order_review {
		border-radius: var(--proto-radius-panel);
		padding: var(--proto-space-5) var(--proto-space-4);
		background: var(--proto-neutral-50);
	}
	#tv-woo-b2b-checkout #payment .place-order {
		position: sticky;
		bottom: 0;
		z-index: 2;
		padding: var(--proto-space-3) 0 max(var(--proto-space-3), env(safe-area-inset-bottom));
		background: var(--proto-neutral-50);
	}
	#tv-woo-b2b-checkout #payment .woocommerce-terms-and-conditions-wrapper label.checkbox,
	#tv-woo-b2b-checkout #ship-to-different-address label {
		min-height: var(--proto-control-height);
	}
	#tv-woo-b2b-checkout .woocommerce-terms-and-conditions-checkbox-text a {
		display: inline-flex;
		align-items: center;
		min-height: var(--proto-control-height);
	}
}

.linker-inquiry-page #container-content-checkout {
	padding: var(--proto-space-7) var(--proto-space-4) var(--proto-space-8);
}
.linker-inquiry-page #tv-woo-b2b-checkout { padding: 0; background: transparent; }
.linker-inquiry { color: var(--proto-ink-deep); font-family: var(--proto-font-sans); }
.linker-inquiry-columns {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: var(--proto-space-5);
	align-items: start;
}
.linker-inquiry-form {
	display: grid;
	gap: var(--proto-space-5);
	min-width: 0;
	padding: var(--proto-space-6);
	border: 1px solid var(--proto-line-journal);
	border-radius: var(--proto-radius-panel);
	background: var(--proto-canvas-white);
}
.linker-inquiry-head { display: grid; gap: var(--proto-space-3); }
#tv-woo-b2b-checkout .linker-inquiry-back {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	min-height: var(--proto-control-height);
	gap: var(--proto-space-2);
	color: var(--proto-teal-700);
	font-size: var(--proto-size-sm);
	font-weight: var(--proto-weight-medium);
	text-decoration: none;
}
#tv-woo-b2b-checkout .linker-inquiry-back:is(:hover, :focus-visible) {
	text-decoration: underline;
	text-underline-offset: .2em;
}
.linker-inquiry-head h1 {
	margin: 0;
	font-family: var(--proto-font-display);
	font-size: var(--proto-size-3xl);
	font-weight: var(--proto-weight-semibold);
	line-height: var(--proto-leading-display);
	letter-spacing: -.02em;
	color: var(--proto-ink-deep);
}
.linker-inquiry-head p {
	margin: 0;
	font-size: var(--proto-size-sm);
	line-height: var(--proto-leading-body);
	color: var(--proto-ink-muted-deep);
}
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry textarea.linker-form-input {
	min-height: calc(var(--proto-space-8) + var(--proto-space-7));
	resize: vertical;
}
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry :where(a, button, input, textarea, summary):focus-visible {
	outline: var(--proto-focus-ring);
	outline-offset: var(--proto-focus-offset);
}
.linker-inquiry-details { margin: 0; padding: 0; border: 0; }
.linker-inquiry-details summary {
	display: flex;
	justify-content: space-between;
	gap: var(--proto-space-4);
	padding: var(--proto-space-4);
	border: 1px solid var(--proto-line-journal);
	border-radius: var(--proto-radius-lg);
	background: var(--proto-neutral-50);
	cursor: pointer;
	font-size: var(--proto-size-sm);
	line-height: var(--proto-leading-body);
}
.linker-inquiry-details summary small { display: block; color: var(--proto-ink-muted-deep); margin-top: var(--proto-space-1); overflow-wrap: anywhere; }
.linker-inquiry-details summary > span:last-child { color: var(--proto-teal-600); text-decoration: underline; }
.linker-inquiry-details summary[hidden] { display: none; }
.linker-inquiry-details[open] summary:not([hidden]) { margin-bottom: var(--proto-space-5); }
.linker-inquiry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--proto-space-5) var(--proto-space-4); }
.linker-inquiry-company, .linker-inquiry-fields > .form-row { grid-column: 1 / -1; }
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry .linker-form-consent {
	display: flex;
	gap: var(--proto-space-3);
	align-items: flex-start;
	margin: 0;
	color: var(--proto-ink-muted-deep);
	font-size: var(--proto-size-xs);
	font-weight: normal;
	line-height: var(--proto-leading-body);
}
.linker-inquiry .linker-form-consent input { flex: 0 0 auto; margin-top: var(--proto-space-1); accent-color: var(--proto-accent); }
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry .linker-form-consent a { color: var(--proto-teal-600); text-decoration: underline; text-underline-offset: 3px; }
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry .linker-form-primary {
	min-height: var(--proto-form-control-height);
	border: 0;
	border-radius: var(--proto-radius-lg);
	background: var(--proto-accent);
	color: var(--proto-accent-on);
	padding: var(--proto-control-pad-y) var(--proto-control-pad-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--proto-space-4);
	font: inherit;
	font-size: var(--proto-control-size);
	font-weight: var(--proto-weight-semibold);
	cursor: pointer;
}
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry .linker-form-primary:hover { background: var(--proto-teal-700); }
.linker-inquiry-reassurance {
	display: flex;
	flex-wrap: wrap;
	gap: var(--proto-space-1);
	margin-top: calc(0rem - var(--proto-space-3));
	color: var(--proto-ink-muted-deep);
	font-size: var(--proto-size-xs);
	line-height: var(--proto-leading-body);
}
.linker-inquiry-promise { margin: 0; }
.linker-inquiry-promise a { white-space: nowrap; }
:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry-form .linker-form-primary:disabled { opacity: 0.6; cursor: wait; }
.linker-inquiry-guest { padding: 0 var(--proto-space-4); border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-md); color: var(--proto-ink-muted-deep); font-size: var(--proto-size-sm); }
.linker-inquiry-guest summary { min-height: var(--proto-form-control-height); margin-inline: calc(-1 * var(--proto-space-4)); padding: var(--proto-space-3) var(--proto-space-4); align-content: center; cursor: pointer; }
.linker-inquiry-guest[open] { padding-bottom: var(--proto-space-3); }
.linker-inquiry-guest > a + a { margin-inline-start: var(--proto-space-4); }

.linker-inquiry-draft { min-width: 0; padding: var(--proto-space-6); border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-panel); background: var(--proto-canvas-white); }
.linker-inquiry-draft-head { display: grid; gap: var(--proto-space-3); padding-bottom: var(--proto-space-5); border-bottom: 1px solid var(--proto-line-journal); }
#tv-woo-b2b-checkout .linker-inquiry-draft-head h2 { margin: 0; font-family: var(--proto-font-display); font-size: var(--proto-size-lg); font-weight: var(--proto-weight-semibold); line-height: var(--proto-leading-title); color: var(--proto-ink-deep); }
#tv-woo-b2b-checkout .linker-inquiry-draft-head a { justify-self: start; font-size: var(--proto-size-xs); font-weight: var(--proto-weight-medium); color: var(--proto-teal-600); text-decoration: underline; text-underline-offset: 3px; }
.linker-inquiry-line {
	display: grid;
	gap: var(--proto-space-3);
	min-width: 0;
	padding-block: var(--proto-space-4);
	border-bottom: 1px solid var(--proto-line-journal);
}
.linker-inquiry-line:last-child { border: 0; }
.linker-inquiry-product { display: flex; min-width: 0; align-items: center; gap: var(--proto-space-3); color: inherit; text-decoration: none; }
.linker-inquiry-product:is(:hover, :focus-visible) { color: var(--proto-teal-700); text-decoration: underline; }
.linker-inquiry-product:focus-visible { outline: var(--proto-focus-ring); outline-offset: 3px; }
.linker-inquiry-identity { display: grid; gap: var(--proto-space-1); min-width: 0; }
.linker-inquiry-identity strong { font-size: var(--proto-size-sm); line-height: 1.4; }
.linker-inquiry-sku { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--proto-size-xs); color: var(--proto-ink-muted-deep); }
.linker-inquiry-image { flex: 0 0 48px; width: 48px; height: 48px; }
.linker-inquiry-image img { width: 100%; height: 100%; object-fit: contain; }
.linker-inquiry-line-controls, .linker-inquiry-line-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: var(--proto-space-3); row-gap: var(--proto-space-2); }
.linker-inquiry-stock { display: inline-flex; gap: 6px; align-items: center; color: var(--proto-ink-muted-deep); font-size: var(--proto-size-xs); white-space: nowrap; }
.linker-inquiry-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.linker-inquiry-stock[data-stock="in-stock"] { color: var(--proto-teal-700); }
.linker-inquiry-stepper { display: inline-flex; align-items: center; margin-inline-start: auto; border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-md); background: var(--proto-canvas-white); }
.linker-inquiry-stepper button { width: 38px; min-height: calc(var(--proto-form-control-height) - 2px); border: 0; border-radius: inherit; padding: 0; background: transparent; color: var(--proto-ink-deep); font: inherit; cursor: pointer; }
.linker-inquiry-stepper button:hover:enabled { background: var(--proto-neutral-50); }
.linker-inquiry-stepper button:disabled { opacity: .45; cursor: default; }
.linker-inquiry-stepper > span, .linker-inquiry-stepper input.qty { width: 38px; min-width: 0; height: calc(var(--proto-form-control-height) - 2px); padding: 0; border: 0; background: transparent; text-align: center; font: inherit; align-content: center; appearance: textfield; }
.linker-inquiry-stepper input.qty::-webkit-inner-spin-button { appearance: none; }
.linker-inquiry-line-meta { color: var(--proto-ink-muted-deep); font-size: var(--proto-size-xs); }
#tv-woo-b2b-checkout .linker-inquiry-remove { display: inline-flex; align-items: center; min-height: 44px; color: var(--proto-ink-muted-deep); text-decoration: underline; text-underline-offset: 3px; }
#tv-woo-b2b-checkout .linker-inquiry-remove:hover { color: var(--proto-sem-danger); }
#tv-woo-b2b-checkout .linker-inquiry-update { margin-top: var(--proto-space-4); min-height: var(--proto-form-control-height); padding: var(--proto-space-2) var(--proto-space-4); border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-lg); background: white; color: var(--proto-ink-deep); font: inherit; cursor: pointer; }
#tv-woo-b2b-checkout .linker-inquiry-update:hover:enabled { border-color: var(--proto-teal-600); background: var(--proto-teal-50); }
#tv-woo-b2b-checkout .linker-inquiry-update:disabled { opacity: .5; cursor: default; }
.linker-inquiry-empty { display: grid; justify-items: start; gap: var(--proto-space-3); padding-top: var(--proto-space-5); color: var(--proto-ink-muted-deep); }
.linker-inquiry-empty svg { color: var(--proto-neutral-400); }
.linker-inquiry-empty p { margin: 0; font-size: var(--proto-size-sm); line-height: var(--proto-leading-body); }
.linker-inquiry-error { color: var(--proto-sem-danger); margin: 0; padding: var(--proto-space-4); background: var(--proto-neutral-50); border: 1px solid var(--proto-sem-danger); border-radius: var(--proto-radius-lg); font-size: var(--proto-size-sm); }
.linker-inquiry-error:empty { display: none; }
.linker-inquiry-draft-notice { margin: 0; padding: var(--proto-space-4); border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-lg); background: var(--proto-neutral-50); color: var(--proto-ink-muted-deep); font-size: var(--proto-size-sm); line-height: var(--proto-leading-body); }
#tv-woo-b2b-checkout .linker-inquiry [hidden] { display: none; }
.linker-inquiry-restriction { padding: var(--proto-space-5); margin-bottom: var(--proto-space-6); border: 1px solid var(--proto-line-journal); border-radius: var(--proto-radius-panel); background: var(--proto-canvas-white); }
.linker-inquiry-restriction h2 { font-size: var(--proto-size-lg); }
.linker-inquiry-restriction .notice { display: flex; align-items: start; gap: var(--proto-space-2); }
.linker-inquiry-restriction svg { flex-shrink: 0; }
#tv-woo-b2b-checkout .linker-inquiry-fields .form-row { margin: 0; padding: 0; font-size: var(--proto-size-sm); }
#tv-woo-b2b-checkout .linker-inquiry-fields .form-row label { display: block; margin: 0 0 var(--proto-space-2); font-size: var(--proto-size-sm); }
.linker-inquiry-fields > :is(#billing_city_field, #billing_postcode_field, #billing_country_field, #billing_state_field, #billing_phone_field, #billing_vat_id_field) { grid-column: auto; }
.linker-inquiry-fields .woocommerce-input-wrapper { display: block; }
@media (max-width: 760px) {
	.linker-inquiry-page #container-content-checkout { padding: var(--proto-space-5) var(--proto-space-4) var(--proto-space-7); }
	.linker-inquiry-columns { grid-template-columns: minmax(0, 1fr); gap: var(--proto-space-5); }
	.linker-inquiry-form, .linker-inquiry-draft { padding: var(--proto-space-5); border-radius: var(--proto-radius-card); }
	.linker-inquiry-head h1 { font-size: var(--proto-size-2xl); }
	.linker-inquiry-fields { grid-template-columns: minmax(0, 1fr); }
	:is(#tv-woo-b2b-checkout, .sc-preliminary-review) .linker-inquiry .linker-form-input { font-size: var(--proto-size-md); }
	.linker-inquiry-draft { position: static; }
}

/* Saved project details and the equipment included in an inquiry. */
.sc-preliminary-layout .sc-sidebar .sc-project-facts,
.sc-preliminary-review .sc-inquiry-overview .sc-project-facts {
	display: grid;
	gap: var(--proto-space-3);
	width: 100%;
	margin: 0;
}
.sc-project-facts > div {
	min-width: 0;
}
.sc-preliminary-layout .sc-sidebar .sc-project-facts dt,
.sc-preliminary-review .sc-inquiry-overview .sc-project-facts dt {
	color: var(--proto-neutral-600);
	font-size: var(--proto-size-xs);
}
.sc-preliminary-layout .sc-sidebar .sc-project-facts dd,
.sc-preliminary-review .sc-inquiry-overview .sc-project-facts dd {
	margin: var(--proto-space-1) 0 0;
	font-size: var(--proto-size-md);
	font-weight: var(--proto-weight-semibold);
	overflow-wrap: anywhere;
}
.sc-preliminary-layout .sc-sidebar h2 + .sc-project-facts {
	margin-top: var(--proto-space-4);
}
.sc-preliminary-review .sc-inquiry-overview {
	align-content: start;
}
.sc-preliminary-review .sc-empty-supply {
	padding-block: var(--proto-space-3);
	border-block: 1px solid var(--proto-color-line);
	color: var(--proto-neutral-600);
	font-size: var(--proto-size-sm);
}
.sc-preliminary-review .sc-inquiry-products {
	display: grid;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sc-preliminary-review .sc-inquiry-products li {
	padding-block: var(--proto-space-3);
	border-top: 1px solid var(--proto-color-line);
}
.sc-preliminary-review .sc-inquiry-product,
.sc-preliminary-review .sc-inquiry-product a {
	display: grid;
	align-items: center;
	gap: var(--proto-space-2);
}
.sc-preliminary-review .sc-inquiry-product a {
	grid-template-columns: auto minmax(0, 1fr);
	color: var(--proto-teal-800);
	font-weight: var(--proto-weight-semibold);
	text-decoration: underline;
	text-underline-offset: .18em;
}
.sc-preliminary-review .sc-inquiry-product img {
	width: 3.5rem;
	height: 3.5rem;
	padding: var(--proto-space-1);
	border: 1px solid var(--proto-color-line);
	border-radius: var(--proto-radius-md);
	background: var(--proto-color-surface);
	object-fit: contain;
}
.sc-preliminary-review .sc-inquiry-product small {
	color: var(--proto-neutral-600);
	font-size: var(--proto-size-xs);
}

/* The receipt and the customer's issued order details share one reading order. */
#tv-woo-b2b-checkout .linker-inquiry-success {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: var(--proto-space-5);
	margin: 0 0 var(--proto-space-6);
	padding: clamp(var(--proto-space-5), 4vw, var(--proto-space-7));
	border: 1px solid var(--proto-color-line);
	border-radius: var(--proto-radius-card);
	background: var(--proto-color-surface);
	color: var(--proto-ink-deep);
}
#tv-woo-b2b-checkout .linker-inquiry-success :is(h1, h2, p) {
	text-align: start;
	margin: 0;
}
.linker-receipt-heading {
	display: flex;
	align-items: center;
	gap: var(--proto-space-4);
}
.linker-receipt-heading .linker-form-state-icon {
	flex: none;
}
#tv-woo-b2b-checkout .linker-receipt-heading h1 {
	font-size: var(--proto-size-3xl);
	line-height: var(--proto-leading-title);
	letter-spacing: var(--proto-track-display);
}
.linker-receipt-number {
	color: var(--proto-ink-muted-deep);
	font-size: var(--proto-size-sm);
	overflow-wrap: anywhere;
}
.linker-receipt-next {
	display: grid;
	gap: var(--proto-space-2);
	width: 100%;
	padding-top: var(--proto-space-5);
	border-top: 1px solid var(--proto-color-line);
	font-size: var(--proto-size-md);
	line-height: var(--proto-leading-body);
}
#tv-woo-b2b-checkout .linker-receipt-next h2 {
	font-size: var(--proto-size-lg);
}
#tv-woo-b2b-checkout .linker-receipt-action {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: var(--proto-control-height);
	padding: var(--proto-control-pad-y) var(--proto-control-pad-x);
	border-radius: var(--proto-radius-md);
	background: var(--proto-accent);
	color: var(--proto-accent-on);
	font-weight: var(--proto-weight-semibold);
	text-decoration: none;
}
#tv-woo-b2b-checkout .linker-receipt-action:hover {
	background: var(--proto-teal-700);
}
@media (min-width: 761px) {
	#tv-woo-b2b-checkout .woocommerce-order:has(> .linker-inquiry-success):has(> .woocommerce-order-details) {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: start;
		gap: var(--proto-space-6);
	}
	#tv-woo-b2b-checkout .woocommerce-order > .linker-inquiry-success {
		grid-column: 1;
		grid-row: 1;
		margin-bottom: 0;
	}
	#tv-woo-b2b-checkout .woocommerce-order:has(> .linker-inquiry-success) > .woocommerce-order-details {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}
	#tv-woo-b2b-checkout .woocommerce-order:has(> .linker-inquiry-success) > .woocommerce-customer-details {
		grid-column: 1 / -1;
	}
}

.woocommerce-register #container-content-account, .linker-auth-inner:has(.linker-auth-register) { max-width: var(--proto-form-max-width); }
@media (min-width: 1080px) {
	.linker-auth-unit:has(.linker-auth-register) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}
.linker-auth-register .linker-auth-fields > :is(#billing_country_field, #billing_company_field, #linker_company_website_field, #billing_vat_id_field) { grid-column: auto; }
.linker-auth-register .select2-container .select2-selection--single { height: var(--proto-form-control-height); }
.linker-auth-register .select2-container .select2-selection--single .select2-selection__rendered { padding-right: 42px; line-height: 45px; }
.linker-auth-register .select2-container .select2-selection--single .select2-selection__arrow { right: 14px; height: 45px; }
.linker-auth .linker-auth-register .form-row label.radio,
.linker-auth .linker-auth-register :is(.button, .linker-auth-btn) { min-height: var(--proto-form-control-height); }
.linker-auth-register .form-row .optional { float: inline-end; white-space: nowrap; }
@media (max-width: 600px) {
	.linker-auth-register .linker-auth-fields { grid-template-columns: minmax(0, 1fr); }
}

.linker-account .linker-auth-register .form-row > label { margin-bottom: var(--proto-space-2); }
.linker-account .linker-auth-register .form-row :is(.input-text, .linker-country-select, .select2-selection--single) {
	height: var(--proto-form-control-height);
	min-height: var(--proto-form-control-height);
}
.linker-account .linker-auth-register .form-row :is(.input-text, .linker-country-select):focus:not([aria-invalid="true"]),
.linker-account .linker-auth-register .select2-container--focus .select2-selection--single,
.linker-account .linker-auth-register .select2-container--open .select2-selection--single {
	background-color: var(--proto-neutral-0);
	border-color: var(--proto-input-line-focus);
	box-shadow: var(--proto-form-focus-ring);
}

.linker-form-helpers {
	display: inline-flex;
	align-items: center;
	justify-self: start;
	gap: var(--proto-space-2);
}
a.linker-form-assistant {
	display: none;
	align-items: center;
	min-height: var(--proto-form-control-height);
	justify-self: start;
	color: var(--proto-teal-700);
	font-size: var(--proto-size-sm);
	font-weight: var(--proto-weight-semibold);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.linker-form-helpers > a.linker-form-assistant { display: inline-flex; }
@media (max-width: 700px) {
	body:has(a.linker-form-assistant) .linker-genie:has(> .linker-genie-open[aria-expanded="false"]),
	#contact-form:has(a.linker-form-assistant) .linker-contact-explore { display: none; }
	a.linker-form-assistant { display: inline-flex; }
}
