/* components/trust-strip/trust-strip.css */

.mvc-trust-strip {
	padding-block: var(--space-6);
	border-block: 1px solid var(--color-border);
}

.mvc-trust-strip--alt     { background-color: var(--color-bg-alt); }
.mvc-trust-strip--dark    {
	background: var(--mvc-gradient-hero-dark,
		linear-gradient(160deg, #060c1e 0%, var(--mvc-color-primary, var(--color-primary)) 55%, #0c1a52 100%));
	border-color: rgba(255,255,255,0.08);
}
.mvc-trust-strip--primary {
	background: var(--mvc-gradient-primary,
		linear-gradient(135deg, var(--mvc-color-primary, var(--color-primary)) 0%, var(--color-primary-dark, #111d4a) 100%));
	border-color: rgba(255,255,255,0.1);
}

/*
 * Default layout: 5-column grid across the whole strip.
 *
 * The PHP wraps badges/certs/partners in <ul>s, but we use display:contents
 * on those wrappers so every badge / cert / partner <li> — plus the rating
 * div — becomes a direct grid cell. That gives us "rating + N badges + M
 * certs all sharing one 5-up grid" without changing the markup.
 *
 * Schema attributes (itemscope / itemtype) on the rating div are preserved
 * because display:contents only affects layout, not the DOM/aria tree.
 */
.mvc-trust-strip__inner {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	align-items: start;
	justify-items: center;
	gap: var(--space-6) var(--space-8);
}

/* Promote children of the badge/cert/partner ULs into the parent grid. */
.mvc-trust-strip__badges,
.mvc-trust-strip__certs,
.mvc-trust-strip__partners {
	display: contents;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Responsive: 5 → 3 → 2 */
@media (max-width: 767px) {
	.mvc-trust-strip__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}
@media (max-width: 479px) {
	.mvc-trust-strip__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ── Rating ─────────────────────────────────────────────────────────────── */
.mvc-trust-strip__rating {
	display: flex;
	align-items: center;
	gap: var(--space-3);
	/* No white-space: nowrap — let "(127 reviews)" wrap to a second line
	   when the grid cell is narrow. */
}

.mvc-trust-strip__rating-text {
	font-size: var(--text-sm);
}

/* ── Badges ─────────────────────────────────────────────────────────────── */
.mvc-trust-strip__badge {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	max-width: 100%;
}

.mvc-trust-strip__badge-icon {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex-shrink: 0;
}

.mvc-trust-strip__badge-label {
	font-size: var(--text-sm);
	font-family: var(--mvc-font-accent, var(--mvc-font-body));
	font-weight: var(--font-semibold);
	color: var(--color-text);
	min-width: 0;        /* let flex children shrink so labels wrap */
	flex: 1 1 auto;
	overflow-wrap: anywhere;
}

.mvc-trust-strip--dark  .mvc-trust-strip__badge-label,
.mvc-trust-strip--primary .mvc-trust-strip__badge-label {
	color: var(--color-text-inverse);
}

/* ── Cert + Partner logos ───────────────────────────────────────────────── */
.mvc-trust-strip__cert,
.mvc-trust-strip__partner {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
}

.mvc-trust-strip__cert-label {
	font-size: var(--text-sm);
	font-weight: var(--font-semibold);
	color: var(--color-text);
	text-align: center;
	overflow-wrap: anywhere;
}

.mvc-trust-strip__cert-logo,
.mvc-trust-strip__partner-logo {
	height: 40px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: 0.7;
	transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.mvc-trust-strip__cert a:hover .mvc-trust-strip__cert-logo,
.mvc-trust-strip__partner a:hover .mvc-trust-strip__partner-logo {
	filter: grayscale(0);
	opacity: 1;
}

.mvc-trust-strip--dark .mvc-trust-strip__cert-logo,
.mvc-trust-strip--dark .mvc-trust-strip__partner-logo {
	filter: grayscale(1) brightness(2);
}

/* ── Scroll layout (single-row marquee) ─────────────────────────────────── */
/* Restore flex behaviour so the scroll layout actually scrolls — grid would
   re-wrap into rows on overflow. */
.mvc-trust-strip--scroll .mvc-trust-strip__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-8);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
/* And restore the wrapper ULs so their <li>s flow inline with the rating. */
.mvc-trust-strip--scroll .mvc-trust-strip__badges,
.mvc-trust-strip--scroll .mvc-trust-strip__certs,
.mvc-trust-strip--scroll .mvc-trust-strip__partners {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--space-6);
}

.mvc-trust-strip--scroll .mvc-trust-strip__inner::-webkit-scrollbar {
	display: none;
}

/* ── Style overrides ────────────────────────────────────────────────────── */

/* Icon stats — larger icon + number + label stacked, centered */
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__inner {
	gap: var(--space-10);
}
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__badge {
	flex-direction: column;
	text-align: center;
	gap: var(--space-2);
	padding: var(--space-4) var(--space-6);
	position: relative;
}
/* Vertical divider between items (not on last) */
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__badge:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 20%;
	height: 60%;
	width: 1px;
	background: rgba(255,255,255,0.15);
}
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__badge-icon {
	width: 80px;
	height: 80px;
	margin-inline: auto;
}
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__badge-label {
	font-size: var(--text-base);
	font-family: var(--mvc-font-accent, var(--mvc-font-body));
	font-weight: var(--font-weight-bold);
	letter-spacing: -0.01em;
}
/* Sub-label (second line inside badge-label if using <span> inside) */
.mvc-trust-strip--style-icon-stats .mvc-trust-strip__badge-sublabel {
	font-size: var(--text-xs);
	font-weight: 400;
	opacity: 0.75;
	display: block;
	margin-top: var(--space-1);
}

/* Logo bar — partner logos only, full-width even row, no border */
.mvc-trust-strip--style-logo-bar {
	border-block: none;
	padding-block: var(--space-8);
}
.mvc-trust-strip--style-logo-bar .mvc-trust-strip__cert-logo,
.mvc-trust-strip--style-logo-bar .mvc-trust-strip__partner-logo {
	height: 48px;
	filter: none;
	opacity: 1;
}

/* Rating bar — rating + count prominent, badges suppressed to smaller */
.mvc-trust-strip--style-rating-bar .mvc-trust-strip__rating {
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
}
.mvc-trust-strip--style-rating-bar .mvc-trust-strip__rating-text {
	font-size: var(--text-lg);
	font-weight: var(--font-weight-bold);
}

/* Badges inline — single horizontal row, no wrap */
.mvc-trust-strip--style-badges-inline .mvc-trust-strip__inner {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--space-8);
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.mvc-trust-strip--style-badges-inline .mvc-trust-strip__badges,
.mvc-trust-strip--style-badges-inline .mvc-trust-strip__certs,
.mvc-trust-strip--style-badges-inline .mvc-trust-strip__partners {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--space-6);
}
.mvc-trust-strip--style-badges-inline .mvc-trust-strip__inner::-webkit-scrollbar {
	display: none;
}
