/* Customer grid and region carousel. All rules are component-scoped. */
.customer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	padding: 20px 0;
}

.customer-card {
	border: 1px solid #eee;
	border-radius: 8px;
	padding: 15px;
	text-align: center;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .05);
}

.customer-logo-wrapper {
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 15px;
	overflow: hidden;
}

.customer-logo {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.customer-details h3 {
	font-size: 1.1rem;
	margin: 10px 0 5px;
	color: #333;
}

.customer-details .address {
	font-size: .85rem;
	color: #777;
}

.customer-auto-scroll {
	--customer-scroll-duration: 35s;
	width: 100%;
	overflow: hidden;
	padding: 18px 0;
	direction: ltr;
}

.customer-auto-scroll__track {
	display: flex;
	width: max-content;
	animation: customer-auto-scroll var(--customer-scroll-duration) linear infinite;
	will-change: transform;
}

.customer-auto-scroll__group {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding-inline: 10px;
}

.customer-auto-scroll .customer-card {
	flex: 0 0 clamp(170px, 19vw, 230px);
	width: clamp(170px, 19vw, 230px);
	min-height: 210px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.customer-auto-scroll .customer-logo-wrapper {
	height: 110px;
	margin-bottom: 10px;
}

.customer-auto-scroll .customer-details h3 {
	min-height: 2.7em;
	margin: 8px 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	line-height: 1.35;
}

.customer-auto-scroll:hover .customer-auto-scroll__track {
	animation-play-state: paused;
}

@keyframes customer-auto-scroll {
	from { transform: translateX(100vw); }
	to { transform: translateX(-100%); }
}

@media (max-width: 560px) {
	.customer-auto-scroll__group {
		gap: 14px;
		padding-inline: 7px;
	}

	.customer-auto-scroll .customer-card {
		flex-basis: 165px;
		width: 165px;
		min-height: 195px;
		padding: 12px;
	}

	.customer-auto-scroll .customer-logo-wrapper { height: 92px; }
	.customer-auto-scroll .customer-details h3 { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
	.customer-auto-scroll {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.customer-auto-scroll__track {
		animation: none;
		transform: none;
	}
}
