/**
 * GW Trailer Inventory — front-end styles.
 *
 * Scoped under .gwti so nothing leaks into the host theme. Colours are tokens,
 * redefined under a dark scheme, and the dealer's brand colour can be swapped by
 * overriding --gwti-accent in the child theme alone.
 */

.gwti {
	--gwti-accent: #c8102e;
	--gwti-accent-ink: #fff;
	--gwti-accent-dark: #a00d25;
	--gwti-ink: #16181d;
	--gwti-ink-soft: #5b6270;
	--gwti-line: #e3e6ea;
	--gwti-surface: #fff;
	--gwti-surface-alt: #f6f7f9;
	--gwti-dark: #16181d;
	--gwti-sale: #067647;
	--gwti-radius: 8px;
	--gwti-shadow: 0 1px 2px rgba(16, 20, 28, .06), 0 4px 14px rgba(16, 20, 28, .05);
	--gwti-gap: 20px;

	color: var(--gwti-ink);
	font-size: 16px;
	line-height: 1.55;
}

/**
 * Dark mode is opt-in, not automatic.
 *
 * These styles render inside whatever theme the dealer runs, and the theme sets
 * the page background. Switching on prefers-color-scheme alone puts dark cards
 * and near-white body text on a theme that stayed light - which is exactly what
 * happened against GeneratePress on a machine set to dark. So the dark palette
 * applies only when something above it says the page really is dark:
 *
 *   <body data-theme="dark">  or  <div class="gwti" data-theme="dark">
 *
 * A dark theme opts in by setting that attribute, or by redefining the tokens
 * directly in its own stylesheet.
 */
.gwti[data-theme="dark"],
[data-theme="dark"] .gwti {
	--gwti-ink: #e8eaee;
	--gwti-ink-soft: #a3abb8;
	--gwti-line: #2e333c;
	--gwti-surface: #1a1d23;
	--gwti-surface-alt: #22262e;
	--gwti-dark: #0f1115;
	--gwti-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
}

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

.gwti-shell {
	max-width: 1280px;
	margin: 0 auto;
	padding: 24px 16px 56px;
}

/* ------------------------------------------------------------------ Type */

.gwti-listing-title {
	margin: 4px 0 8px;
	font-size: clamp(1.6rem, 1.1rem + 2vw, 2.3rem);
	line-height: 1.15;
	letter-spacing: -.02em;
}

.gwti-section-title {
	margin: 0 0 16px;
	font-size: 1.3rem;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.gwti-listing-intro {
	max-width: 70ch;
	color: var(--gwti-ink-soft);
}

.gwti-listing-intro p {
	margin: 0 0 .8em;
}

.gwti-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 10px;
	font-size: .82rem;
	color: var(--gwti-ink-soft);
}

.gwti-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.gwti-breadcrumb a:hover {
	text-decoration: underline;
}

.gwti-prose > :first-child { margin-top: 0; }
.gwti-prose > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Layout */

.gwti-layout {
	display: grid;
	grid-template-columns: 252px minmax(0, 1fr);
	gap: 22px;
	align-items: start;
	margin-top: 16px;
}

.gwti-sidebar {
	position: sticky;
	top: 24px;
	/* The facet list is taller than a laptop viewport. Without its own scroll
	   container, sticky positioning pins the top and the range facets at the
	   bottom become unreachable. */
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	overscroll-behavior: contain;
	/* Room for the scrollbar so it does not sit on top of the counts. */
	padding-right: 2px;
	scrollbar-width: thin;
}

.gwti-filter-toggle {
	display: none;
}

@media (max-width: 960px) {
	.gwti-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.gwti-filter-toggle {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 11px 16px;
		border: 1px solid var(--gwti-line);
		border-radius: var(--gwti-radius);
		background: var(--gwti-surface);
		color: inherit;
		font: inherit;
		font-weight: 600;
		cursor: pointer;
	}

	.gwti-filter-count {
		display: inline-grid;
		place-items: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 10px;
		background: var(--gwti-accent);
		color: var(--gwti-accent-ink);
		font-size: .72rem;
	}

	.gwti-sidebar {
		position: static;
		max-height: none;
		overflow: visible;
	}

	.gwti-sidebar[hidden] {
		display: none;
	}
}

/* --------------------------------------------------------------- Filters */

