/**
 * Trust row — shared styles for the badge strip at the top of hero form cards.
 * Rendered by includes/partials/trust-row.php; enqueued globally as `cbh-trust-row`.
 */
.cbh-trust-row {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1rem .5rem;
	margin: 0 0 1rem;
	padding: 0;
	/* Stay at the very top even when the form card is a flex column that
	   pulls other children up with negative order (e.g. the pmax 2-step
	   counter uses `.multi-step-form__steps { order: -1 }`). */
	order: -2;
}

.cbh-trust-row__item {
	display: inline-flex;
	align-items: center;
}

/* Google: "X.X rating on Google" text stacked above the gold stars, both centered. */
.cbh-trust-row__item--google {
	flex-direction: column;
	align-items: center;
	gap: .25rem;
}

.cbh-trust-row__google-text {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.1;
	color: inherit;
}

.cbh-trust-row__stars {
	display: inline-flex;
	gap: 1px;
}

/* Stars carry their own #FFB039 fill in the SVG source — no color override. */
.cbh-trust-row__stars :is(svg, img) {
	width: 20px;
	height: 20px;
}

/* Image badges (get_responsive_image may emit <picture>). */
.cbh-trust-row__item :is(img, picture) {
	display: block;
	max-height: 3rem;
	width: auto;
	object-fit: contain;
}

.cbh-trust-row__item--bbb :is(img, picture) {
	max-width: 9rem;
}

/* Combined BBB + A+ badge (single wide image, ~2.4:1) replacing the two
   separate bbb / aplus items. Height-driven so it matches the star row. */
.cbh-trust-row__item--bbb-combined :is(img, picture) {
	max-height: 3rem;
	max-width: 12rem;
}

.cbh-trust-row__item--aplus :is(img, picture),
.cbh-trust-row__item--yelp :is(img, picture) {
	max-height: 3rem;
	max-width: 3rem;
}

@media (max-width: 600px) {
	.cbh-trust-row {
		gap: .625rem .5rem;
	}

	.cbh-trust-row__google-text {
		font-size: .75rem;
	}

	/* Scale the badges down so all three still fit one line on phones.
	   Without these caps the desktop sizes (3rem tall, 12rem BBB) overflow
	   the form card below ~414px and the row wraps. */
	.cbh-trust-row__stars :is(svg, img) {
		width: 16px;
		height: 16px;
	}

	.cbh-trust-row__item :is(img, picture) {
		max-height: 2.25rem;
	}

	.cbh-trust-row__item--bbb-combined :is(img, picture) {
		max-height: 2.25rem;
		max-width: 9rem;
	}

	.cbh-trust-row__item--aplus :is(img, picture),
	.cbh-trust-row__item--yelp :is(img, picture) {
		max-height: 2.25rem;
		max-width: 2.25rem;
	}
}
