.nqts-customer-logos {
	--nqts-customer-logo-bg: #ffffff;
	--nqts-customer-logo-border: rgba(39, 180, 193, 0.24);
	--nqts-customer-logo-text: #384551;
	--nqts-customer-logo-accent: #00525E;
	--nqts-customer-logo-gap: clamp(22px, 3.2vw, 44px);
	--nqts-customer-logo-size: clamp(148px, 13vw, 220px);
	--nqts-customer-logo-height: clamp(82px, 8vw, 112px);
	--nqts-customer-logo-speed: 110s;
	box-sizing: border-box;
	width: 100%;
	overflow: hidden;
	padding: clamp(34px, 5vw, 72px) 0;
	background: var(--nqts-customer-logo-bg);
	color: var(--nqts-customer-logo-text);
	font-family: inherit;
}

.nqts-customer-logos *,
.nqts-customer-logos *::before,
.nqts-customer-logos *::after {
	box-sizing: border-box;
}

.nqts-customer-logos__header {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto clamp(22px, 3vw, 34px);
}

.nqts-customer-logos__eyebrow {
	margin: 0 0 8px;
	color: var(--nqts-customer-logo-accent);
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nqts-customer-logos__title {
	max-width: 680px;
	margin: 0;
	color: #1e2c35;
	font-size: clamp(1.55rem, 2.5vw, 2.35rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
}

.nqts-customer-logos__rows {
	display: grid;
	gap: clamp(12px, 1.8vw, 20px);
}

.nqts-customer-logos__row {
	position: relative;
	width: 100%;
	overflow: hidden;
	background:
		linear-gradient(90deg, #ffffff 0, rgba(255, 255, 255, 0) 11%),
		linear-gradient(270deg, #ffffff 0, rgba(255, 255, 255, 0) 11%);
}

.nqts-customer-logos__row::before,
.nqts-customer-logos__row::after {
	content: "";
	position: absolute;
	top: 0;
	z-index: 2;
	width: clamp(42px, 8vw, 130px);
	height: 100%;
	pointer-events: none;
}

.nqts-customer-logos__row::before {
	left: 0;
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.nqts-customer-logos__row::after {
	right: 0;
	background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.nqts-customer-logos__track {
	display: flex;
	width: max-content;
	animation: nqtsCustomerLogosLeft var(--nqts-customer-logo-speed) linear infinite;
	will-change: transform;
}

.nqts-customer-logos__row--right .nqts-customer-logos__track {
	animation-name: nqtsCustomerLogosRight;
}

.nqts-customer-logos__row:hover .nqts-customer-logos__track {
	animation-play-state: paused;
}

.nqts-customer-logos__row--interactive {
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
}

.nqts-customer-logos__row--interactive.is-dragging {
	cursor: grabbing;
}

.nqts-customer-logos__row--interactive.is-dragging .nqts-customer-logos__image {
	pointer-events: none;
}

.nqts-customer-logos__set {
	display: flex;
	align-items: center;
	gap: var(--nqts-customer-logo-gap);
	min-width: max-content;
	padding: 12px var(--nqts-customer-logo-gap) 12px 0;
}

.nqts-customer-logos__item {
	--nqts-customer-logo-scale: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--nqts-customer-logo-size);
	width: var(--nqts-customer-logo-size);
	height: var(--nqts-customer-logo-height);
	padding: clamp(12px, 1.6vw, 20px);
	border: 0;
	background: transparent;
}

.nqts-customer-logos__image {
	display: block;
	width: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: grayscale(100%) saturate(0.75);
	opacity: 0.68;
	transform: scale(var(--nqts-customer-logo-scale));
	transform-origin: center;
	transition: filter 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.nqts-customer-logos__item:hover .nqts-customer-logos__image {
	filter: grayscale(0%) saturate(1);
	opacity: 1;
	transform: scale(var(--nqts-customer-logo-scale)) translateY(-1px);
}

@keyframes nqtsCustomerLogosLeft {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		transform: translate3d(-50%, 0, 0);
	}
}

@keyframes nqtsCustomerLogosRight {
	from {
		transform: translate3d(-50%, 0, 0);
	}

	to {
		transform: translate3d(0, 0, 0);
	}
}

@media (max-width: 767px) {
	.nqts-customer-logos {
		--nqts-customer-logo-gap: 16px;
		--nqts-customer-logo-size: 136px;
		--nqts-customer-logo-height: 74px;
		padding-block: 34px;
	}

	.nqts-customer-logos__header {
		width: min(100% - 28px, 1180px);
	}

	.nqts-customer-logos__row::before,
	.nqts-customer-logos__row::after {
		width: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nqts-customer-logos__track {
		width: 100%;
		animation: none;
	}

	.nqts-customer-logos__set {
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		padding-inline: 16px;
	}

	.nqts-customer-logos__set[aria-hidden="true"] {
		display: none;
	}
}