.gwti-filters {
	--gwti-accent: var(--gw-blue, #283e88);
	--gwti-accent-ink: #fff;
	--gwti-accent-dark: var(--gw-navy, #050a30);

	border: 1px solid #d7deee;
	border-radius: 10px;
	background: #f7f8fc;
	overflow: hidden;
	box-shadow: inset 3px 0 0 var(--gw-navy, #050a30);
}

.gwti-filters-clear {
	display: block;
	padding: 8px 12px;
	border-bottom: 1px solid #d7deee;
	background: var(--gw-blue-100, #e8ecf8);
	color: var(--gw-navy, #050a30);
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
}

.gwti-filters-clear:hover {
	background: #dce3f4;
	color: var(--gw-blue, #283e88);
}

.gwti-facet {
	min-inline-size: 0;
	margin: 0;
	padding: 9px 12px 8px;
	border: 0;
	border-bottom: 1px solid #e4e8f2;
}

.gwti-facet:last-of-type {
	border-bottom: 0;
}

.gwti-facet legend {
	float: none;
	width: 100%;
	padding: 0;
	margin: 0 0 4px;
	font-family: var(--gw-text, inherit);
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--gw-navy, #050a30);
}

.gwti-facet.is-scrollable .gwti-facet-options {
	max-height: 230px;
	overflow-y: auto;
	/* Keep the scrollbar from sitting on top of the counts. */
	padding-right: 4px;
}

.gwti-filters .gwti-check {
	gap: 8px;
	margin: 0 -4px;
	padding: 3px 4px;
	border-radius: 6px;
	font-size: .86rem;
	line-height: 1.3;
}

.gwti-filters .gwti-check:hover {
	background: var(--gw-blue-100, #e8ecf8);
	text-decoration: none;
}

.gwti-filters .gwti-check:hover .gwti-check-label {
	text-decoration: none;
}

.gwti-filters .gwti-check.is-selected {
	background: #e7ecf8;
}

.gwti-check {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 5px 0;
	color: inherit;
	font-size: .9rem;
	text-decoration: none;
}

.gwti-check:hover .gwti-check-label {
	text-decoration: underline;
}

.gwti-check-box {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	border: 1.5px solid #c5cde0;
	border-radius: 3px;
	background: #fff;
}

.gwti-check.is-selected .gwti-check-box {
	border-color: var(--gwti-accent);
	background: var(--gwti-accent);
	/* Checkmark drawn with a border so it needs no icon font or SVG. */
	background-image: linear-gradient(45deg, transparent 42%, var(--gwti-accent-ink) 42%, var(--gwti-accent-ink) 56%, transparent 56%),
		linear-gradient(-45deg, transparent 58%, var(--gwti-accent-ink) 58%, var(--gwti-accent-ink) 72%, transparent 72%);
	background-size: 60% 60%, 60% 60%;
	background-position: 2px 5px, 4px 2px;
	background-repeat: no-repeat;
}

.gwti-check.is-selected .gwti-check-label {
	font-weight: 600;
}

.gwti-check-label {
	flex: 1 1 auto;
	min-width: 0;
}

.gwti-check-count {
	flex: 0 0 auto;
	min-width: 1.5em;
	padding: 0 6px;
	border-radius: 999px;
	background: #e6ebf6;
	color: var(--gw-navy, #050a30);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1.55;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.gwti-filters .gwti-check.is-selected .gwti-check-count {
	background: var(--gw-blue, #283e88);
	color: #fff;
}

.gwti-check-inline {
	margin-top: 6px;
	font-size: .8rem;
	color: var(--gwti-ink-soft);
}

.gwti-search-row {
	display: flex;
	gap: 6px;
}

.gwti-search-row input {
	flex: 1 1 auto;
	min-width: 0;
}

.gwti-range-readout {
	margin: 0 0 6px;
	font-size: .84rem;
	font-weight: 600;
	color: var(--gw-navy, #050a30);
	font-variant-numeric: tabular-nums;
}

.gwti-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gwti-range-inputs label {
	display: flex;
	align-items: center;
	gap: 5px;
	flex: 1 1 0;
	min-width: 0;
}

.gwti-range-inputs label input {
	min-width: 0;
}

.gwti-range-unit {
	flex: 0 0 auto;
	font-size: .8rem;
	color: var(--gwti-ink-soft);
}

.gwti-range-dash {
	color: var(--gwti-ink-soft);
}

.gwti-range-slider {
	position: relative;
	height: 20px;
	margin: 2px 0 6px;
}

.gwti-range-slider input[type="range"] {
	position: absolute;
	inset: 0;
	width: 100%;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.gwti-range-slider input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border: 2px solid var(--gwti-surface);
	border-radius: 50%;
	background: var(--gwti-accent);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	cursor: grab;
}

.gwti-range-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border: 2px solid var(--gwti-surface);
	border-radius: 50%;
	background: var(--gwti-accent);
	cursor: grab;
}

.gwti-range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 4px;
	margin-top: -2px;
	border-radius: 2px;
	background: #d5dced;
}

.gwti-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	border-radius: 2px;
	background: var(--gw-blue, #283e88);
}

.gwti-filters input[type="search"],
.gwti-filters input[type="number"] {
	padding: 6px 8px;
	border-color: #d0d7e8;
	background: #fff;
	font-size: .84rem;
}

.gwti-filters input[type="search"]:focus,
.gwti-filters input[type="number"]:focus {
	border-color: var(--gw-blue, #283e88);
	outline: 2px solid rgba(40, 62, 136, .28);
	outline-offset: 0;
}

.gwti input[type="search"],
.gwti input[type="number"],
.gwti input[type="text"],
.gwti input[type="email"],
.gwti input[type="tel"],
.gwti select,
.gwti textarea {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--gwti-line);
	border-radius: 6px;
	background: var(--gwti-surface);
	color: var(--gwti-ink);
	font: inherit;
	font-size: .9rem;
}

.gwti textarea {
	resize: vertical;
}

.gwti :is(input, select, textarea, button, a):focus-visible {
	outline: 2px solid var(--gwti-accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------- Toolbar */

.gwti-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--gwti-line);
}

.gwti-count {
	margin: 0;
	font-size: .95rem;
	color: var(--gwti-ink-soft);
}

.gwti-count strong {
	color: var(--gwti-ink);
	font-variant-numeric: tabular-nums;
}

.gwti-toolbar-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.gwti-control {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .82rem;
	color: var(--gwti-ink-soft);
}

.gwti-control select {
	width: auto;
	padding: 7px 9px;
}

.gwti-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 14px 0 0;
}

.gwti-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--gwti-line);
	border-radius: 100px;
	background: var(--gwti-surface-alt);
	color: inherit;
	font-size: .8rem;
	text-decoration: none;
}

.gwti-chip:hover {
	border-color: var(--gwti-accent);
}

.gwti-chip-label {
	color: var(--gwti-ink-soft);
}

.gwti-chip-x {
	font-size: 1.05rem;
	line-height: 1;
	color: var(--gwti-ink-soft);
}

.gwti-chip-clear {
	border-style: dashed;
	background: none;
	font-weight: 600;
}

/* ------------------------------------------------------------------ Grid */

.gwti-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: var(--gwti-gap);
	margin-top: 20px;
}

.gwti-grid-1 { grid-template-columns: minmax(0, 1fr); }
.gwti-grid-2 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.gwti-grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.gwti-section {
	max-width: 1280px;
	margin: 40px auto;
	padding: 0 16px;
}

/* ------------------------------------------------------------------ Card */

.gwti-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	box-shadow: var(--gwti-shadow);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

@media (prefers-reduced-motion: reduce) {
	.gwti-card { transition: none; }
}

.gwti-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(16, 20, 28, .08), 0 10px 26px rgba(16, 20, 28, .09);
}

.gwti-card.is-sold {
	opacity: .72;
}

.gwti-card-media {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--gwti-surface-alt);
}

.gwti-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gwti-card-noimage {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: .82rem;
	color: var(--gwti-ink-soft);
}

.gwti-card-photocount {
	position: absolute;
	right: 8px;
	bottom: 8px;
	padding: 2px 8px;
	border-radius: 100px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: .74rem;
	font-variant-numeric: tabular-nums;
}

.gwti-badges {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	max-width: calc(100% - 16px);
}

.gwti-badges-inline {
	position: static;
	margin: 0 0 12px;
}

.gwti-badge {
	padding: 3px 9px;
	border-radius: 4px;
	background: var(--gwti-dark);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.gwti-badge-sale,
.gwti-badge-special { background: var(--gwti-accent); }
.gwti-badge-featured { background: #1d4ed8; }
.gwti-badge-campaign { background: #8a2be2; }

.gwti-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 9px;
	padding: 14px 15px 15px;
}

.gwti-card-status {
	margin: 0;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--gwti-sale);
}

.gwti-card-title {
	margin: 0;
	font-size: .98rem;
	line-height: 1.35;
	font-weight: 600;
}

.gwti-card-title a {
	color: inherit;
	text-decoration: none;
}

.gwti-card-title a:hover {
	text-decoration: underline;
}

/* --------------------------------------------------------------- Pricing */

.gwti-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 9px;
}

.gwti-price-now {
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.gwti-price-lg .gwti-price-now {
	font-size: 2rem;
}

.gwti-price-was {
	color: var(--gwti-ink-soft);
	text-decoration: line-through;
	font-variant-numeric: tabular-nums;
}

.gwti-price-save {
	padding: 2px 8px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--gwti-sale) 14%, transparent);
	color: var(--gwti-sale);
	font-size: .78rem;
	font-weight: 700;
}

.gwti-price-ask {
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--gwti-ink-soft);
}

