/* FP Vehicle Finder 1.0.18
   Enqueued as a real stylesheet, never inline: inline style blocks get stripped
   by the used-CSS optimiser on these sites. Filename carries the version because
   query-string cache busting is ignored at the edge.

   The plate is the object. Everything else gets out of its way: a near-black
   band so the yellow detonates, the store's own red for the action, and one
   authored motion moment when the car's parts arrive. */

/* The badge slot lives on a product page with no finder around it, so it has to
   carry the tokens itself or its colours resolve to nothing. */
/*
 * EVERY top-level wrapper the plugin can emit must be listed here, or the custom
 * properties do not resolve inside it and the component renders with the right
 * dimensions and no colour at all. That is what happened to .fpvf-headeritem on
 * 19 September: the plate and its button came out fully transparent on the live
 * header because the wrapper was added in 1.0.12 and never added to this list.
 * build-check.mjs now fails the build if a wrapper is missing from it.
 */
.fpvf,
.fpvf-hero,
.fpvf-navitem,
.fpvf-headeritem,
.fpvf-badge-slot {
	--fpvf-brand: #cc1111;
	--fpvf-brand-dark: #aa0e0e;
	--fpvf-brand-wash: #fff1f1;
	--fpvf-brand-edge: #efb5b5;

	--fpvf-ink: #16140f;
	--fpvf-ink-2: #55514a;
	--fpvf-line: #dcd9d3;
	--fpvf-surface: #fff;

	--fpvf-dark: #16140f;
	--fpvf-dark-2: #2a261d;
	--fpvf-on-dark: #f6f4ef;
	--fpvf-on-dark-2: #a8a49b;

	--fpvf-plate: #fcd905;
	--fpvf-plate-ink: #14130f;
	--fpvf-band: #1b3f8f;

	--fpvf-good: #06642c;
	--fpvf-good-wash: #e8f5ec;
	--fpvf-good-edge: #b3ddc2;
	--fpvf-warn: #8a5300;
	--fpvf-warn-wash: #fff6e6;
	--fpvf-warn-edge: #ecd4a6;
	--fpvf-bad: #98240f;
	--fpvf-bad-wash: #fdeceb;
	--fpvf-bad-edge: #f1c2bc;

	--fpvf-r: 10px;
	--fpvf-r-sm: 6px;
	--fpvf-ease: cubic-bezier(.16, 1, .3, 1);

	color: var(--fpvf-ink, #16140f);
	box-sizing: border-box;
}

.fpvf *,
.fpvf-hero *,
.fpvf-navitem *,
.fpvf-headeritem * {
	box-sizing: inherit;
}

.fpvf-i { flex: 0 0 auto; }

/* Every one of these carries an explicit display, which outranks the browser's
   own [hidden] { display: none } and left the "see everything" link promising
   results before any existed. */
.fpvf [hidden],
.fpvf-hero [hidden],
.fpvf-navitem [hidden],
.fpvf-badge-slot [hidden] { display: none !important; }

/* ============================================================ the plate */

.fpvf-plate {
	display: inline-flex;
	align-items: stretch;
	background: var(--fpvf-plate, #fcd905);
	border: 1px solid #0f0e0b;
	border-radius: 8px;
	overflow: hidden;
	min-width: 0;
	flex: 1 1 15rem;
	max-width: 22rem;
	/* a plate is a pressed object, not a swatch: a real drop plus an inner lip */
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .55),
		inset 0 -1px 0 rgba(0, 0, 0, .18),
		0 1px 2px rgba(0, 0, 0, .28);
}

.fpvf-plate__band {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: var(--fpvf-band, #1b3f8f);
	color: #fff;
	padding: 0 .5rem;
	flex: 0 0 auto;
}

.fpvf-plate__stars { opacity: .92; }

.fpvf-plate__cc {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
}

/*
 * PLATE LETTERING. Scoped so the theme cannot quietly win it.
 *
 * A lone .fpvf-plate__input is (0,1,0). Shoptimizer styles the field with
 * body input[type="text"] (0,1,2) and .site input[type="text"] (0,1,2), both of
 * which outrank it, so this block was losing font-size AND font-weight on every
 * full-size plate: 28px asked for, 15px rendered, in a plate only 37px tall.
 * The characters filled 41% of the plate when a real one is nearly full height.
 *
 * It went unnoticed because the compact header plate sets its own size from
 * .fpvf-plate--sm .fpvf-plate__input (0,2,0), which does win, and because the
 * static coming-soon plate is a span with nothing competing for it at all, so
 * the three plates on the site were quietly rendering three different ways.
 *
 * There are three competing theme selectors, and the strongest is
 * .site input[type="text"] at (0,2,1), inside a narrow-screen media query that
 * forces 16px. So a plain .fpvf-plate prefix at (0,2,0) is still not enough: it
 * wins on desktop and quietly loses again below 1024. Adding [type="text"]
 * takes these to (0,3,0), which beats all three at every width.
 *
 * Keep both the .fpvf-plate prefix AND the [type="text"] on any plate-input
 * declaration added here. Without them it silently does nothing on some
 * breakpoints and not others, which is exactly how this went unnoticed.
 */
.fpvf-plate .fpvf-plate__input[type="text"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--fpvf-plate-ink, #14130f);
	font-family: "Charles Wright", "UKNumberPlate", ui-sans-serif, Verdana, sans-serif;
	font-size: 1.75rem;
	font-weight: 400;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
	padding: .45rem .5rem;
	line-height: 1.15;
	box-shadow: none;
}

.fpvf-plate__input::placeholder {
	/* measured 5.9:1 on the plate yellow; the old #8a7a06 was 3.10:1 and failed */
	color: #5a5000;
	opacity: 1;
}

.fpvf-plate__input:focus,
.fpvf-plate__input:focus-visible {
	outline: 3px solid var(--fpvf-brand, #cc1111);
	outline-offset: -3px;
	background: #fde436;
}

/*
 * The compact plate that sits beside the header search.
 *
 * Measured against the real header before drawing it: the search input is 54px
 * tall with a 30px pill radius, and there are 303px of room between the search
 * and the account icons. A plate stretched to 54px stops looking like a plate,
 * so it is drawn at true proportions (about 4.2:1) and the block is centred on
 * the search's own centre line instead. Plate 170 + gap 8 + button 105 = 283px.
 */
.fpvf-plate--sm {
	flex: 0 0 auto;
	max-width: none;
	width: 10.625rem;          /* 170px */
	height: 2.5rem;            /* 40px, 4.25:1 */
	border-radius: 5px;
}

.fpvf-plate--sm .fpvf-plate__band {
	width: 1.375rem;           /* 22px, the real band is about 13% of the plate */
	padding: 0;
	gap: 1px;
}

.fpvf-plate--sm .fpvf-plate__stars { width: 10px; height: 10px; }
.fpvf-plate--sm .fpvf-plate__cc { font-size: .4375rem; letter-spacing: .04em; }

.fpvf-plate--sm .fpvf-plate__input[type="text"] {
	font-size: 1.1875rem;      /* 19px: legible as plate lettering, not shouty */
	letter-spacing: .07em;
	padding: 0 .35rem;
	line-height: 1;
}

/*
 * The plate before the feature is switched on.
 *
 * Same object at the same size, so ticking the toggle moves nothing in the
 * header row. The lettering is a span rather than an input: there is no field
 * to click into and no button to press, because a greyed-out control invites
 * someone to type a reg and then says nothing back.
 */
.fpvf-plate--static .fpvf-plate__ghost {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
	padding: 0 .35rem;
	/* the live placeholder's colour, measured at 5.9:1 on the plate yellow */
	color: #5a5000;
	font-family: "Charles Wright", "UKNumberPlate", ui-sans-serif, Verdana, sans-serif;
	font-size: 1.1875rem;
	font-weight: 400;          /* matches the live placeholder, measured, not assumed */
	letter-spacing: .07em;
	line-height: 1;
	text-align: center;
	text-transform: uppercase;
	-webkit-user-select: none;
	user-select: none;
}

/*
 * The notice reads as a label, not an action. The live control is a brand-red
 * pill that says press me; this is deliberately quiet beside the plate so the
 * plate stays the thing you look at and nobody reaches for it.
 */
.fpvf-nav__soon {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	flex: 0 0 auto;
	height: 2.5rem;
	padding: 0 .875rem;
	border: 1px solid var(--fpvf-line, #dcd9d3);
	border-radius: 999px;
	background: #f4f2ee;
	color: var(--fpvf-ink-2, #55514a);   /* 6.8:1 on that wash */
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}

.fpvf-nav__soon .fpvf-i { flex: 0 0 auto; opacity: .75; }

/* ============================================================ controls */

.fpvf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	flex: 0 0 auto;
	border: 0;
	border-radius: 8px;
	background: var(--fpvf-brand, #cc1111);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	padding: .8rem 1.35rem;
	cursor: pointer;
	transition: background-color .18s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1)), transform .18s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1));
}

.fpvf-btn:hover { background: var(--fpvf-brand-dark, #aa0e0e); }
.fpvf-btn:active { transform: translateY(1px); }
.fpvf-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fpvf-btn[disabled] { cursor: progress; background: var(--fpvf-brand-dark, #aa0e0e); }

.fpvf-btn .fpvf-spin { display: none; }
.fpvf-btn.is-busy .fpvf-spin { display: block; animation: fpvf-spin .7s linear infinite; }

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

.fpvf-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: .9375rem;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.fpvf-link:hover { text-decoration-thickness: 2px; }

.fpvf-status { margin: .75rem 0 0; font-size: .9375rem; min-height: 1.4em; }
.fpvf-status--error { color: var(--fpvf-bad, #98240f); font-weight: 600; }

/* ============================================================ hero band */

.fpvf-hero {
	background: var(--fpvf-dark, #16140f);
	color: var(--fpvf-on-dark, #f6f4ef);
	padding: clamp(2rem, 5vw, 3.5rem) 1rem;
	/* a hairline of brand along the top edge ties it to the store chrome */
	border-top: 3px solid var(--fpvf-brand, #cc1111);
}

.fpvf-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
	max-width: 76rem;
	margin: 0 auto;
}

.fpvf-hero__heading {
	margin: 0 0 .5rem;
	color: #fff;
	font-size: clamp(1.75rem, 3.6vw, 2.75rem);
	line-height: 1.05;
	letter-spacing: -.02em;
	text-wrap: balance;
}

.fpvf-hero__sub {
	margin: 0 0 1.5rem;
	max-width: 42ch;
	color: var(--fpvf-on-dark-2, #a8a49b);
	font-size: 1.0625rem;
	line-height: 1.5;
}

.fpvf-hero__form {
	display: flex;
	flex-wrap: wrap;
	gap: .625rem;
	align-items: center;
}

.fpvf-hero__alt { margin: .875rem 0 0; color: var(--fpvf-on-dark-2, #a8a49b); }
.fpvf-hero__alt .fpvf-link { color: var(--fpvf-on-dark, #f6f4ef); }

.fpvf-hero__testnote {
	margin: .75rem 0 0;
	font-size: .8125rem;
	color: var(--fpvf-on-dark-2, #a8a49b);
}

.fpvf-hero .fpvf-status { color: var(--fpvf-on-dark, #f6f4ef); }
.fpvf-hero .fpvf-status--error { color: #ff9c8b; }

/* the panel: a lit surface sitting on the dark band */
.fpvf-hero__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 16rem;
	padding: 1.25rem;
	background: var(--fpvf-dark-2, #2a261d);
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: var(--fpvf-r, 10px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

.fpvf-hero__resting {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .875rem;
	flex: 1 1 auto;
	min-height: 13rem;
	color: var(--fpvf-on-dark-2, #a8a49b);
	text-align: center;
}

.fpvf-hero__resting p { margin: 0; font-size: .9375rem; }
.fpvf-hero__resting.is-gone { display: none; }
.fpvf-resting__art { color: var(--fpvf-on-dark-2, #a8a49b); }

.fpvf-hero__all {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	align-self: flex-start;
	margin-top: auto;
	color: #fff;
	font-weight: 600;
	font-size: .9375rem;
	text-decoration: none;
	border-bottom: 2px solid var(--fpvf-brand, #cc1111);
	padding-bottom: 2px;
	transition: gap .18s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1));
}

.fpvf-hero__all:hover { gap: .75rem; color: #fff; }

/* dark-panel variants of the shared pieces */
.fpvf-hero__panel .fpvf-current,
.fpvf-hero__panel .fpvf-group__title { color: #fff; }
.fpvf-hero__panel .fpvf-group__title { border-bottom-color: rgba(255, 255, 255, .14); }
.fpvf-hero__panel .fpvf-group__count { color: var(--fpvf-on-dark-2, #a8a49b); }
.fpvf-hero__panel .fpvf-chooser__intro { color: var(--fpvf-on-dark, #f6f4ef); }
.fpvf-hero__panel .fpvf-chooser__opt {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .16);
	color: var(--fpvf-on-dark, #f6f4ef);
}
.fpvf-hero__panel .fpvf-chooser__opt:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.fpvf-hero__panel .fpvf-chooser__years { color: var(--fpvf-on-dark-2, #a8a49b); }
.fpvf-hero__panel .fpvf-empty { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: var(--fpvf-on-dark, #f6f4ef); }
.fpvf-hero__panel .fpvf-manual__intro { color: var(--fpvf-on-dark, #f6f4ef); }

@media (max-width: 860px) {
	.fpvf-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.fpvf-hero__panel { min-height: 0; }
	.fpvf-hero__resting { min-height: 9rem; }
}

/* ============================================================ the car bar */

.fpvf-current {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .5rem 1rem;
	margin: 0;
	padding: .7rem .9rem;
	background: var(--fpvf-brand-wash, #fff1f1);
	border: 1px solid var(--fpvf-brand-edge, #efb5b5);
	border-radius: var(--fpvf-r-sm, 6px);
	font-size: .9375rem;
}

.fpvf-current__car { font-weight: 700; }
.fpvf-current .fpvf-link { margin-left: auto; }

.fpvf-hero__panel .fpvf-current {
	background: rgba(204, 17, 17, .16);
	border-color: rgba(255, 130, 120, .4);
}

/* ============================================================ results */

.fpvf__results,
.fpvf-hero__results { min-width: 0; }

.fpvf-group { margin: 0 0 1.75rem; }
.fpvf-group:last-child { margin-bottom: 0; }

.fpvf-group__title {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin: 0 0 .75rem;
	padding-bottom: .4rem;
	border-bottom: 1px solid var(--fpvf-line, #dcd9d3);
	font-size: 1.0625rem;
	line-height: 1.2;
}

.fpvf-group__count { font-size: .8125rem; font-weight: 400; color: var(--fpvf-ink-2, #55514a); }

/* the one authored moment: the car lands, then its parts deal in behind it */
.fpvf-enter .fpvf-current { animation: fpvf-slab .45s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1)) both; }
.fpvf-enter li.product { animation: fpvf-deal .5s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1)) both; }
.fpvf-enter li.product:nth-child(1) { animation-delay: .06s; }
.fpvf-enter li.product:nth-child(2) { animation-delay: .10s; }
.fpvf-enter li.product:nth-child(3) { animation-delay: .14s; }
.fpvf-enter li.product:nth-child(4) { animation-delay: .18s; }
.fpvf-enter li.product:nth-child(5) { animation-delay: .22s; }
.fpvf-enter li.product:nth-child(6) { animation-delay: .26s; }
.fpvf-enter li.product:nth-child(7) { animation-delay: .29s; }
.fpvf-enter li.product:nth-child(8) { animation-delay: .32s; }
.fpvf-enter li.product:nth-child(n+9) { animation-delay: .35s; }

@keyframes fpvf-slab {
	from { opacity: 0; transform: translateY(-6px); clip-path: inset(0 100% 0 0); }
	to   { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}

@keyframes fpvf-deal {
	from { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(3px); }
	to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ============================================================ chooser */

.fpvf-chooser__intro { margin: 0 0 .75rem; font-weight: 600; }

.fpvf-chooser__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fpvf-chooser__opt {
	display: flex;
	flex-direction: column;
	gap: .15rem;
	width: 100%;
	text-align: left;
	padding: .65rem .75rem;
	background: var(--fpvf-surface, #fff);
	border: 1px solid var(--fpvf-line, #dcd9d3);
	border-radius: var(--fpvf-r-sm, 6px);
	font: inherit;
	color: inherit;
	cursor: pointer;
	transition: border-color .15s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1)), background-color .15s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1));
}

.fpvf-chooser__opt:hover { border-color: var(--fpvf-brand, #cc1111); background: var(--fpvf-brand-wash, #fff1f1); }
.fpvf-chooser__opt:focus-visible { outline: 3px solid var(--fpvf-brand, #cc1111); outline-offset: 2px; }
.fpvf-chooser__name { font-weight: 600; }
.fpvf-chooser__years { font-size: .8125rem; color: var(--fpvf-ink-2, #55514a); }

/* ============================================================ manual picker */

.fpvf-manual__intro { margin: 0 0 .5rem; font-weight: 600; }
.fpvf-manual__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.fpvf-manual__row select {
	min-width: 11rem;
	max-width: 100%;
	padding: .55rem .6rem;
	border: 1px solid var(--fpvf-line, #dcd9d3);
	border-radius: var(--fpvf-r-sm, 6px);
	font: inherit;
	background: var(--fpvf-surface, #fff);
	color: var(--fpvf-ink, #16140f);
}

/* ============================================================ empty state */

.fpvf-empty {
	padding: 1.1rem 1.2rem;
	background: var(--fpvf-warn-wash, #fff6e6);
	border: 1px solid var(--fpvf-warn-edge, #ecd4a6);
	border-radius: var(--fpvf-r-sm, 6px);
}

.fpvf-empty__title { margin: 0 0 .35rem; font-weight: 700; }
.fpvf-empty p { margin: 0 0 .5rem; max-width: 62ch; }
.fpvf-empty p:last-child { margin-bottom: 0; }

.fpvf-empty .fpvf-btn { margin-top: .35rem; text-decoration: none; }

/* ============================================================ product badge */

.fpvf-badge {
	display: flex;
	align-items: flex-start;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: .65rem .85rem;
	border-radius: var(--fpvf-r-sm, 6px);
	font-size: .9375rem;
	line-height: 1.4;
}

.fpvf-badge .fpvf-i { margin-top: .12em; }
.fpvf-badge--yes { background: var(--fpvf-good-wash, #e8f5ec); border: 1px solid var(--fpvf-good-edge, #b3ddc2); color: var(--fpvf-good, #06642c); font-weight: 600; }
.fpvf-badge--maybe { background: var(--fpvf-warn-wash, #fff6e6); border: 1px solid var(--fpvf-warn-edge, #ecd4a6); color: var(--fpvf-warn, #8a5300); }
.fpvf-badge--no { background: var(--fpvf-bad-wash, #fdeceb); border: 1px solid var(--fpvf-bad-edge, #f1c2bc); color: var(--fpvf-bad, #98240f); }
.fpvf-badge a { color: inherit; }

/* ============================================================ header plate */

.fpvf-navitem,
.fpvf-headeritem {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
	align-items: center;
}

.fpvf-navitem { margin-left: 1rem; }

.fpvf-nav {
	display: flex;
	align-items: center;
	gap: .5rem;
}

/* the action, pill-shaped so it rhymes with the search beside it */
.fpvf-nav__go {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	height: 2.5rem;
	padding: 0 1rem;
	border: 0;
	border-radius: 999px;
	background: var(--fpvf-brand, #cc1111);
	color: #fff;
	font: inherit;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1));
}

.fpvf-nav__go:hover { background: var(--fpvf-brand-dark, #aa0e0e); color: #fff; }
.fpvf-nav__go:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fpvf-nav__go .fpvf-spin { display: none; }
.fpvf-nav__go.is-busy .fpvf-nav__label { display: none; }
.fpvf-nav__go.is-busy .fpvf-spin { display: block; animation: fpvf-spin .7s linear infinite; }

/* the chooser drops out of the header rather than navigating on a guess */
.fpvf-nav__drop {
	position: absolute;
	top: calc(100% + .5rem);
	right: 0;
	z-index: 120;
	width: min(26rem, 92vw);
	padding: .9rem;
	background: var(--fpvf-surface, #fff);
	border: 1px solid var(--fpvf-line, #dcd9d3);
	border-radius: var(--fpvf-r, 10px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, .22);
	animation: fpvf-drop .28s var(--fpvf-ease, cubic-bezier(.16, 1, .3, 1)) both;
}

@keyframes fpvf-drop {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: none; }
}

.fpvf-nav__status {
	position: absolute;
	top: calc(100% + .35rem);
	right: 0;
	margin: 0;
	font-size: .8125rem;
	white-space: nowrap;
}
.fpvf-nav__status:empty { display: none; }

/* ============================================================ full finder */

.fpvf { margin: 0 0 2rem; }
.fpvf__heading { margin: 0 0 .75rem; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; letter-spacing: -.015em; }
.fpvf__form { display: flex; flex-wrap: wrap; gap: .625rem; align-items: center; }
.fpvf__alt { margin: .75rem 0 0; }
.fpvf__testnote { margin: .5rem 0 0; font-size: .8125rem; color: var(--fpvf-ink-2, #55514a); }
.fpvf__current { margin: 1.25rem 0 0; }
.fpvf__results { margin-top: 1.5rem; }

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

@media (max-width: 600px) {
	.fpvf-hero__form,
	.fpvf__form { gap: .5rem; }
	.fpvf-plate { flex: 1 1 100%; max-width: none; }
	.fpvf-hero__form .fpvf-btn,
	.fpvf__form .fpvf-btn { flex: 1 1 100%; }
	.fpvf-plate .fpvf-plate__input[type="text"] { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fpvf-enter .fpvf-current,
	.fpvf-enter li.product,
	.fpvf-nav__drop { animation: none; }
	.fpvf-btn .fpvf-spin,
	.fpvf-nav__go .fpvf-spin { animation-duration: 1.6s; }
}

/* once the car name wraps, a right-pushed link reads as detached */
@media (max-width: 560px) {
	.fpvf-current { flex-direction: column; align-items: flex-start; gap: .35rem; }
	.fpvf-current .fpvf-link { margin-left: 0; }
}

/* ============================================================ loading */

/* Shown the moment the page knows a car is coming, because the round trip that
   fetches it takes about a second and an empty panel reads as broken. */
.fpvf-loading {
	display: flex;
	flex-direction: column;
	gap: .875rem;
}

.fpvf-loading__bar {
	height: 2.6rem;
	border-radius: var(--fpvf-r-sm, 6px);
	background: currentColor;
	opacity: .1;
}

.fpvf-loading__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
	gap: .875rem;
}

.fpvf-loading__grid i {
	display: block;
	aspect-ratio: 3 / 4;
	border-radius: var(--fpvf-r-sm, 6px);
	background: currentColor;
	opacity: .08;
	animation: fpvf-breathe 1.25s ease-in-out infinite;
}

.fpvf-loading__grid i:nth-child(2) { animation-delay: .1s; }
.fpvf-loading__grid i:nth-child(3) { animation-delay: .2s; }
.fpvf-loading__grid i:nth-child(4) { animation-delay: .3s; }
.fpvf-loading__grid i:nth-child(5) { animation-delay: .4s; }
.fpvf-loading__grid i:nth-child(6) { animation-delay: .5s; }

@keyframes fpvf-breathe {
	0%, 100% { opacity: .06; }
	50%      { opacity: .14; }
}

@media (prefers-reduced-motion: reduce) {
	.fpvf-loading__grid i { animation: none; }
}

/* ============================================================ header row */

/*
 * The plate sitting beside the search in the main header row.
 *
 * The theme leaves a wide gap between the logo and the search and gives the
 * search a lot of width. Both are tightened here to make room, and ONLY while
 * .fpvf-header-on is on the body, so switching the placement off restores the
 * theme's own layout exactly.
 */
.fpvf-headeritem {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: .75rem;
}

/*
 * Measured on the live header before touching it: the search carried a 48px left
 * margin and ran 409px wide inside a 1385px row, which is the gap between the
 * logo and the search. Both are pulled in to make room for the plate, and only
 * while .fpvf-header-on is on the body, so switching the placement off puts the
 * theme's own spacing straight back.
 */
@media (min-width: 1025px) {
	.fpvf-header-on .main-header .site-branding { margin-right: .75rem; }
	.fpvf-header-on .main-header .site-search {
		margin-left: 1rem;
		flex: 0 1 22rem;
		max-width: 22rem;
		min-width: 0;
	}
}

/*
 * The header row runs out of room below 1025. Measured at 1016: the logo, the
 * theme's own search and the account/wishlist/checkout icons already fill the
 * 1001px row, so a 283px plate has nowhere to go and the plate is hidden.
 *
 * At 992 and below the theme turns its nav into a slide-out drawer with a
 * search box at the top, and the script moves the plate in underneath it. That
 * move is driven by the nav's real position:fixed state, not by this number, so
 * the two cannot drift apart: between 993 and 1024 the plate is simply hidden
 * and nothing is injected anywhere.
 */
@media (max-width: 1024px) {
	.fpvf-headeritem { display: none; }

	.fpvf-headeritem--drawer {
		display: block;
		position: static;
		margin: 0 0 1.25rem;
	}
	.fpvf-headeritem--drawer .fpvf-nav { flex-wrap: wrap; gap: .5rem; }

	/* full width and a 48px touch height, rather than the compact header size */
	.fpvf-headeritem--drawer .fpvf-plate--sm { width: 100%; height: 3rem; }
	.fpvf-headeritem--drawer .fpvf-plate__input[type="text"] { font-size: 1.25rem; }
	.fpvf-headeritem--drawer .fpvf-nav__go {
		width: 100%;
		height: 2.75rem;
		font-size: .875rem;
	}
	.fpvf-headeritem--drawer .fpvf-nav__soon {
		width: 100%;
		height: 2.75rem;
		justify-content: center;
		font-size: .875rem;
	}

	/* in a scrolling menu these have to sit in the flow, not float over it */
	.fpvf-headeritem--drawer .fpvf-nav__drop,
	.fpvf-headeritem--drawer .fpvf-nav__status {
		position: static;
		width: auto;
		margin-top: .5rem;
		white-space: normal;
		box-shadow: none;
	}
}

/* ============================================================ card note */

/*
 * The "should fit" caveat, printed inside the theme's own product card by the
 * woocommerce_after_shop_loop_item hook. Deliberately quiet: the card is the
 * store's design and this is an annotation on it, not a competing element.
 */
.fpvf-cardnote {
	display: block;
	margin: .35rem 0 0;
	font-size: .75rem;
	line-height: 1.35;
	color: #8a5300;
}

/* the finder's own group heading above each theme loop */
.fpvf-group ul.products { margin-bottom: 0; }

/* ============================================================ hero grid */

/*
 * Two across in the hero panel, never four.
 *
 * The panel is a narrow column beside the plate. The shop's own card is built
 * for a full-width archive, so four of them in here collapse to slivers with
 * the title wrapping to five lines. The server is asked for 2 columns and the
 * grid is pinned here too, because the theme sets widths on the list items.
 */
.fpvf-hero__panel ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fpvf-hero__panel ul.products::before,
.fpvf-hero__panel ul.products::after { display: none; }

.fpvf-hero__panel ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	clear: none !important;
}

/*
 * The card keeps the shop's own colours.
 *
 * These rules used to recolour the card for the dark panel, on the assumption
 * that the card was transparent and sat on the panel background. It is not:
 * Shoptimizer paints li.product solid white. So the price was being set to #fff
 * ON WHITE, a contrast ratio of 1.00, and it was invisible at every width. The
 * title only survived because the theme sets its own #222 over the top.
 *
 * The panel still sets light text for its own headings, and the card would
 * inherit that, so the card is put back to the ink it uses everywhere else on
 * the site. Everything inside it then reads exactly as it does on a category
 * page: the theme's own title colour, and its own slate price.
 */
.fpvf-hero__panel ul.products li.product { color: var(--fpvf-ink, #16140f); }

@media (max-width: 600px) {
	.fpvf-hero__panel ul.products { gap: .625rem; }
}

/* ============================================================ older Safari */

/*
 * :focus-visible landed in Safari 15.4. On anything older every focus ring
 * above is simply dropped, which leaves keyboard users with no visible focus at
 * all. This restores a ring on plain :focus only where :focus-visible is not
 * understood, so current browsers keep the better behaviour.
 */
@supports not selector(:focus-visible) {
	.fpvf-btn:focus,
	.fpvf-nav__go:focus,
	.fpvf-chooser__opt:focus,
	.fpvf-card__link:focus,
	.fpvf-link:focus,
	.fpvf-manual__row select:focus {
		outline: 3px solid var(--fpvf-brand, #cc1111);
		outline-offset: 2px;
	}
	.fpvf-plate__input:focus {
		outline: 3px solid var(--fpvf-brand, #cc1111);
		outline-offset: -3px;
	}
}

/* Flex gap arrived in Safari 14.1. Below that the plate and its button would
   sit flush together, so give the button a margin that modern browsers zero
   out again via the gap already set on the row. */
@supports not (gap: 1px) {
	.fpvf-nav__go { margin-left: .5rem; }
	.fpvf-hero__form .fpvf-btn,
	.fpvf__form .fpvf-btn { margin-left: .625rem; }
}

/* ============================================================ results grid */

/*
 * Match the shop's own responsive ladder.
 *
 * The theme scopes its mobile product-grid rules to archive pages, so on the
 * finder's results page the loop stayed at four columns all the way down and
 * gave 92px cards on a phone. Measured off a real category page at the same
 * widths: 1 column at 414 and below, 2 at 600, 3 at 768, and the theme's own
 * desktop layout from 1025 up. These rules reproduce that and stop at 1024 so
 * the desktop layout is left completely alone.
 */
@media (max-width: 1024px) {
	.fpvf-group ul.products {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 16px;
		margin: 0;
		padding: 0;
		list-style: none;
	}
	.fpvf-group ul.products::before,
	.fpvf-group ul.products::after { display: none; }
	.fpvf-group ul.products li.product {
		width: auto !important;
		margin: 0 !important;
		float: none !important;
		clear: none !important;
	}
}

@media (max-width: 767px) {
	.fpvf-group ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* the shop itself goes to a single full-width card here, so the finder does too */
@media (max-width: 479px) {
	.fpvf-group ul.products { grid-template-columns: 1fr; }
}

/*
 * The hero panel stays two across at every width, including on a phone.
 *
 * It is a teaser: six products with "see everything that fits" underneath, not
 * a listing. One across made it 2,900px of cards and turned the hero band into
 * three screens of scrolling before the rest of the page began.
 *
 * It needs restating here because the ladder above matches
 * .fpvf-group ul.products and the panel's lists are .fpvf-group too, so the
 * teaser was being dragged down with the results. Identical specificity, so
 * source order is what decides: this has to stay last in the file.
 */
.fpvf-hero__panel ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/*
 * On a phone the teaser goes one across, like everything else on the site.
 *
 * Two across at 375 gives a 143px card, and the shop itself never renders one
 * that narrow: its own category page drops to a single full-width card at this
 * width. Two across here produced exactly the squashed column the full-size
 * card is meant to avoid, with the title running to six lines.
 *
 * One across at full size would be six 485px cards, nearly 3,000px of hero
 * before the page proper starts, so the teaser shows the first two and
 * "see everything that fits" underneath carries on to the results page. The
 * count in the group heading still reports the true total.
 */
@media (max-width: 479px) {
	.fpvf-hero__panel ul.products { grid-template-columns: 1fr; }
	.fpvf-hero__panel ul.products li.product:nth-child(n + 3) { display: none; }
}
