/* FP Garage 1.1.7 (compact light cars and the wanted list; history below)
 *
 * FP Garage 1.1.0
 *
 * Garreth, 28 Sep 2026: "the actual number plate lookup can be shrunk down in size so it doesn't
 * overpower the website. The lists and each car in the garage should be the shining star of the page."
 * So: adding a car is one slim bar; each car is a hero card, a dark band carrying the customer's own
 * photo, the name large and the reg, with its parts laid out below as product tiles.
 *
 * Colours come from the store's tokens (--fpg-brand*, printed from fpvf_settings), so GSM is green,
 * SS4U blue and BigBrakes4u red. Shoptimizer styles headings, inputs and buttons by element name and
 * wins against a single class, so selectors here sit at (0,2,x) or better on purpose.
 */

.fpg,
.fpg-pop,
.fpg-save {
	--fpg-brand: #cc1111;
	--fpg-brand-dark: #aa0e0e;
	--fpg-brand-wash: #fff1f1;
	--fpg-brand-edge: #efb5b5;
	--fpg-ink: #16140f;
	--fpg-ink-2: #55514a;
	--fpg-line: #e2dfd9;
	--fpg-soft: #f6f5f2;
	--fpg-dark: #16140f;
	--fpg-dark-2: #2a261d;
	--fpg-on-dark: #f6f4ef;
	--fpg-on-dark-2: #b8b3a8;
	--fpg-plate: #fcd905;
	--fpg-band: #1b3f8f;
	--fpg-bad: #98240f;
	--fpg-good: #0f7a3a;
	--fpg-ease: cubic-bezier(.16, 1, .3, 1);
}

.fpg {
	position: relative;
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 0 3.5rem;
	color: var(--fpg-ink);
	font-family: inherit;
}
.fpg[data-fpg-where="page"] { padding-top: clamp(1.5rem, 4vw, 2.75rem); }

.fpg *, .fpg *::before, .fpg *::after,
.fpg-pop *, .fpg-pop *::before, .fpg-pop *::after { box-sizing: border-box; }
.fpg [hidden], .fpg-pop [hidden] { display: none !important; }
.fpg ::selection { background: var(--fpg-brand-wash); color: var(--fpg-ink); }

/* ---------- page head ---------- */
.fpg .fpg__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin: 0 0 1.25rem; }
.fpg h1.fpg__title { margin: 0; font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--fpg-ink); }
.fpg p.fpg__count { margin: 0; font-size: 1rem; color: var(--fpg-ink-2); font-variant-numeric: tabular-nums; }
.fpg p.fpg__count:empty { display: none; }

.fpg .fpg__body { display: grid; gap: 1.5rem; }