/* ----------------------------------------------------------------- Specs */

.gwti-card-specs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 4px 12px;
	margin: 0;
	padding-top: 9px;
	border-top: 1px solid var(--gwti-line);
	font-size: .8rem;
}

.gwti-card-specs > div {
	display: flex;
	justify-content: space-between;
	gap: 6px;
	min-width: 0;
}

.gwti-card-specs dt {
	color: var(--gwti-ink-soft);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gwti-card-specs dd {
	margin: 0;
	font-weight: 600;
	white-space: nowrap;
}

.gwti-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin: 0;
	font-size: .78rem;
	color: var(--gwti-ink-soft);
}

.gwti-card-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

/* --------------------------------------------------------------- Buttons */

.gwti-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 11px 18px;
	border: 1px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.gwti-btn-sm { padding: 8px 13px; font-size: .84rem; }
.gwti-btn-block { width: 100%; }

.gwti-btn-primary {
	background: var(--gwti-accent);
	color: var(--gwti-accent-ink);
}

.gwti-btn-primary:hover { background: var(--gwti-accent-dark); color: var(--gwti-accent-ink); }

.gwti-btn-dark {
	background: var(--gwti-dark);
	color: #fff;
}

.gwti-btn-dark:hover { opacity: .88; color: #fff; }

.gwti-btn-ghost {
	border-color: var(--gwti-line);
	background: var(--gwti-surface);
	color: var(--gwti-ink);
}

.gwti-btn-ghost:hover { border-color: var(--gwti-ink-soft); color: var(--gwti-ink); }

.gwti-linkish {
	padding: 0;
	border: 0;
	background: none;
	color: var(--gwti-ink-soft);
	font: inherit;
	font-size: .84rem;
	text-decoration: underline;
	cursor: pointer;
}

/* ------------------------------------------------------- Empty and alert */

.gwti-empty {
	padding: 48px 24px;
	margin-top: 20px;
	border: 1px dashed var(--gwti-line);
	border-radius: var(--gwti-radius);
	text-align: center;
}

.gwti-empty h2 { margin: 0 0 8px; font-size: 1.15rem; }
.gwti-empty p { margin: 0 0 16px; color: var(--gwti-ink-soft); }

.gwti-alert {
	padding: 13px 16px;
	margin: 0 0 20px;
	border-radius: var(--gwti-radius);
	border-left: 4px solid var(--gwti-ink-soft);
	background: var(--gwti-surface-alt);
	font-size: .92rem;
}

.gwti-alert p { margin: 0; }
.gwti-alert-success { border-left-color: var(--gwti-sale); }
.gwti-alert-error { border-left-color: var(--gwti-accent); }
.gwti-alert-info { border-left-color: #1d4ed8; }

/* ------------------------------------------------------------ Pagination */

.gwti-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-top: 32px;
}

.gwti-pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--gwti-line);
	border-radius: 6px;
	background: var(--gwti-surface);
	color: inherit;
	font-size: .9rem;
	text-decoration: none;
}

