/**
 * Homepage Trust Features styles.
 *
 * Location: /assets/css/frontend/homepage/sections/trust-features/trust-features.css
 * Purpose: Keeps the Trust Features strip attached below the Hero Slider with responsive hidden-scroll layouts.
 *
 * @package SunTechPortal
 */

.stp-homepage-trust {
	--stp-trust-text: #111827;
	--stp-trust-icon: #4b5563;
	--stp-trust-divider: #16a34a;
	width: min(var(--stp-store-content-width, 1180px), calc(100% - 30px));
	margin: 0 auto 18px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.stp-homepage-slider + .stp-homepage-trust {
	margin-top: 0;
}

.stp-homepage-trust__heading {
	margin: 0;
	padding: 0 0 10px;
	color: var(--stp-trust-text);
	font-size: 16px;
	font-weight: 800;
	line-height: 1.25;
}

.stp-homepage-trust__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 72px;
	overflow: visible;
}

.stp-homepage-trust__item {
	position: relative;
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	gap: clamp(8px, 1.1vw, 14px);
	min-width: 0;
	padding: 13px clamp(8px, 1.5vw, 18px);
	color: var(--stp-trust-text);
}

.stp-homepage-trust__item:not(:last-child)::after {
	position: absolute;
	top: 14px;
	right: 0;
	bottom: 14px;
	width: 1px;
	background: color-mix(in srgb, var(--stp-trust-divider) 65%, transparent);
	content: "";
}

.stp-homepage-trust__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(30px, 4.1vw, 44px);
	height: clamp(30px, 4.1vw, 44px);
	color: var(--stp-trust-icon);
}

.stp-homepage-trust__icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.stp-homepage-trust__copy {
	display: grid;
	gap: 2px;
	min-width: 0;
	text-align: left;
	text-transform: uppercase;
}

.stp-homepage-trust__copy strong,
.stp-homepage-trust__copy em {
	display: block;
	overflow: hidden;
	color: var(--stp-trust-text);
	font-style: normal;
	letter-spacing: 0.04em;
	line-height: 1.15;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.stp-homepage-trust__copy strong {
	font-size: clamp(10px, 1vw, 13px);
	font-weight: 900;
}

.stp-homepage-trust__copy em {
	font-size: clamp(10px, 0.95vw, 12px);
	font-weight: 800;
}

@media (max-width: 1024px) {
	.stp-homepage-trust {
		width: calc(100% - 24px);
		overflow: hidden;
	}

	.stp-homepage-trust__inner {
		align-items: stretch;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: smooth;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.stp-homepage-trust__inner::-webkit-scrollbar {
		display: none;
	}

	.stp-homepage-trust__item {
		flex: 0 0 25%;
		min-width: 25%;
		scroll-snap-align: start;
	}
}

@media (max-width: 640px) {
	.stp-homepage-trust {
		width: 100%;
		padding-inline: 0;
	}

	.stp-homepage-trust__item {
		flex-basis: 33.333333%;
		min-width: 33.333333%;
		flex-direction: column;
		gap: 6px;
		padding: 11px 8px;
		text-align: center;
	}

	.stp-homepage-trust__copy {
		text-align: center;
	}

	.stp-homepage-trust__copy strong,
	.stp-homepage-trust__copy em {
		font-size: 10px;
	}
}