/* ---------- loading ---------- */
.fpg-loading { display: grid; gap: 1rem; }
.fpg-loading span { display: block; height: 4.5rem; border-radius: 14px; background: linear-gradient(90deg, var(--fpg-soft) 0 40%, #efede8 50%, var(--fpg-soft) 60% 100%); background-size: 250% 100%; animation: fpg-shimmer 1.3s linear infinite; }
.fpg-loading span + span { height: 16rem; }
@keyframes fpg-shimmer { to { background-position: -150% 0; } }

/* ---------- buttons ---------- */
.fpg .fpg-btn, .fpg-pop .fpg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	min-height: 2.875rem; padding: 0 1.25rem; border: 2px solid transparent; border-radius: 10px;
	font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.1; text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; white-space: nowrap;
	transition: background-color .18s var(--fpg-ease), border-color .18s var(--fpg-ease), color .18s var(--fpg-ease);
}
.fpg .fpg-btn--go, .fpg-pop .fpg-btn--go { background: var(--fpg-brand); color: #fff; }
.fpg .fpg-btn--go:hover, .fpg-pop .fpg-btn--go:hover { background: var(--fpg-brand-dark); color: #fff; }
.fpg .fpg-btn--ghost { background: #fff; color: var(--fpg-brand-dark); border-color: var(--fpg-brand-edge); }
.fpg .fpg-btn--ghost:hover { border-color: var(--fpg-brand); }
.fpg .fpg-btn--sm { width: 100%; min-height: 2.375rem; padding: .4375rem .625rem; font-size: .8125rem; line-height: 1.25; white-space: normal; text-align: center; background: #fff; color: var(--fpg-ink); border: 1px solid var(--fpg-line); }
.fpg .fpg-btn--sm:hover { background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); border-color: var(--fpg-brand-edge); }
.fpg .fpg-btn[disabled], .fpg-pop .fpg-btn[disabled] { opacity: .75; cursor: progress; }
.fpg :is(.fpg-btn, .fpg-link, .fpg-tile__x, .fpg-pick__opt, .fpg-move, .fpg-photo__btn):focus-visible,
.fpg-pop :is(.fpg-btn, .fpg-pop__car, .fpg-pick__opt, a):focus-visible { outline: 3px solid var(--fpg-brand); outline-offset: 2px; }

.fpg button.fpg-link { background: none; border: 0; padding: .25rem 0; font: inherit; font-size: .8125rem; color: var(--fpg-ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-transform: none; letter-spacing: 0; }
.fpg button.fpg-link:hover { color: var(--fpg-ink); }

/* ---------- the slim add bar ---------- */
.fpg .fpg-bar {
	display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
	padding: .75rem .875rem .75rem 1.125rem; border: 1px solid var(--fpg-line); border-radius: 14px; background: #fff;
}
.fpg .fpg-bar__lead { display: flex; align-items: center; gap: .625rem; margin-right: auto; }
.fpg .fpg-bar__icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); }
.fpg .fpg-bar__icon svg { width: 22px; height: 22px; }
.fpg .fpg-bar__label { font-weight: 700; font-size: 1rem; }
.fpg .fpg-bar__note { color: var(--fpg-ink-2); font-size: .9375rem; }

.fpg .fpg-pf, .fpg-pop .fpg-pf { display: flex; gap: .5rem; align-items: stretch; }
.fpg .fpg-plate, .fpg-pop .fpg-plate {
	display: inline-flex; width: 13.5rem; height: 2.875rem; overflow: hidden; flex: 0 1 auto;
	background: var(--fpg-plate); border: 1px solid #0f0e0b; border-radius: 7px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.fpg .fpg-plate__band, .fpg-pop .fpg-plate__band { display: flex; align-items: flex-end; justify-content: center; width: 1.625rem; padding-bottom: .3rem; background: var(--fpg-band); color: #fff; font-size: .5625rem; font-weight: 700; letter-spacing: .06em; }
.fpg .fpg-plate input.fpg-plate__input[type="text"], .fpg-pop .fpg-plate input.fpg-plate__input[type="text"] {
	flex: 1 1 auto; width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0 .5rem; border: 0; border-radius: 0; background: transparent; box-shadow: none;
	color: #14130f; font-family: "Charles Wright", "UKNumberPlate", ui-sans-serif, Verdana, sans-serif;
	font-size: 1.3125rem; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.fpg .fpg-plate input.fpg-plate__input[type="text"]::placeholder, .fpg-pop .fpg-plate input.fpg-plate__input[type="text"]::placeholder { color: #5a5000; opacity: 1; }
.fpg .fpg-plate input.fpg-plate__input[type="text"]:focus, .fpg-pop .fpg-plate input.fpg-plate__input[type="text"]:focus { outline: 3px solid var(--fpg-brand); outline-offset: -3px; background: #fde436; }

/* what the plate found: inside the bar, across its full width */
.fpg .fpg-found, .fpg-pop .fpg-found { flex: 1 1 100%; display: grid; gap: .625rem; justify-items: start; padding: .875rem 1rem; border-radius: 10px; background: var(--fpg-soft); }
.fpg .fpg-found:focus { outline: none; }
.fpg p.fpg-found__lead, .fpg-pop p.fpg-found__lead { margin: 0; font-size: .9375rem; }
.fpg p.fpg-found__msg, .fpg-pop p.fpg-found__msg { margin: 0; color: var(--fpg-ink-2); font-size: .9375rem; }
.fpg p.fpg-found__msg--bad, .fpg-pop p.fpg-found__msg--bad { color: var(--fpg-bad); font-weight: 600; }
.fpg .fpg-found__row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; width: 100%; }
.fpg .fpg-found__car, .fpg-pop .fpg-found__car { display: grid; }
.fpg .fpg-found__name, .fpg-pop .fpg-found__name { font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; }
.fpg .fpg-found__years, .fpg-pop .fpg-found__years { color: var(--fpg-ink-2); font-size: .8125rem; }

.fpg .fpg-pick, .fpg-pop .fpg-pick { display: flex; flex-wrap: wrap; gap: .5rem; }
.fpg button.fpg-pick__opt, .fpg-pop button.fpg-pick__opt {
	display: grid; gap: .125rem; text-align: left; min-width: 11rem; padding: .625rem .875rem; border-radius: 10px;
	border: 1px solid var(--fpg-line); background: #fff; color: var(--fpg-ink); font: inherit; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.fpg button.fpg-pick__opt:hover, .fpg-pop button.fpg-pick__opt:hover { border-color: var(--fpg-brand); background: var(--fpg-brand-wash); }
.fpg .fpg-pick__name, .fpg-pop .fpg-pick__name { font-weight: 600; font-size: .9375rem; }
.fpg .fpg-pick__years, .fpg-pop .fpg-pick__years { font-size: .8125rem; color: var(--fpg-ink-2); }

/* ---------- a car: a compact, light card (1.1.6) ----------
 * Garreth, 28 Sep: the car cards were too big and the dark band overpowering. Each car is now a
 * white card on the page's own palette: a square thumbnail beside the name, the reg as a small
 * plate, one brand button, and quiet text actions. The brand colour is kept for the button,
 * the photo badge and the empty-photo car, so each store still reads as itself. */
.fpg .fpg-car {
	display: flex; flex-direction: column; min-width: 0;
	border: 1px solid var(--fpg-line); border-radius: 14px; background: #fff;
	transition: border-color .18s var(--fpg-ease), box-shadow .18s var(--fpg-ease);
}
.fpg .fpg-car:hover { border-color: #d3cfc7; box-shadow: 0 10px 24px -20px rgba(22, 20, 15, .45); }
.fpg .fpg-car__head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem .875rem; }
.fpg .fpg-car__id { min-width: 0; flex: 1 1 auto; }
.fpg h2.fpg-car__name { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--fpg-ink); text-wrap: balance; }
.fpg p.fpg-car__meta { margin: .25rem 0 0; font-size: .875rem; color: var(--fpg-ink-2); font-variant-numeric: tabular-nums; }
.fpg .fpg-car__id > .fpg-reg { margin-top: .5rem; }

/* the car's picture: a square thumbnail, a button for signed-in customers */
.fpg .fpg-photo {
	position: relative; flex: 0 0 auto; display: grid; place-items: center;
	width: 5.5rem; height: 5.5rem; margin: 0; padding: 0; border: 0; border-radius: 12px;
	background: var(--fpg-brand-wash); color: var(--fpg-brand);
	font: inherit; text-transform: none; letter-spacing: 0;
}
.fpg button.fpg-photo { cursor: pointer; transition: box-shadow .15s var(--fpg-ease), transform .15s var(--fpg-ease); -webkit-tap-highlight-color: transparent; }
.fpg button.fpg-photo:hover { box-shadow: 0 0 0 3px var(--fpg-brand-wash), 0 0 0 4px var(--fpg-brand-edge); }
.fpg button.fpg-photo:active { transform: scale(.97); }
.fpg button.fpg-photo:focus-visible { outline: 3px solid var(--fpg-brand); outline-offset: 3px; }
.fpg .fpg-photo.has-photo { background: var(--fpg-soft); }
/* absolute: a percentage height cannot resolve inside a content-sized grid row, and the theme sets img { height: auto } */
.fpg .fpg-photo__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 12px; object-fit: cover; }
.fpg .fpg-photo__icon { display: grid; place-items: center; }
.fpg .fpg-photo__icon svg { width: 2.75rem; height: 2.75rem; }
.fpg .fpg-photo__badge {
	position: absolute; right: -.3125rem; bottom: -.3125rem; display: grid; place-items: center;
	width: 1.5rem; height: 1.5rem; border-radius: 50%;
	background: var(--fpg-brand); color: #fff; box-shadow: 0 0 0 2px #fff;
}
.fpg .fpg-photo.is-uploading .fpg-photo__img, .fpg .fpg-photo.is-uploading .fpg-photo__icon { opacity: .45; }
.fpg .fpg-photo__file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.fpg .fpg-reg { display: inline-flex; height: 1.75rem; border-radius: 5px; overflow: hidden; border: 1px solid #0f0e0b; background: var(--fpg-plate); vertical-align: middle; }
.fpg .fpg-reg__band { display: flex; align-items: flex-end; padding: 0 .25rem .2rem; background: var(--fpg-band); color: #fff; font-size: .4375rem; font-weight: 700; }
.fpg .fpg-reg__txt { display: flex; align-items: center; padding: 0 .5rem; font-family: "Charles Wright", "UKNumberPlate", ui-sans-serif, Verdana, sans-serif; font-size: .9375rem; letter-spacing: .06em; color: #14130f; }

/* which one is it: a slim strip of chips, not a coloured block */
.fpg .fpg-car__confirm { margin: 0 1rem .875rem; padding: .75rem .875rem; border-radius: 10px; background: var(--fpg-soft); }
.fpg .fpg-car__confirm p { margin: 0 0 .5rem; font-size: .875rem; font-weight: 600; color: var(--fpg-ink); }
.fpg .fpg-car__confirm button.fpg-pick__opt { min-width: 9rem; padding: .5rem .75rem; }

.fpg .fpg-car__acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: 0 1rem 1rem; }
.fpg .fpg-btn.fpg-btn--shop { min-height: 2.5rem; padding: 0 1rem; font-size: .875rem; border-radius: 9px; }
.fpg .fpg-car__quiet { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-left: auto; }

.fpg p.fpg-none { margin: 0; padding: 0 1rem 1rem; color: var(--fpg-ink-2); font-size: .875rem; line-height: 1.5; }

/* ---------- the parts, as tiles ---------- */
.fpg ul.fpg-tiles { list-style: none; margin: 0; padding: 1.25rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
.fpg li.fpg-tile { position: relative; display: flex; flex-direction: column; margin: 0; border: 1px solid var(--fpg-line); border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .18s var(--fpg-ease), box-shadow .18s var(--fpg-ease); }
.fpg li.fpg-tile:hover { border-color: var(--fpg-brand-edge); box-shadow: 0 12px 26px -18px rgba(20, 24, 29, .45); }
.fpg .fpg-tile__img { display: block; aspect-ratio: 1 / 1; padding: .75rem; background: #fff; border-bottom: 1px solid var(--fpg-line); }
.fpg .fpg-tile__img img { width: 100%; height: 100%; object-fit: contain; }
.fpg button.fpg-tile__x { position: absolute; top: .5rem; right: .5rem; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; padding: 0; border: 1px solid var(--fpg-line); border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--fpg-ink-2); cursor: pointer; }
.fpg button.fpg-tile__x:hover { background: #fdeceb; color: var(--fpg-bad); border-color: #f1c2bc; }
.fpg .fpg-tile__body { display: flex; flex-direction: column; gap: .375rem; flex: 1 1 auto; padding: .875rem; }
.fpg a.fpg-tile__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--fpg-ink); font-weight: 600; font-size: .9375rem; line-height: 1.35; text-decoration: none; }
.fpg a.fpg-tile__name:hover { color: var(--fpg-brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.fpg .fpg-tile__price { font-size: .9375rem; font-variant-numeric: tabular-nums; margin-bottom: auto; padding-bottom: .375rem; }
.fpg .fpg-tile__stock { font-size: .8125rem; color: var(--fpg-ink-2); }
.fpg select.fpg-move { width: 100%; height: 2.375rem; padding: 0 2rem 0 .625rem; border: 1px solid var(--fpg-line); border-radius: 8px; background-color: #fff; font: inherit; font-size: .8125rem; color: var(--fpg-ink); cursor: pointer; }

/* ---------- empty and guest ---------- */
.fpg .fpg-empty { display: grid; justify-items: center; gap: .5rem; padding: 3rem 1.5rem; text-align: center; border: 1px dashed var(--fpg-line); border-radius: 18px; }
.fpg .fpg-empty__icon { display: grid; place-items: center; width: 5rem; height: 5rem; border-radius: 50%; background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); }
.fpg .fpg-empty__icon svg { width: 44px; height: 44px; }
.fpg p.fpg-empty__title { margin: .5rem 0 0; font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }
.fpg p.fpg-empty__text { margin: 0; max-width: 46ch; color: var(--fpg-ink-2); font-size: .9375rem; }

.fpg .fpg-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; padding: 1rem 1.25rem; border-radius: 14px; background: var(--fpg-soft); }
.fpg p.fpg-guest__txt { flex: 1 1 22rem; margin: 0; font-size: .9375rem; line-height: 1.5; }

.fpg p.fpg-msg--bad { color: var(--fpg-bad); font-weight: 600; }
.fpg.is-busy .fpg__body { cursor: progress; }

/* ---------- toast ---------- */
.fpg-toast {
	position: fixed; left: 50%; bottom: 1.5rem; z-index: 100001; margin: 0; max-width: calc(100vw - 2rem);
	padding: .75rem 1.125rem; border-radius: 10px; background: #16140f; color: #fff; font-size: .9375rem; font-family: inherit;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45);
	transform: translate(-50%, 1rem); opacity: 0; pointer-events: none; transition: opacity .2s, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.fpg-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.fpg-toast--bad { background: #98240f; }

/* ================================================================ Add to garage on products */

.fpg-save--full { margin: .875rem 0; }
.fpg-save .fpg-save__btn {
	display: inline-flex; align-items: center; gap: .5rem; padding: 0 1.125rem; min-height: 2.875rem;
	border: 2px solid var(--fpg-line); border-radius: 10px; background: #fff; color: var(--fpg-ink);
	font: inherit; font-size: .9375rem; font-weight: 700; text-transform: none; letter-spacing: 0; cursor: pointer;
	transition: border-color .18s, background-color .18s, color .18s;
}
.fpg-save .fpg-save__btn:hover, .fpg-save .fpg-save__btn[aria-expanded="true"] { border-color: var(--fpg-brand); color: var(--fpg-brand-dark); background: var(--fpg-brand-wash); }
.fpg-save .fpg-save__btn.is-saved { border-color: var(--fpg-brand-edge); background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); }
.fpg-save .fpg-save__btn:focus-visible { outline: 3px solid var(--fpg-brand); outline-offset: 2px; }
.fpg-save .fpg-save__btn svg { flex: 0 0 auto; }

/* the small one on product cards, top right, where the wishlist heart sat */
li.product { position: relative; }
.fpg-save--mini { position: absolute; top: .625rem; right: .625rem; z-index: 5; margin: 0; }
.fpg-save--mini .fpg-save__btn { width: 2.5rem; min-height: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; border-width: 1px; border-radius: 50%; background: rgba(255, 255, 255, .94); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .35); }

/* the picker */
.fpg-pop {
	position: absolute; z-index: 100000; padding: 1rem; border-radius: 16px; background: #fff; color: var(--fpg-ink);
	font-family: inherit; font-size: 1rem; line-height: 1.4;
	border: 1px solid var(--fpg-line); box-shadow: 0 24px 60px -24px rgba(12, 12, 10, .5);
	animation: fpg-pop .22s var(--fpg-ease);
}
@keyframes fpg-pop { from { opacity: 0; transform: translateY(-6px); } }
.fpg-pop p.fpg-pop__title { margin: 0 0 .75rem; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.01em; }
.fpg-pop p.fpg-pop__loading { margin: 0; color: var(--fpg-ink-2); font-size: .9375rem; }
.fpg-pop .fpg-pop__cars { display: grid; gap: .375rem; }
.fpg-pop button.fpg-pop__car {
	display: flex; align-items: center; gap: .75rem; width: 100%; padding: .5rem .625rem; border: 1px solid var(--fpg-line); border-radius: 12px;
	background: #fff; color: var(--fpg-ink); font: inherit; text-align: left; cursor: pointer; text-transform: none; letter-spacing: 0;
	transition: border-color .15s, background-color .15s;
}
.fpg-pop button.fpg-pop__car:hover { border-color: var(--fpg-brand); background: var(--fpg-brand-wash); }
.fpg-pop button.fpg-pop__car.is-in { background: var(--fpg-soft); }
.fpg-pop .fpg-pop__photo { flex: 0 0 auto; width: 3.5rem; height: 2.625rem; border-radius: 7px; object-fit: cover; }
.fpg-pop .fpg-pop__icon { flex: 0 0 auto; display: grid; place-items: center; width: 3.5rem; height: 2.625rem; border-radius: 7px; background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); }
.fpg-pop .fpg-pop__icon svg { width: 24px; height: 24px; }
.fpg-pop .fpg-pop__car--saved .fpg-pop__icon { background: var(--fpg-soft); color: var(--fpg-ink-2); }
.fpg-pop .fpg-pop__txt { display: grid; flex: 1 1 auto; min-width: 0; }
.fpg-pop .fpg-pop__name { font-weight: 700; font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpg-pop .fpg-pop__sub { font-size: .8125rem; color: var(--fpg-ink-2); }
.fpg-pop .fpg-pop__tick { color: var(--fpg-good); }
.fpg-pop .fpg-pop__add { display: grid; gap: .5rem; margin-top: .875rem; padding-top: .875rem; border-top: 1px solid var(--fpg-line); }
.fpg-pop p.fpg-pop__addlbl { margin: 0; font-size: .875rem; font-weight: 700; }
.fpg-pop .fpg-pf { flex-wrap: wrap; }
.fpg-pop .fpg-plate { flex: 1 1 10rem; width: auto; }
.fpg-pop .fpg-found { margin-top: .25rem; }
.fpg-pop a.fpg-pop__all { display: inline-block; margin-top: .875rem; font-size: .875rem; font-weight: 600; color: var(--fpg-brand-dark); text-underline-offset: 3px; }

/* ---------- header icon ---------- */
.fpg-navicon svg.fpg-car { display: block; margin: 0 auto; }
/* the theme appends its own icon image to the menu item; inside the Garage item only ours shows */
.fpg-navitem .icon-wrapper:not(.fpg-navicon) { display: none !important; }

/* ---------- narrow ---------- */
@media (max-width: 760px) {
	.fpg ul.fpg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; padding: .875rem; }
	.fpg .fpg-bar { padding: .875rem; }
	.fpg .fpg-bar .fpg-pf { flex: 1 1 100%; }
	.fpg .fpg-plate { flex: 1 1 auto; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.fpg *, .fpg-pop, .fpg-toast, .fpg-loading span { animation: none !important; transition: none !important; }
}

/* ================================================================ the cars grid (1.1.4, compact from 1.1.6)
 * Garreth, 28 Sep: 1 car full width, 2 side by side, 3 across, 4 as 2 x 2, more three across,
 * one per row on phones. Those rules stay; the cards themselves are compact and light now. */
.fpg .fpg-cars { display: grid; gap: 1rem; align-items: stretch; }
.fpg .fpg-cars--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpg .fpg-cars--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* a car's own parts: small tiles under a hairline, so the card stays compact */
.fpg ul.fpg-tiles--compact {
	margin-top: auto; padding: .875rem 1rem 1rem; border-top: 1px solid var(--fpg-line);
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .625rem;
}
.fpg .fpg-cars--3 ul.fpg-tiles--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fpg ul.fpg-tiles--compact .fpg-tile__img { padding: .5rem; }
.fpg ul.fpg-tiles--compact .fpg-tile__body { padding: .625rem; gap: .25rem; }
.fpg ul.fpg-tiles--compact a.fpg-tile__name, .fpg ul.fpg-tiles--compact .fpg-tile__price { font-size: .8125rem; }
.fpg ul.fpg-tiles--compact button.fpg-tile__x { width: 1.875rem; height: 1.875rem; top: .375rem; right: .375rem; }
.fpg ul.fpg-tiles--compact button.fpg-tile__x svg { width: 15px; height: 15px; }

/* ---------- the wanted list: kit that is not for one car, across the stores ---------- */
.fpg .fpg-wanted { margin-top: .75rem; padding-top: 1.75rem; border-top: 1px solid var(--fpg-line); }
.fpg .fpg-wanted__head { display: grid; gap: .25rem; margin: 0 0 1.125rem; }
.fpg h2.fpg-wanted__title { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.15; color: var(--fpg-ink); }
.fpg p.fpg-wanted__sub { margin: 0; max-width: 62ch; font-size: .9375rem; line-height: 1.5; color: var(--fpg-ink-2); }
.fpg .fpg-wanted ul.fpg-tiles { padding: 0; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .875rem; }
.fpg .fpg-wanted p.fpg-none { padding: 0; }
.fpg .fpg-tile__store {
	align-self: flex-start; padding: .125rem .5rem; border-radius: 999px;
	background: var(--fpg-soft); color: var(--fpg-ink-2); font-size: .75rem; font-weight: 700; line-height: 1.5;
}
.fpg .fpg-tile__store.is-here { background: var(--fpg-brand-wash); color: var(--fpg-brand-dark); }

@media (max-width: 1024px) {
	.fpg .fpg-cars--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.fpg .fpg-cars--2, .fpg .fpg-cars--3 { grid-template-columns: minmax(0, 1fr); }
	.fpg .fpg-car__head { gap: .875rem; padding: .875rem .875rem .75rem; }
	.fpg .fpg-photo { width: 4.5rem; height: 4.5rem; }
	.fpg .fpg-photo__icon svg { width: 2.25rem; height: 2.25rem; }
	.fpg h2.fpg-car__name { font-size: 1.125rem; }
	.fpg .fpg-car__acts { padding: 0 .875rem .875rem; }
	.fpg .fpg-car__acts .fpg-btn--shop { flex: 1 1 100%; }
	.fpg .fpg-car__quiet { margin-left: 0; }
	.fpg .fpg-car__confirm { margin: 0 .875rem .75rem; }
	.fpg ul.fpg-tiles--compact, .fpg .fpg-cars--3 ul.fpg-tiles--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: .75rem .875rem .875rem; }
	.fpg p.fpg-none { padding: 0 .875rem .875rem; }
	.fpg .fpg-wanted ul.fpg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
	.fpg h2.fpg-wanted__title { font-size: 1.3125rem; }
}
@media (prefers-reduced-motion: reduce) {
	.fpg .fpg-car, .fpg button.fpg-photo { transition: none; }
	.fpg button.fpg-photo:active { transform: none; }
}

/* ================================================================ Add to garage on the product page (1.1.9)
 * Garreth, 28 Sep: the button did not match the buttons around it. On all three stores it sits in
 * a two-column grid beside "Found this product at a lower price?", so it takes that card's language:
 * the same 1px border, 8px corners, 12.5px semibold text and a store-coloured icon, filling its
 * column at the same height. The accent is the stores' shared --gsmz-accent (GSM green, SS4U blue,
 * BigBrakes4u red), falling back to the garage's own brand token. On hover only the border and icon
 * take the accent; the text stays dark, because GSM's light green on white is too faint to read.
 * Scoped to --full: the round icon on product cards (--mini) is untouched. */
.fpg-save.fpg-save--full { display: flex; align-self: stretch; margin: 0; }
.fpg-save.fpg-save--full .fpg-save__btn {
	flex: 1 1 auto; width: 100%; min-height: 3rem; height: auto;
	justify-content: center; gap: .375rem; padding: .5rem .625rem;
	border: 1px solid #e3e6eb; border-radius: 8px; background: #fff; box-shadow: none;
	color: #1d2430; font-size: .78125rem; font-weight: 600; line-height: 1.3; text-align: center;
}
.fpg-save.fpg-save--full .fpg-save__btn svg { width: 18px; height: 18px; color: var(--gsmz-accent, var(--fpg-brand)); }
.fpg-save.fpg-save--full .fpg-save__btn:hover,
.fpg-save.fpg-save--full .fpg-save__btn[aria-expanded="true"] { border-color: var(--gsmz-accent, var(--fpg-brand)); background: #fff; color: #1d2430; }
.fpg-save.fpg-save--full .fpg-save__btn.is-saved { border-color: var(--gsmz-accent, var(--fpg-brand)); background: #fff; color: #1d2430; }
.fpg-save.fpg-save--full .fpg-save__btn:focus-visible { outline: 2px solid var(--gsmz-accent, var(--fpg-brand)); outline-offset: 2px; }

/* ================================================================ Guides for you (1.1.11)
 * Garreth, 28 Sep: under the lists, the guides that suit the cars and the kit saved, from all
 * three stores. Editorial cards in the page's light language: the guide's own photo, the store
 * tag, the title and one line saying why it was picked. The whole card is the link. */
.fpg .fpg-guides { margin-top: .75rem; padding-top: 1.75rem; border-top: 1px solid var(--fpg-line); }
.fpg ul.fpg-guides__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fpg li.fpg-guide { margin: 0; }
.fpg a.fpg-guide__link {
	display: flex; flex-direction: column; height: 100%; overflow: hidden;
	border: 1px solid var(--fpg-line); border-radius: 12px; background: #fff;
	color: var(--fpg-ink); text-decoration: none;
	transition: border-color .18s var(--fpg-ease), box-shadow .18s var(--fpg-ease);
}
.fpg a.fpg-guide__link:hover { border-color: #d3cfc7; box-shadow: 0 12px 26px -20px rgba(22, 20, 15, .45); }
.fpg a.fpg-guide__link:focus-visible { outline: 3px solid var(--fpg-brand); outline-offset: 2px; }
.fpg .fpg-guide__img { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--fpg-soft); color: var(--fpg-ink-2); overflow: hidden; }
.fpg .fpg-guide__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fpg .fpg-guide__body { display: flex; flex-direction: column; gap: .375rem; flex: 1 1 auto; padding: .875rem 1rem 1rem; }
.fpg .fpg-guide__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: .9375rem; line-height: 1.35; text-wrap: pretty; }
.fpg a.fpg-guide__link:hover .fpg-guide__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fpg-brand); }
.fpg .fpg-guide__why { margin-top: auto; padding-top: .25rem; font-size: .8125rem; color: var(--fpg-ink-2); }

@media (max-width: 1024px) {
	.fpg ul.fpg-guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.fpg ul.fpg-guides__list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.fpg a.fpg-guide__link { transition: none; }
}