.gwti-pagination .page-numbers.current {
	border-color: var(--gwti-accent);
	background: var(--gwti-accent);
	color: var(--gwti-accent-ink);
	font-weight: 700;
}

.gwti-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* ------------------------------------------------------------------- FAQ */

.gwti-faq {
	max-width: 70ch;
	margin-top: 48px;
	padding-top: 28px;
	border-top: 1px solid var(--gwti-line);
}

.gwti-faq-item {
	border-bottom: 1px solid var(--gwti-line);
}

.gwti-faq-item summary {
	padding: 14px 0;
	font-weight: 600;
	cursor: pointer;
}

.gwti-faq-answer {
	padding-bottom: 14px;
	color: var(--gwti-ink-soft);
}

.gwti-faq-answer p { margin: 0 0 .7em; }

/* ------------------------------------------------------------ Unit page */

.gwti-unit-top {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: 8px;
}

@media (max-width: 860px) {
	.gwti-unit-top {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}
}

.gwti-unit-title {
	margin: 0 0 12px;
	font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem);
	line-height: 1.2;
	letter-spacing: -.01em;
}

.gwti-unit-buy {
	padding: 20px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	box-shadow: var(--gwti-shadow);
}

.gwti-unit-keyfacts {
	display: grid;
	gap: 6px;
	margin: 18px 0;
	padding: 14px 0;
	border-top: 1px solid var(--gwti-line);
	border-bottom: 1px solid var(--gwti-line);
	font-size: .88rem;
}

