/*
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: 2026 Marcus Quinn
Additional terms (GPL-3.0 section 7(b)): ATTRIBUTION.txt
Provenance: wpas-d596de0f0fc807fd. Copies, even of part, keep these lines.

Styles for markup this theme adds (vehicle price, specs, badges, highlights,
the no-stock notice) and for the WP Grid Builder stock grid. Page layout,
spacing and type belong in Kadence settings and block settings; one-off page
tweaks in YellowPencil.
*/

/* ---------- Vehicle cards: shared price/specs ---------- */

/* Doubled scope beats WP Grid Builder and Kadence card resets. */
.wp-grid-builder .wpgb-card p.acj-card-price,
.loop-entry.type-vehicle .entry-header p.acj-card-price {
	margin: 10px 0 2px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--global-palette1);
}

.wp-grid-builder .wpgb-card p.acj-card-specs,
.loop-entry.type-vehicle .entry-header p.acj-card-specs {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--global-palette5);
}

/*
 * WP Grid Builder cards keep their fixed white background in Kadence dark
 * mode, so their text uses the light-palette colours rather than palette
 * variables that switch to light tints.
 */
.wp-grid-builder .wpgb-card p.acj-card-price {
	color: #0070cc;
}

.wp-grid-builder .wpgb-card p.acj-card-specs {
	color: #43596b;
}

/* Scoped like the price: WP Grid Builder resets span colour, font and padding. */
.acj-card-badge,
.wp-grid-builder .wpgb-card span.acj-card-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--global-palette13, #b82105);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	vertical-align: middle;
}

/* ---------- /car-sales/ stock filters (WP Grid Builder) ---------- */

/*
 * The stock card's padding, type and title sizes (mobile included) are in
 * WP Grid Builder > Cards > Vehicle (card 21), not here.
 */

/* Filters: compact, always visible. */
.page-id-8334 .wpgb-facet {
	margin-bottom: 12px;
}

.page-id-8334 .wpgb-facet .wpgb-facet-title {
	margin: 0 0 6px;
	font-size: 15px;
}

.page-id-8334 .acj-stock-filters .wpgb-facet {
	margin-bottom: 0;
}

.page-id-8334 .wpgb-facet > fieldset:last-child {
	margin-bottom: 0;
}

/* Shown when a make link had no stock and fell back to all stock. */
.acj-no-stock-notice {
	max-width: var(--global-content-width, 1290px);
	margin: 16px auto 0;
	padding: 12px 16px;
	border-left: 4px solid var(--global-palette1);
	border-radius: 8px;
	background: var(--global-palette9);
	color: var(--global-palette4);
	font-size: 16px;
}

/* ---------- Homepage vehicle loops (Kadence posts block) ---------- */

.wp-block-kadence-posts .entry.loop-entry.type-vehicle .entry-header .entry-title {
	font-size: 21px;
	line-height: 1.3;
	text-transform: none;
}

/* ---------- Single vehicle page ---------- */

.acj-vehicle-highlights {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
}

.acj-vehicle-highlights li {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--global-palette7);
	color: var(--global-palette3);
	font-size: 14px;
	font-weight: 600;
}

.acj-vehicle-highlights li.acj-highlight-reduced {
	background: var(--global-palette13, #b82105);
	color: #fff;
}

/* ---------- Mobile: stock filters ---------- */

@media (max-width: 767px) {
	.page-id-8334 .wpgb-facet {
		margin-bottom: 8px;
	}

	.page-id-8334 .wpgb-facet .wpgb-facet-title {
		font-size: 14px;
	}
}
