/*!
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Kadence WP
Author URI: https://www.kadencewp.com/
Description: A child theme for the Kadence Theme.
Version: 1.1.0
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

/* ---------- 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 grid (WP Grid Builder) ---------- */

.wp-grid-builder.vehicles-grid .wpgb-card .wpgb-card-body {
	padding: 16px 20px 20px;
}

.wp-grid-builder.vehicles-grid .wpgb-card .wpgb-card-body h3.wpgb-block-2 {
	font-size: 12px;
	letter-spacing: 0.04em;
}

.wp-grid-builder.vehicles-grid .wpgb-card .wpgb-card-body h3.wpgb-block-2 .wpgb-block-term {
	padding-bottom: 4px;
}

.wp-grid-builder.vehicles-grid .wpgb-card .wpgb-card-body h2.wpgb-block-3 {
	font-size: 19px;
	line-height: 1.3;
}

/* 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;
}

/*
 * Homepage mobile spacing, type and the 3-up brand logo grid are Kadence
 * block settings on the front page (mobile values), not CSS here.
 */

/* ---------- Mobile: get cars on screen sooner ---------- */

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

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

	.wp-grid-builder.vehicles-grid .wpgb-card .wpgb-card-body h2.wpgb-block-3 {
		font-size: 18px;
	}
}