.gwti-unit-keyfacts > div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.gwti-unit-keyfacts dt { color: var(--gwti-ink-soft); }
.gwti-unit-keyfacts dd { margin: 0; font-weight: 600; word-break: break-all; }

.gwti-unit-ctas {
	display: grid;
	gap: 9px;
}

.gwti-unit-share {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin: 6px 0 0;
}

/* --------------------------------------------------------------- Gallery */

.gwti-gallery-stage {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface-alt);
	overflow: hidden;
}

.gwti-gallery-stage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gwti-gallery-nav {
	position: absolute;
	top: 50%;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #16181d;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.gwti-gallery-prev { left: 12px; }
.gwti-gallery-next { right: 12px; }

.gwti-gallery-counter {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 3px 10px;
	border-radius: 100px;
	background: rgba(0, 0, 0, .7);
	color: #fff;
	font-size: .78rem;
	font-variant-numeric: tabular-nums;
}

.gwti-gallery-strip {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	padding-bottom: 4px;
	overflow-x: auto;
	scrollbar-width: thin;
}

.gwti-gallery-thumb {
	flex: 0 0 auto;
	width: 96px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 6px;
	background: none;
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}

.gwti-gallery-thumb.is-active {
	border-color: var(--gwti-accent);
}

.gwti-gallery-thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}

.gwti-gallery-empty {
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	border: 1px dashed var(--gwti-line);
	border-radius: var(--gwti-radius);
	color: var(--gwti-ink-soft);
	text-align: center;
	padding: 24px;
}

/* ------------------------------------------------------------------ Tabs */

.gwti-unit-specs {
	margin-top: 44px;
}

.gwti-tablist {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	border-bottom: 1px solid var(--gwti-line);
}

.gwti-tablist button {
	padding: 11px 18px;
	border: 0;
	border-bottom: 3px solid transparent;
	background: none;
	color: var(--gwti-ink-soft);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.gwti-tablist button[aria-selected="true"] {
	border-bottom-color: var(--gwti-accent);
	color: var(--gwti-ink);
}

.gwti-tabpanel {
	padding: 22px 0 0;
}

.gwti-spec-table {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 0 32px;
	margin: 0;
}

.gwti-spec-table > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 9px 0;
	border-bottom: 1px solid var(--gwti-line);
	font-size: .9rem;
}

.gwti-spec-table dt { color: var(--gwti-ink-soft); }
.gwti-spec-table dd { margin: 0; font-weight: 600; text-align: right; }

.gwti-feature-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 6px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: .9rem;
}

.gwti-feature-list li {
	position: relative;
	padding-left: 22px;
}

.gwti-feature-list li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .45em;
	width: 10px;
	height: 5px;
	border-left: 2px solid var(--gwti-sale);
	border-bottom: 2px solid var(--gwti-sale);
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ Form */

.gwti-request {
	margin-top: 48px;
	scroll-margin-top: 24px;
}

.gwti-request-card {
	max-width: 640px;
	padding: 24px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface-alt);
}

.gwti-field {
	margin: 0 0 14px;
}

.gwti-field label {
	display: block;
	margin-bottom: 5px;
	font-size: .84rem;
	font-weight: 600;
}

.gwti-field-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0 14px;
}

.gwti-honeypot {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* ------------------------------------------------------- Tiles / brands */

.gwti-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 14px;
}

.gwti-tile {
	display: grid;
	gap: 3px;
	padding: 14px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	color: inherit;
	text-align: center;
	text-decoration: none;
}

