/*
 * WEB-039 -- shared styling for the BMW configurator (page-request.php) and
 * WEB-040's standalone/motorsport 3-step intake, so both real forms look
 * like one system instead of two one-off builds. Uses this theme's existing
 * design tokens (--tt-color-*, --tt-space-*) defined sitewide in style.css.
 */

.tt-configurator,
.tt-intake-wizard {
	max-width: 860px;
	margin: 0 auto var(--tt-space-8, 3rem);
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: 12px;
	padding: var(--tt-space-6, 2rem);
}

/* --- WEB-039/WEB-040 correction round: the Standalone/Motorsport intake is
   now embedded directly on the main service page (in addition to its own
   dedicated /project-intake/ URL) inside a two-column desktop layout with a
   small sticky "Your Project" summary sidebar that mirrors the form's own
   live state. Collapses to one column with the summary hidden on mobile so
   the intake stays compact there, per the owner's explicit "mobile must
   show one step at a time and stay compact" requirement. --- */
.tt-intake-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: var(--tt-space-6, 2rem);
	max-width: 1000px;
	margin: 0 auto var(--tt-space-8, 3rem);
	scroll-margin-top: 90px;
}
.tt-intake-layout .tt-intake-wizard {
	max-width: none;
	margin: 0;
}
.tt-intake-summary {
	position: sticky;
	top: var(--tt-space-6, 2rem);
	align-self: start;
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: 12px;
	padding: var(--tt-space-5, 1.5rem);
}
.tt-intake-summary-label {
	margin: 0 0 var(--tt-space-4, 1rem);
	font-size: var(--tt-text-xs, 0.75rem);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tt-color-text-faint, #8A9098);
	font-weight: 700;
}
.tt-intake-summary dl { margin: 0; }
.tt-intake-summary dl > div { margin-bottom: var(--tt-space-3, 0.75rem); }
.tt-intake-summary dl > div:last-child { margin-bottom: 0; }
.tt-intake-summary dt {
	font-size: var(--tt-text-xs, 0.75rem);
	color: var(--tt-color-text-faint, #8A9098);
	margin: 0 0 0.15rem;
}
.tt-intake-summary dd {
	margin: 0;
	font-weight: 600;
	color: var(--tt-color-text, #F5F6F7);
	word-break: break-word;
}
@media (max-width: 800px) {
	.tt-intake-layout { grid-template-columns: 1fr; }
	.tt-intake-summary { display: none; }
}

.tt-config-step {
	margin-bottom: var(--tt-space-6, 2rem);
	padding-bottom: var(--tt-space-6, 2rem);
	border-bottom: 1px solid var(--tt-color-border, #2A2D31);
}
.tt-config-step:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}
.tt-config-step h3 {
	margin-top: 0;
	margin-bottom: var(--tt-space-4, 1rem);
}

/* --- BMW configurator: read visibly as a real calibration configuration
   process, not a plain contact form. Each numbered heading ("1. Platform &
   Setup" etc, real text already in markup) gets an accent-colored numeral
   pulled out into its own badge via CSS -- no markup change needed, the
   number is parsed straight out of the existing heading text. --- */
.tt-configurator .tt-config-step h3 {
	display: flex;
	align-items: center;
	gap: var(--tt-space-3, 0.75rem);
	font-size: var(--tt-text-lg, 1.125rem);
}
.tt-configurator .tt-config-step {
	counter-increment: tt-config-step;
}
.tt-configurator .tt-config-step h3::before {
	content: counter(tt-config-step);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: var(--tt-color-accent, #00D9FF);
	color: var(--tt-color-obsidian, #0B0C0E);
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 700;
}
.tt-configurator { counter-reset: tt-config-step; }

.tt-config-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--tt-space-4, 1rem);
}
@media (max-width: 600px) {
	.tt-config-grid { grid-template-columns: 1fr; }
}

/* Mobile: explicitly tighter, not just a reflowed desktop layout -- less
   outer padding, smaller step gaps, full-width primary action. */
@media (max-width: 600px) {
	.tt-configurator,
	.tt-intake-wizard {
		padding: var(--tt-space-4, 1rem);
		border-radius: 10px;
	}
	.tt-config-step {
		margin-bottom: var(--tt-space-4, 1rem);
		padding-bottom: var(--tt-space-4, 1rem);
	}
	.tt-configurator .tt-config-step h3 { font-size: var(--tt-text-base, 1rem); }
	.tt-configurator button[type="submit"],
	.tt-intake-wizard button[type="submit"] { width: 100%; }
}

.tt-configurator label,
.tt-intake-wizard label {
	display: block;
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 600;
	color: var(--tt-color-text-faint, #A6ABB1);
	margin-bottom: var(--tt-space-4, 1rem);
}

/*
 * Post-launch stabilization follow-up: an independent review found real
 * text inputs (type="text"/"email"/"tel") on both the BMW configurator and
 * Standalone intake wizard rendering with Blocksy's own default color
 * (#3A4F66 on a transparent background, ~2.03:1 contrast -- fails WCAG AA)
 * instead of this rule's own dark-bg/near-white-text values. Root cause:
 * Blocksy's `input:is([type="text"], [type="email"], [type="tel"], ...)`
 * rule has the exact same specificity as `.tt-configurator input` below
 * (one element + one attribute-equivalent selector each), and Blocksy
 * loads a second, lazily-injected stylesheet
 * (non-critical-styles.min.css, appended to <head> by its own JS after
 * initial render) that wins the resulting cascade tie regardless of this
 * file's own enqueue order. Same root cause, same fix already proven for
 * the header dropdown submenu elsewhere in this theme
 * (sitewide-content.css's own WEB-012 fix) -- `!important` on exactly the
 * two properties Blocksy's own rule contests, nothing broader.
 */
.tt-configurator input,
.tt-configurator select,
.tt-configurator textarea,
.tt-intake-wizard input,
.tt-intake-wizard select,
.tt-intake-wizard textarea {
	display: block;
	width: 100%;
	margin-top: var(--tt-space-2, 0.5rem);
	padding: 0.625rem 0.75rem;
	background: var(--tt-color-bg, #0B0C0E) !important;
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: 8px;
	color: var(--tt-color-text, #F5F6F7) !important;
	font-size: 1rem;
	font-family: inherit;
}
/* WEBSITE-TRANCHE-010: same responsive-control-primitive hardening applied
   to the homepage finder (front-page.php) and the Vehicle Directory/
   Compare/Package Builder selects (archive-tt_vehicle_tune.php) -- box-
   sizing so padding can't push the box past its 100%-width container, a
   comfortable min-height/line-height floor, and ellipsis instead of a
   silent hard clip for any option label wider than the box. */
.tt-configurator select,
.tt-intake-wizard select {
	box-sizing: border-box;
	min-height: 3rem;
	line-height: 1.4;
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
/* Independent-review finding, confirmed live: this min-height/box-sizing
   floor only ever covered `select` -- every real text/email/tel input on
   both forms (Vehicle, Name, Email, Phone, Modifications, Transmission,
   etc) rendered at ~40px (0.625rem padding + 1rem font, no floor), below
   the Section 19 accessibility minimum. `textarea` gets the box-sizing
   guard but not the fixed min-height (a multi-row field is meant to be
   taller than 44px, not clamped to it). */
.tt-configurator input,
.tt-intake-wizard input {
	box-sizing: border-box;
	min-height: 44px !important;
}
/* WEBSITE-TRANCHE-015 real-tuner repair (Section 3): Vehicle Mods and
   Additional Notes were reading as effectively one-line boxes at the
   default `rows` line-height. Real multi-row height now enforced with an
   explicit `min-height` (not left to font-metric-dependent `rows` alone),
   `resize:none` (no existing accessible-resize requirement applies to these
   two fields), and internal scrolling that only ever engages once real
   typed content exceeds the visible rows -- never a forced/oversized outer
   scroll region. Narrow, thumb-only scrollbar (no WebKit up/down arrow
   buttons) matches the same thin-scrollbar treatment already used
   elsewhere in this theme (see this file's evidence-gallery/select-panel
   scrollbar rules) instead of the browser-default wide scrollbar with
   visible arrow controls the owner rejected. */
.tt-configurator textarea,
.tt-intake-wizard textarea {
	box-sizing: border-box;
	min-height: 92px;
	line-height: 1.4;
	resize: none;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--tt-color-border-metallic, #3A3D41) transparent;
}
.tt-configurator textarea::-webkit-scrollbar,
.tt-intake-wizard textarea::-webkit-scrollbar {
	width: 8px;
}
.tt-configurator textarea::-webkit-scrollbar-track,
.tt-intake-wizard textarea::-webkit-scrollbar-track {
	background: transparent;
}
.tt-configurator textarea::-webkit-scrollbar-thumb,
.tt-intake-wizard textarea::-webkit-scrollbar-thumb {
	background: var(--tt-color-border-metallic, #3A3D41);
	border-radius: 4px;
}
.tt-configurator textarea::-webkit-scrollbar-button,
.tt-intake-wizard textarea::-webkit-scrollbar-button {
	display: none;
	height: 0;
	width: 0;
}
/* Vehicle Mods: ~4 visible rows, ~100-120px usable height per the governing
   prompt's own target. Additional Notes: ~3-4 visible rows, ~90-110px. */
#tt-bmw-cfg-mods {
	min-height: 112px;
}
#tt-bmw-cfg-notes {
	min-height: 100px;
}
.tt-configurator select:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
/* WEBSITE-TRANCHE-015 (Shopify Product UX recomposition, Section 25/28):
   native <select> popups render their own OS-level option list, which does
   not inherit this file's <select> box styling above -- with no `option`
   rule at all, some browsers/platforms fall back to a light system popup
   with dark-on-dark or otherwise low-contrast text, the "black-on-black"
   defect class the governing prompt calls out. Same explicit background/
   color pairing already proven correct elsewhere on this site
   (assets/css/vehicle-catalogue.css's `.tt-field select option`,
   assets/css/elite-components.css's `.tt-bmw-vehicle-select select
   option`), applied here for every remaining real `<select>` on this site
   (BMW platform-select on the generic /bmw-tuning/request/ page, ECU /
   Project Type / Current Project State on the Standalone intake, and the
   cart/checkout page's Tuning Platform / Intended Use / Dyno Availability
   selects, which also share this file). */
.tt-configurator select option,
.tt-intake-wizard select option {
	background: var(--tt-color-bg, #0B0C0E);
	color: var(--tt-color-text, #F5F6F7);
}
/* /cart/ page (page-cart.php) doesn't wrap its fields in `.tt-configurator`/
   `.tt-intake-wizard` (its own `.tt-cart-summary` card owns that layout) --
   same dark-field/min-height/focus-ring/option-contrast treatment extended
   here rather than duplicating every rule above under a third selector. */
.tt-cart-page input,
.tt-cart-page select,
.tt-cart-page textarea {
	display: block;
	width: 100%;
	margin-top: var(--tt-space-2, 0.5rem);
	padding: 0.625rem 0.75rem;
	background: var(--tt-color-bg, #0B0C0E) !important;
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: 8px;
	color: var(--tt-color-text, #F5F6F7) !important;
	font-size: 1rem;
	font-family: inherit;
	box-sizing: border-box;
}
.tt-cart-page input { min-height: 44px !important; }
.tt-cart-page select { min-height: 44px; }
.tt-cart-page select option {
	background: var(--tt-color-bg, #0B0C0E);
	color: var(--tt-color-text, #F5F6F7);
}
.tt-cart-page input:focus-visible,
.tt-cart-page select:focus-visible,
.tt-cart-page textarea:focus-visible {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}

/* Explicit focus-visible ring on form fields, matching .tt-btn/.tt-ecu-tile's
   own existing accent-colored focus treatment elsewhere in this theme --
   the browser default outline is present but visually subtle against this
   dark theme (found by the independent WEB-038-040 accessibility review). */
.tt-configurator input:focus-visible,
.tt-configurator select:focus-visible,
.tt-configurator textarea:focus-visible,
.tt-intake-wizard input:focus-visible,
.tt-intake-wizard select:focus-visible,
.tt-intake-wizard textarea:focus-visible {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}

/* Honeypot: off-screen, not display:none (some bots skip display:none
   fields specifically) -- a sighted, keyboard, or screen-reader user never
   encounters it (tabindex="-1", aria-hidden="true" on the wrapper). */
.tt-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tt-config-success {
	margin-top: var(--tt-space-6, 2rem);
	padding: var(--tt-space-5, 1.5rem);
	background: rgba(0, 217, 255, 0.08);
	border: 1px solid rgba(0, 217, 255, 0.3);
	border-radius: 8px;
}
.tt-config-success h3 {
	margin-top: 0;
	color: var(--tt-color-accent, #00D9FF);
}
/* WEBSITE-TRANCHE-017 owner pricing-model repair, independent-review finding:
   page-cart.php's own "Order received." success state uses a real <h2>
   (correct heading hierarchy under that page's own <h1>), not the <h3> the
   two other .tt-config-success usages (general-forms.php, standalone-intake.php)
   use -- this rule was missing entirely, so it fell through to Blocksy's
   unthemed default heading color (~1.2:1 contrast, effectively invisible on
   this dark background). Added alongside the h3 rule rather than replacing
   it, since both real usages must stay covered. */
.tt-config-success h2 {
	margin-top: 0;
	color: var(--tt-color-accent, #00D9FF);
}

[x-cloak] { display: none !important; }

/* --- WEB-040: wizard step indicator --- */
.tt-wizard-steps {
	display: flex;
	gap: var(--tt-space-4, 1rem);
	margin-bottom: var(--tt-space-6, 2rem);
	font-size: var(--tt-text-sm, 0.875rem);
	color: var(--tt-color-text-faint, #8A9098);
}
.tt-wizard-steps span.is-active {
	color: var(--tt-color-accent, #00D9FF);
	font-weight: 700;
}
.tt-wizard-steps span.is-done {
	color: var(--tt-color-text, #F5F6F7);
}
.tt-consent-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400 !important;
}
.tt-consent-row input[type="checkbox"] {
	width: auto;
	margin: 0;
}
.tt-btn-secondary {
	margin-right: var(--tt-space-3, 0.75rem);
}

/* --- ECU tile grid: real per-brand imagery (see
   inc/standalone-intake.php's timingtech_child_standalone_ecus() /
   timingtech_child_render_ecu_tiles()). WEBSITE-TRANCHE-015 Section 15.1/
   15.2 rebuild: name-only tiles (the old .tt-ecu-tile-desc paragraph is
   gone, see that PHP function) are short enough that all five now sit
   beside each other in one static row from 820px up through desktop --
   comfortable at both ~1024px and ~1440px inside the 1200px .tt-container
   (five ~227px tiles at 1200px, ~182px at the 976px content width behind a
   1024px viewport). Below 820px five columns stop being tappable, so the
   grid becomes a horizontally scrollable rail instead -- the same
   overflow-x:auto convention `.tt-platform-rail` already uses sitewide
   (see assets/css/elite-components.css), with `data-tt-marquee`
   (assets/js/tt-motion.js) layering a slow, pausable auto-scroll on top
   rather than a second bespoke carousel. Each tile is a real <button>,
   selectable (see assets/js/standalone-intake.js), with a fixed-ratio
   "framed" media box (object-fit: contain on a dark background) so
   heterogeneous source imagery -- some tiles are product photos, one is a
   pure logo-on-black -- still reads as one consistent system rather than
   five mismatched crops.

   WEBSITE-TRANCHE-015 owner custom-build repair (Section 15): this rail is
   now a real seamless infinite-loop marquee (assets/js/infinite-marquee.js,
   `.tt-infinite-marquee`/`.tt-infinite-marquee-track` scaffolding in
   assets/css/elite-components.css) instead of the former bounce-style
   native-scroll rail -- `.tt-ecu-tile-grid` is applied together with
   `.tt-infinite-marquee-track` on the same element (see
   inc/standalone-intake.php's timingtech_child_render_ecu_tiles()), so this
   selector now only owns tile sizing/spacing; the scrolling/looping
   mechanics live in the shared track class. Fixed-width items (not a CSS
   grid's `1fr` columns) at every viewport, since a continuously-scrolling
   row needs a real, unchanging item width to compute its own loop math
   against. */
.tt-ecu-tile {
	display: block;
	flex: 0 0 auto;
	width: 200px;
	/* Section 15: "unselected cards faded/blended into hero" -- a
	   translucent surface (not the sitewide opaque card background) so the
	   hero photo/carbon texture reads through behind idle tiles, with no
	   permanent heavy border. */
	background: rgba(11, 12, 14, 0.55);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(245, 246, 247, 0.1);
	border-radius: 10px;
	padding: 0;
	overflow: hidden;
	text-align: left;
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
@media (max-width: 460px) {
	.tt-ecu-tile { width: 44vw; min-width: 150px; max-width: 200px; }
}
.tt-ecu-tile:hover,
.tt-ecu-tile:focus-visible,
.tt-ecu-tile[aria-pressed="true"] {
	border-color: var(--tt-color-accent, #00D9FF);
	background: rgba(11, 12, 14, 0.82);
}
.tt-ecu-tile:focus-visible {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}
/* Selected state: color (accent border) + shape (a real ring, not just a
   color swap) + the button's own `aria-pressed="true"` for assistive tech
   -- three independent channels, never color-only (Section 15/29). */
.tt-ecu-tile[aria-pressed="true"] {
	box-shadow: 0 0 0 2px var(--tt-color-accent, #00D9FF);
}
.tt-ecu-tile-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	background: #0B0C0E;
	padding: var(--tt-space-3, 0.75rem);
}
.tt-ecu-tile-media img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}
.tt-ecu-tile-body {
	display: block;
	padding: var(--tt-space-4, 1rem);
}
.tt-ecu-tile-name {
	display: block;
	font-family: var(--tt-font-display);
	font-weight: 700;
	color: var(--tt-color-accent, #00D9FF);
}
@media (max-width: 460px) {
	.tt-ecu-tile-body { padding: var(--tt-space-3, 0.75rem); }
}

/* ==========================================================================
   WEBSITE-TRANCHE-015 (Shopify Product UX recomposition, Sections 8-11,
   15-17) -- compact field rows, rounded single-select pill groups, live
   price display, and Add to Cart / Purchase Tune controls for the BMW
   product panel. Also reused by the Standalone/Motorsport intake wizard's
   own discrete choices (Section 22) and the /cart/ order-summary page.
   ========================================================================== */

.tt-field-compact { margin-bottom: var(--tt-space-4, 1rem); }
.tt-field-compact label {
	display: block;
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 600;
	color: var(--tt-color-text-faint, #A6ABB1);
	margin-bottom: var(--tt-space-2, 0.5rem);
}

.tt-pill-group {
	border: 0;
	margin: 0 0 var(--tt-space-4, 1rem);
	padding: 0;
}
.tt-pill-group legend {
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 600;
	color: var(--tt-color-text-faint, #A6ABB1);
	margin-bottom: var(--tt-space-2, 0.5rem);
	padding: 0;
}
.tt-pill-group[disabled] { opacity: 0.5; }
.tt-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--tt-space-2, 0.5rem);
}
.tt-pill-option { display: inline-flex; }
/* Real native radio input, visually hidden (not display:none, which some
   assistive tech and keyboard-nav paths treat inconsistently) -- keyboard
   and screen-reader operable, no JS-only fake control (governing prompt
   Section 8). The visible pill is its <label>. */
.tt-pill-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.tt-pill-option label {
	display: inline-flex;
	align-items: center;
	/* WEBSITE-TRANCHE-017 owner pricing-model repair, independent-review
	   finding: this label now often wraps TWO child spans (the option text
	   and .tt-modifier-price) -- Flexbox collapses the whitespace-only text
	   node between them, so without an explicit gap the two touch with zero
	   space (e.g. "Hybrid Turbo+$50.00"). A plain single-text-node label
	   (every pill from before this repair) is unaffected by an unused gap. */
	gap: 6px;
	margin: 0;
	min-height: 44px;
	padding: 0 var(--tt-space-4, 1rem);
	border-radius: var(--tt-radius-pill, 999px);
	border: 1px solid var(--tt-color-border-metallic, #3A3F45);
	background: var(--tt-color-bg, #0B0C0E);
	color: var(--tt-color-text, #F5F6F7);
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 600;
	cursor: pointer;
	text-align: center;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.tt-pill-option input[type="radio"]:checked + label {
	background: var(--tt-color-text, #F5F6F7);
	border-color: var(--tt-color-text, #F5F6F7);
	color: var(--tt-color-obsidian, #0B0C0E);
}
.tt-pill-option input[type="radio"]:focus-visible + label {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}
.tt-pill-group[disabled] .tt-pill-option label { cursor: not-allowed; }

/* WEBSITE-TRANCHE-017 (Section 11): add-ons reuse the same pill pattern
   above but with a real checkbox (multi-select), not a radio -- the
   existing `input[type="radio"]:checked + label` rule never matches a
   checkbox, so both the visually-hidden-input and checked-state rules are
   repeated here for `input[type="checkbox"]` specifically. */
.tt-addon-option input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.tt-addon-option input[type="checkbox"]:checked + label {
	background: var(--tt-color-text, #F5F6F7);
	border-color: var(--tt-color-text, #F5F6F7);
	color: var(--tt-color-obsidian, #0B0C0E);
}
.tt-addon-option input[type="checkbox"]:focus-visible + label {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}
.tt-addon-option label { flex-direction: column; align-items: flex-start; padding: var(--tt-space-2, 0.5rem) var(--tt-space-4, 1rem); }
.tt-addon-price { font-size: var(--tt-text-sm, 0.875rem); opacity: 0.8; }

.tt-product-price-row { margin: var(--tt-space-2, 0.5rem) 0 var(--tt-space-5, 1.5rem); }
.tt-product-price {
	font-family: var(--tt-font-display);
	font-size: var(--tt-text-2xl, 1.5rem);
	font-weight: 700;
	color: var(--tt-color-accent, #00D9FF);
	margin: 0;
}
/* WEBSITE-TRANCHE-017 owner pricing-model repair (Section 9): the price
   breakdown is now a real <details> disclosure (base + every applied
   modifier), not a single inline "(base + add-ons)" line -- the additive
   model can have up to five contributing lines (turbo/fuel/supplemental
   fuel/map-tune/add-ons), not just two. */
.tt-product-price-breakdown {
	margin-top: var(--tt-space-1, 0.25rem);
	font-family: inherit;
	font-size: var(--tt-text-sm, 0.875rem);
	color: var(--tt-color-text-muted, #A6ABB1);
}
.tt-product-price-breakdown summary {
	cursor: pointer;
	font-weight: 600;
	min-height: 32px;
	display: inline-flex;
	align-items: center;
}
.tt-product-price-breakdown ul {
	list-style: none;
	margin: var(--tt-space-2, 0.5rem) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.tt-product-price-breakdown li {
	display: flex;
	justify-content: space-between;
	gap: var(--tt-space-3, 0.75rem);
}
.tt-field-hint {
	font-weight: 400;
	font-size: var(--tt-text-xs, 0.75rem);
	color: var(--tt-color-text-faint, #8A9098);
}
.tt-modifier-price {
	display: block;
	font-size: var(--tt-text-xs, 0.75rem);
	font-weight: 500;
	opacity: 0.75;
}
.tt-product-price.is-quote,
.tt-product-price.is-placeholder {
	font-family: inherit;
	font-size: var(--tt-text-sm, 0.875rem);
	font-weight: 600;
	color: var(--tt-color-text-muted, #A6ABB1);
}

.tt-product-cta-row {
	display: flex;
	gap: var(--tt-space-3, 0.75rem);
	flex-wrap: wrap;
	margin-bottom: var(--tt-space-3, 0.75rem);
}
.tt-product-cta-row .tt-btn { flex: 1 1 auto; min-height: 44px; }
@media (max-width: 600px) {
	.tt-product-cta-row { flex-direction: column; }
}

/* WEBSITE-TRANCHE-018 Phase B -- owner-directed redesign (2026-09-05) of the
   Secure Checkout confirmation step (formerly ".tt-policy-gate", a tall
   narrow tower with oversized native checkboxes -- owner smoke-tested and
   rejected). This is a compact, wide, two-column-on-desktop sheet: a
   left/main column (order summary, contact fields, four policy
   acknowledgements) and a right/summary rail on wide viewports, collapsing
   to one column on mobile. Plain fixed-position overlay, no third-party
   modal library -- consistent with this theme's "no heavy external
   dependency" doctrine elsewhere. This is a consent/order-confirmation
   step, not the payment gateway -- card entry always happens on Stripe's
   own hosted Checkout page after this step, never here. */
.tt-policy-gate {
	position: fixed;
	inset: 0;
	z-index: var(--tt-z-modal, 9999);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--tt-space-4, 1rem);
	background: rgba(0, 0, 0, 0.6);
}
.tt-policy-gate-inner {
	width: 100%;
	max-width: 840px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-lg, 12px);
	overflow: hidden;
}
.tt-checkout-sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--tt-space-3, 0.75rem);
	padding: var(--tt-space-4, 1rem) var(--tt-space-5, 1.25rem);
	border-bottom: 1px solid var(--tt-color-border, #2A2D31);
	flex-shrink: 0;
}
.tt-checkout-sheet-header h3 {
	margin: 0;
	font-size: var(--tt-text-lg, 1.125rem);
	color: var(--tt-color-text, #F5F6F7);
}
.tt-checkout-sheet-close {
	background: transparent;
	border: 0;
	color: var(--tt-color-text-muted, #A6ABB1);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: var(--tt-space-1, 0.25rem) var(--tt-space-2, 0.5rem);
	border-radius: var(--tt-radius-sm, 4px);
}
.tt-checkout-sheet-close:hover,
.tt-checkout-sheet-close:focus-visible {
	color: var(--tt-color-text, #F5F6F7);
	background: var(--tt-color-bg-raised, #1E2126);
}
.tt-checkout-sheet-body {
	overflow-y: auto;
	padding: var(--tt-space-5, 1.25rem);
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: var(--tt-space-5, 1.25rem);
}
@media (max-width: 720px) {
	.tt-checkout-sheet-body {
		grid-template-columns: 1fr;
	}
}
.tt-checkout-sheet-section {
	margin-bottom: var(--tt-space-4, 1rem);
}
.tt-checkout-sheet-section:last-child { margin-bottom: 0; }
.tt-checkout-sheet-section h4 {
	margin: 0 0 var(--tt-space-2, 0.5rem);
	font-size: var(--tt-text-xs, 0.75rem);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tt-color-text-faint, #6B7178);
}
.tt-checkout-summary-card {
	background: var(--tt-color-bg-raised, #1E2126);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-md, 8px);
	padding: var(--tt-space-4, 1rem);
}
.tt-checkout-summary-line {
	display: flex;
	justify-content: space-between;
	gap: var(--tt-space-2, 0.5rem);
	font-size: var(--tt-text-sm, 0.875rem);
	color: var(--tt-color-text-muted, #A6ABB1);
	padding: var(--tt-space-1, 0.25rem) 0;
}
.tt-checkout-summary-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: var(--tt-space-3, 0.75rem);
	padding-top: var(--tt-space-3, 0.75rem);
	border-top: 1px solid var(--tt-color-border, #2A2D31);
	font-size: var(--tt-text-lg, 1.125rem);
	font-weight: 700;
	color: var(--tt-color-text, #F5F6F7);
}
.tt-checkout-security-note {
	font-size: var(--tt-text-xs, 0.75rem);
	color: var(--tt-color-text-faint, #6B7178);
	margin-top: var(--tt-space-3, 0.75rem);
}
.tt-checkout-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--tt-space-3, 0.75rem);
}
@media (max-width: 480px) {
	.tt-checkout-field-row { grid-template-columns: 1fr; }
}
.tt-checkout-field {
	margin-bottom: var(--tt-space-2, 0.5rem);
}
.tt-checkout-field label {
	display: block;
	font-size: var(--tt-text-xs, 0.75rem);
	color: var(--tt-color-text-muted, #A6ABB1);
	margin-bottom: var(--tt-space-1, 0.25rem);
}
.tt-checkout-field-error {
	font-size: var(--tt-text-xs, 0.75rem);
	color: #FF6B6B;
	margin-top: var(--tt-space-1, 0.25rem);
}
/* Custom 20px checkbox control -- replaces the oversized native browser
   checkbox the owner smoke-tested against. `appearance: none` plus a
   drawn checkmark keeps this a real, keyboard-operable, screen-reader-
   friendly <input type="checkbox">, just restyled -- not a fake div-based
   control. */
.tt-policy-checkbox {
	display: flex;
	align-items: flex-start;
	gap: var(--tt-space-2, 0.5rem);
	margin: var(--tt-space-2, 0.5rem) 0;
	font-size: var(--tt-text-sm, 0.875rem);
	line-height: 1.4;
	color: var(--tt-color-text-muted, #A6ABB1);
	cursor: pointer;
}
/* !important on width/height/min-height/padding: this checkbox lives inside
   `.tt-configurator`/`.tt-cart-page`, both of which carry a pre-existing,
   deliberately-!important generic `input { min-height: 44px !important }`
   accessibility floor (correct for real text fields, confirmed live to
   otherwise inflate this checkbox to 26x44px instead of the intended
   20x20px custom control) plus a `width: 100%` + padding rule -- neither
   is meant to apply to a checkbox, so this overrides both explicitly
   rather than fighting cascade order. */
.tt-policy-checkbox input {
	appearance: none !important;
	-webkit-appearance: none !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 1px 0 0 !important;
	border: 1.5px solid var(--tt-color-border-strong, #3A3E44);
	border-radius: 4px;
	background: var(--tt-color-bg-raised, #1E2126) !important;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}
.tt-policy-checkbox input:checked {
	background: var(--tt-color-accent, #00D9FF);
	border-color: var(--tt-color-accent, #00D9FF);
}
.tt-policy-checkbox input:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid var(--tt-color-bg-elevated, #16181B);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.tt-policy-checkbox input:focus-visible {
	outline: 2px solid var(--tt-color-accent, #00D9FF);
	outline-offset: 2px;
}
.tt-policy-checkbox a { color: var(--tt-color-accent, #00D9FF); }
.tt-checkout-sheet-footer {
	position: sticky;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--tt-space-3, 0.75rem);
	padding: var(--tt-space-4, 1rem) var(--tt-space-5, 1.25rem);
	border-top: 1px solid var(--tt-color-border, #2A2D31);
	background: var(--tt-color-bg-elevated, #16181B);
	flex-shrink: 0;
}
@media (max-width: 480px) {
	.tt-checkout-sheet-footer {
		flex-direction: column-reverse;
		align-items: stretch;
	}
	.tt-checkout-sheet-footer .tt-btn {
		width: 100%;
		min-height: 44px;
	}
}

/* ==========================================================================
   /cart/ order-summary page (page-cart.php).
   ========================================================================== */
.tt-cart-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: var(--tt-space-7, 2.75rem);
	align-items: start;
	padding: var(--tt-space-6, 2rem) 0;
}
@media (max-width: 900px) {
	.tt-cart-grid { grid-template-columns: 1fr; gap: var(--tt-space-5, 1.5rem); }
}
.tt-cart-items { display: flex; flex-direction: column; gap: var(--tt-space-4, 1rem); }
.tt-cart-line {
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-md, 8px);
	padding: var(--tt-space-4, 1rem);
}
.tt-cart-line-head { display: flex; align-items: center; justify-content: space-between; gap: var(--tt-space-3, 0.75rem); }
.tt-cart-line-head h3 { margin: 0; font-size: var(--tt-text-lg, 1.125rem); color: var(--tt-color-text, #F5F6F7); }
.tt-cart-remove {
	appearance: none;
	background: transparent;
	border: 1px solid var(--tt-color-border-metallic, #3A3F45);
	color: var(--tt-color-text-muted, #A6ABB1);
	border-radius: var(--tt-radius-sm, 6px);
	padding: var(--tt-space-1, 0.25rem) var(--tt-space-3, 0.75rem);
	min-height: 44px;
	cursor: pointer;
	font-size: var(--tt-text-xs, 0.75rem);
}
.tt-cart-remove:hover,
.tt-cart-remove:focus-visible { border-color: var(--tt-color-accent, #00D9FF); color: var(--tt-color-accent, #00D9FF); }
.tt-cart-line-vehicle { color: var(--tt-color-text-muted, #A6ABB1); margin: var(--tt-space-1, 0.25rem) 0 var(--tt-space-3, 0.75rem); }
.tt-cart-line-specs {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--tt-space-3, 0.75rem);
	margin: 0 0 var(--tt-space-3, 0.75rem);
}
.tt-cart-line-specs dt { font-size: var(--tt-text-xs, 0.75rem); color: var(--tt-color-text-faint, #8A9098); margin: 0; }
.tt-cart-line-specs dd { margin: 0; font-weight: 600; }
.tt-cart-line-note { font-size: var(--tt-text-sm, 0.875rem); color: var(--tt-color-text-muted, #A6ABB1); margin: 0 0 var(--tt-space-2, 0.5rem); }
.tt-cart-line-breakdown { font-size: var(--tt-text-sm, 0.875rem); color: var(--tt-color-text-muted, #A6ABB1); margin: 0 0 var(--tt-space-2, 0.5rem); }
.tt-cart-line-breakdown summary { cursor: pointer; font-weight: 600; }
.tt-cart-line-breakdown ul { list-style: none; margin: var(--tt-space-2, 0.5rem) 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.tt-cart-line-breakdown li { display: flex; justify-content: space-between; gap: var(--tt-space-3, 0.75rem); }
.tt-cart-line-price { font-family: var(--tt-font-display); font-weight: 700; color: var(--tt-color-accent, #00D9FF); margin: var(--tt-space-2, 0.5rem) 0 0; }
.tt-cart-summary {
	background: var(--tt-color-bg-elevated, #16181B);
	border: 1px solid var(--tt-color-border, #2A2D31);
	border-radius: var(--tt-radius-lg, 10px);
	padding: var(--tt-space-5, 1.5rem);
}
@media (min-width: 901px) {
	.tt-cart-summary { position: sticky; top: var(--tt-space-5, 1.5rem); }
}
.tt-cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--tt-space-4, 1rem); font-size: var(--tt-text-lg, 1.125rem); }
.tt-cart-setup-details { margin: var(--tt-space-2, 0.5rem) 0 var(--tt-space-5, 1.5rem); }
.tt-cart-setup-details summary { cursor: pointer; color: var(--tt-color-text-muted, #A6ABB1); font-size: var(--tt-text-sm, 0.875rem); margin-bottom: var(--tt-space-3, 0.75rem); }
.tt-cart-empty { text-align: center; padding: var(--tt-space-8, 3rem) 0; }
.tt-cart-empty p:first-child { color: var(--tt-color-text-muted, #A6ABB1); margin-bottom: var(--tt-space-5, 1.5rem); }
