.testimonial-rotator {
	--tr-logo-height: 22px;
	--tr-inactive-opacity: 0.35;
	width: 100%;
}

/* ==========================================================
   Card + crossfading slides
   ========================================================== */
.testimonial-rotator__card {
	position: relative;
	background: #eef0fb;
	border-radius: 20px;
	padding: 32px;
	overflow: hidden;
}

.testimonial-rotator__slides {
	position: relative;
	width: 100%;
}

.testimonial-rotator__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.testimonial-rotator__slide.is-active {
	position: relative;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.testimonial-rotator__text {
	margin: 0 0 28px;
	font-size: 20px;
	line-height: 1.5;
	font-weight: 500;
	color: #14142b;
}

.testimonial-rotator__author {
	display: flex;
	align-items: center;
	gap: 12px;
}

.testimonial-rotator__avatar {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
}

.testimonial-rotator__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.testimonial-rotator__author-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.testimonial-rotator__name {
	font-size: 14px;
	font-weight: 700;
	color: #14142b;
}

.testimonial-rotator__role {
	font-size: 13px;
	color: #6b6f8c;
}

/* ==========================================================
   Bottom logo bar with per-logo segmented progress
   ========================================================== */
.testimonial-rotator__nav {
	display: flex;
	align-items: flex-start;
	gap: 32px;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #e4e4f0;
}

.testimonial-rotator__nav-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	opacity: var( --tr-inactive-opacity );
	filter: grayscale( 1 );
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.testimonial-rotator__nav-item.is-active,
.testimonial-rotator__nav-item.is-done {
	opacity: 1;
	filter: grayscale( 0 );
}

.testimonial-rotator__logo {
	height: var( --tr-logo-height );
	display: flex;
	align-items: center;
}

.testimonial-rotator__logo img {
	height: var( --tr-logo-height );
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
}

.testimonial-rotator__progress-track {
	width: 100%;
	height: 3px;
	border-radius: 2px;
	background: #e4e4f0;
	overflow: hidden;
}

.testimonial-rotator__progress-fill {
	width: 0%;
	height: 100%;
	border-radius: 2px;
	background: #4b5ae4;
}

.testimonial-rotator__nav-item.is-done .testimonial-rotator__progress-fill {
	width: 100%;
}

.testimonial-rotator__nav-item.is-active .testimonial-rotator__progress-fill {
	animation-name: ew-testimonial-fill;
	animation-timing-function: linear;
	animation-fill-mode: forwards;
}

@keyframes ew-testimonial-fill {
	from {
		width: 0%;
	}
	to {
		width: 100%;
	}
}

@media ( max-width: 767px ) {
	.testimonial-rotator__card {
		padding: 24px;
	}

	.testimonial-rotator__text {
		font-size: 17px;
	}

	.testimonial-rotator__nav {
		gap: 16px;
	}
}