.gwti-tile:hover {
	border-color: var(--gwti-accent);
}

.gwti-tile-media {
	display: block;
	aspect-ratio: 4 / 3;
	margin-bottom: 8px;
	border-radius: 6px;
	background: var(--gwti-surface-alt);
	overflow: hidden;
}

.gwti-tile-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gwti-tile-label { font-weight: 600; font-size: .92rem; }
.gwti-tile-count { font-size: .76rem; color: var(--gwti-ink-soft); }

.gwti-brands {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gwti-brand {
	display: grid;
	place-items: center;
	min-width: 140px;
	min-height: 64px;
	padding: 12px 20px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	color: inherit;
	font-weight: 700;
	letter-spacing: .01em;
	text-decoration: none;
}

.gwti-brand:hover { border-color: var(--gwti-accent); color: var(--gwti-accent); }
.gwti-brand img { max-width: 140px; max-height: 44px; object-fit: contain; }

/* ------------------------------------------------------------ Calculator */

.gwti-calculator {
	max-width: 640px;
	padding: 24px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
}

.gwti-calc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0 16px;
}

.gwti-calc-result {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin: 6px 0 14px;
	padding: 16px;
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface-alt);
}

.gwti-calc-label { font-size: .86rem; color: var(--gwti-ink-soft); }

.gwti-calc-amount {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}

.gwti-calc-disclaimer {
	margin: 0;
	font-size: .76rem;
	line-height: 1.5;
	color: var(--gwti-ink-soft);
}

/* ----------------------------------------------------------------- Misc */

.gwti-quicksearch {
	display: flex;
	gap: 8px;
	max-width: 620px;
}

.gwti-quicksearch input { flex: 1 1 auto; min-width: 0; }

.gwti .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

@media print {
	.gwti-sidebar,
	.gwti-toolbar-controls,
	.gwti-unit-ctas,
	.gwti-gallery-nav,
	.gwti-gallery-strip,
	.gwti-request,
	.gwti-filter-toggle {
		display: none !important;
	}

	.gwti-unit-top { grid-template-columns: 1fr 1fr; }
	.gwti-tabpanel[hidden] { display: block !important; }
}

/* ============================================================== Lightbox */

/* The inline stage becomes a zoom affordance. */
.gwti-gallery-zoom {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.gwti-gallery-zoom img { width: 100%; height: 100%; object-fit: cover; }

.gwti-gallery-zoom-hint {
	position: absolute;
	left: 12px;
	bottom: 12px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 100px;
	background: rgba(0, 0, 0, .66);
	color: #fff;
	font-size: .76rem;
	font-weight: 600;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .15s ease, transform .15s ease;
	pointer-events: none;
}

.gwti-gallery-stage:hover .gwti-gallery-zoom-hint,
.gwti-gallery-zoom:focus-visible .gwti-gallery-zoom-hint {
	opacity: 1;
	transform: translateY(0);
}

/* Touch devices get no hover, so the hint is simply always on. */
@media (hover: none) {
	.gwti-gallery-zoom-hint { opacity: 1; transform: none; }
}

/* Scrolling the page behind an open viewer is disorienting. */
.gwti-lb-open,
.gwti-lb-open body { overflow: hidden; }

.gwti-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	background: rgba(6, 9, 24, .96);
	color: #fff;
	/* Clear of a notch or a home indicator. */
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.gwti-lightbox[hidden] { display: none; }

.gwti-lightbox-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
}

.gwti-lightbox-counter {
	margin: 0;
	font-size: .88rem;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, .75);
}

.gwti-lightbox-tools { display: flex; align-items: center; gap: 6px; }

.gwti-lightbox-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 8px;
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}

.gwti-lightbox-btn:hover { background: rgba(255, 255, 255, .16); }
.gwti-lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gwti-lightbox-close { font-size: 1.6rem; }

.gwti-lightbox-level {
	min-width: 52px;
	text-align: center;
	font-size: .8rem;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, .7);
}

.gwti-lightbox-stage {
	position: relative;
	/* Flex, not grid: a percentage max-height on the image has to resolve
	   against a definite container height. In a grid whose row is auto-sized by
	   its content that reference is circular, so max-height:100% was ignored and
	   a 1000x750 photo rendered at full size in a 727px viewport. */
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	padding: 0 18px;
	overflow: hidden;
	/* Paint containment, not just overflow: a scaled child was still painting
	   over the toolbar because a transform escapes an ancestor's overflow
	   clip in this layout. `contain: paint` guarantees the clip. */
	contain: paint;
	/* The backdrop is the click target for closing. */
	cursor: zoom-out;
}

.gwti-lightbox-stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	/* contain, not cover: a third of the feed's photos are portrait and the
	   whole point of the viewer is to show the frame the inline stage crops. */
	object-fit: contain;
	transform-origin: center center;
	transition: transform .18s ease;
	cursor: default;
	user-select: none;
	-webkit-user-drag: none;
}

.gwti-lightbox.is-zoomed .gwti-lightbox-stage img { cursor: grab; }
.gwti-lightbox.is-dragging .gwti-lightbox-stage img { cursor: grabbing; transition: none; }

@media (prefers-reduced-motion: reduce) {
	.gwti-lightbox-stage img { transition: none; }
	.gwti-gallery-zoom-hint { transition: none; }
}

.gwti-lightbox-spinner {
	position: absolute;
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, .25);
	border-top-color: #fff;
	border-radius: 50%;
	animation: gwti-spin .7s linear infinite;
	pointer-events: none;
}

.gwti-lightbox-spinner[hidden] { display: none; }

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

.gwti-lightbox-nav {
	position: absolute;
	top: 50%;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.gwti-lightbox-nav:hover { background: rgba(0, 0, 0, .75); }
.gwti-lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.gwti-lightbox-prev { left: 16px; }
.gwti-lightbox-next { right: 16px; }

.gwti-lightbox-help {
	margin: 0;
	padding: 12px 18px 16px;
	font-size: .76rem;
	text-align: center;
	color: rgba(255, 255, 255, .45);
}

@media (max-width: 640px) {
	.gwti-lightbox-nav { width: 40px; height: 40px; margin-top: -20px; font-size: 1.5rem; }
	.gwti-lightbox-prev { left: 8px; }
	.gwti-lightbox-next { right: 8px; }
	.gwti-lightbox-stage { padding: 0 8px; }
	.gwti-lightbox-help { display: none; }
	.gwti-lightbox-level { display: none; }
}

/* ======================================================= Parts & Services */

.gwti-grid-5 { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.gwti-grid-6 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

.gwti-section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.gwti-section-head .gwti-section-title { margin: 0; }

.gwti-section-link {
	color: var(--gwti-accent);
	font-weight: 600;
	font-size: .9rem;
	text-decoration: none;
}

.gwti-section-link:hover { text-decoration: underline; }

.gwti-section-head + .gwti-grid { margin-top: 0; }

.gwti-part-card.is-service .gwti-card-noimage {
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.gwti-part-eyebrow {
	margin: 0 0 6px;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--gwti-ink-soft);
}

.gwti-part-eyebrow a { color: inherit; text-decoration: none; }
.gwti-part-eyebrow a:hover { color: var(--gwti-accent); }

.gwti-price-per {
	color: var(--gwti-ink-soft);
	font-size: .9rem;
}

/* Availability line: a dot plus wording, coloured by state. */
.gwti-stock {
	--gwti-stock: var(--gwti-ink-soft);

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: .82rem;
	font-weight: 600;
	color: var(--gwti-stock);
}

.gwti-stock-in-stock { --gwti-stock: var(--gwti-sale); }
.gwti-stock-service  { --gwti-stock: var(--gwti-accent); }
.gwti-stock-backorder { --gwti-stock: #b54708; }
.gwti-stock-retired  { --gwti-stock: var(--gwti-ink-soft); }

.gwti-stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gwti-stock);
	flex: none;
}

.gwti-stock-qty {
	font-weight: 400;
	color: var(--gwti-ink-soft);
}

/* Part category / brand blocks: list and strip layouts. */
.gwti-term-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gwti-term-list a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px solid var(--gwti-line);
	color: inherit;
	text-decoration: none;
}

.gwti-term-list a:hover .gwti-term-name { color: var(--gwti-accent); }

.gwti-term-count {
	color: var(--gwti-ink-soft);
	font-size: .8rem;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
}

.gwti-brand .gwti-term-count { display: block; margin-top: 2px; }

/* --------------------------------------------- Quick search: scope toggle */

.gwti-quicksearch.has-scopes {
	flex-direction: column;
	align-items: stretch;
}

.gwti-quicksearch-row {
	display: flex;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.gwti-scope {
	display: inline-flex;
	align-self: flex-start;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--gwti-line);
	border-radius: 999px;
	background: var(--gwti-surface-alt);
}

.gwti-scope-option {
	position: relative;
	cursor: pointer;
}

.gwti-scope-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.gwti-scope-option span {
	display: block;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	color: var(--gwti-ink-soft);
}

.gwti-scope-option input:checked + span {
	background: var(--gwti-surface);
	color: var(--gwti-ink);
	box-shadow: var(--gwti-shadow);
}

.gwti-scope-option input:focus-visible + span {
	outline: 2px solid var(--gwti-accent);
	outline-offset: 1px;
}

/* ------------------------------------------------ Combined search results */

.gwti-search-page .gwti-listing-head .gwti-quicksearch {
	margin: 16px 0 6px;
}

.gwti-search-summary {
	margin: 10px 0 0;
}

.gwti-search-section {
	margin: 32px 0 8px;
}

.gwti-search-section-count {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 9px;
	border-radius: 999px;
	background: var(--gwti-surface-alt);
	color: var(--gwti-ink-soft);
	font-size: .8rem;
	font-weight: 600;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------ Trailer spotlight */

.gwti-spotlight-card {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	box-shadow: var(--gwti-shadow);
	overflow: hidden;
}

.gwti-spotlight-image-right .gwti-spotlight-media { order: 2; }
.gwti-spotlight-stacked .gwti-spotlight-card { grid-template-columns: minmax(0, 1fr); }

.gwti-spotlight-media {
	position: relative;
	display: block;
	min-height: 260px;
	background: var(--gwti-surface-alt);
}

.gwti-spotlight-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gwti-spotlight-stacked .gwti-spotlight-media { aspect-ratio: 16 / 9; }

.gwti-spotlight-media .gwti-card-noimage {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--gwti-ink-soft);
}

.gwti-spotlight-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 28px;
}

.gwti-spotlight-title {
	margin: 0;
	font-size: clamp(1.2rem, 1rem + 1vw, 1.6rem);
	line-height: 1.25;
}

.gwti-spotlight-title a { color: inherit; text-decoration: none; }
.gwti-spotlight-title a:hover { text-decoration: underline; }

.gwti-spotlight .gwti-card-actions { margin-top: auto; padding-top: 6px; }

@media (max-width: 720px) {
	.gwti-spotlight-card { grid-template-columns: minmax(0, 1fr); }
	.gwti-spotlight-image-right .gwti-spotlight-media { order: 0; }
	.gwti-spotlight-media { min-height: 0; aspect-ratio: 4 / 3; }
	.gwti-spotlight-body { padding: 20px; }
}

/* ---------------------------------------------------------- Stock stats */

.gwti-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gwti-stat-inner {
	display: flex;
	flex-direction: column;
	gap: 2px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface);
	color: inherit;
	text-decoration: none;
}

a.gwti-stat-inner:hover { border-color: var(--gwti-accent); }

.gwti-stat-value {
	font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.02em;
	color: var(--gwti-accent);
	font-variant-numeric: tabular-nums;
}

.gwti-stat-label {
	font-size: .85rem;
	font-weight: 600;
	color: var(--gwti-ink-soft);
}

/* ------------------------------------------------------- Dealer contact */

.gwti-dealer-contact-items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.gwti-dealer-contact-stacked .gwti-dealer-contact-items {
	flex-direction: column;
	align-items: stretch;
	max-width: 360px;
}

.gwti-dealer-contact-stacked .gwti-btn { text-align: center; }

.gwti-dealer-contact-text {
	margin: 0;
	color: var(--gwti-ink-soft);
	font-size: .9rem;
}

.gwti-contact-intro { margin-bottom: 14px; color: var(--gwti-ink-soft); }
.gwti-contact-intro p { margin: 0 0 .6em; }

/* ==================================================== Elementor editor only */

/*
 * Shown in place of a widget that has nothing to display. The editor needs to
 * know *why* the canvas is blank — otherwise the widget looks broken — but a
 * visitor should never see it, so it renders only in edit mode.
 */
.gwti-elementor-empty {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 26px 22px;
	border: 1px dashed var(--gwti-line);
	border-radius: var(--gwti-radius);
	background: var(--gwti-surface-alt);
	color: var(--gwti-ink-soft);
	font-size: .9rem;
	text-align: center;
}

.gwti-elementor-empty strong {
	color: var(--gwti-ink);
	font-size: .95rem;
}
