/* Testimonials — ported from partners/components/Testimonials.vue (scoped block
   lines 568-742 + module block lines 744-760) and the structural slider CSS the
   vanilla engine needs, from partners/components/Slider.vue lines 671-841. */

.testimonials__card {
	background: #48517829;
	color: #dce1e5;
	border-radius: 24px;
	padding: 32px;
	height: auto;
	display: flex;
	flex-direction: column;
	font-weight: 500;
	font-size: 16px;
	line-height: 140%;
	letter-spacing: 0;
}

.testimonials__card:not(:last-child) {
	margin-bottom: 20px;
}

.testimonials__image-wrapper {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 70px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}

.testimonials__image {
	width: auto;
	max-width: min(200px, 100%);
	max-height: 50px;
	background-size: cover;
}

.testimonials__image--small {
	height: 50px;
}

.testimonials__image--initial {
	height: auto;
	width: auto;
}

.testimonials__quote {
	position: absolute;
	top: 25px;
	right: 35px;
}

.testimonials__link {
	color: #ffffff;
	margin-bottom: 8px;
	font-weight: 600;
	font-size: 20px;
	line-height: 140%;
	letter-spacing: 0;
	font-variant-numeric: lining-nums tabular-nums;
	position: relative;
	display: inline-block;
	width: fit-content;
}

.testimonials__link::after {
	content: "";
	position: absolute;
	bottom: 0;
	right: 0;
	display: block;
	width: 100%;
	height: 1px;
	background-color: #ffffff;
	transform: scale(0, 1);
	transition: transform 0.2s ease-out;
}

.testimonials__link:hover::after {
	transform: scale(1, 1);
}

.slider-wrap {
	width: 100%;
}

.slider-base {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.slider-track {
	display: flex;
	position: relative;
	left: 0;
}

.slider-source-slide {
	flex-basis: 0;
	min-width: var(--partners-slide-width, 0);
	position: relative;
	touch-action: pan-y;
}

/* display/justify-content are scoped to the rendered slides: the source pool
   carries the same class plus the `hidden` attribute, and an unscoped
   `display` would defeat it. */
.slider-track .slider-source-slide {
	display: flex;
	justify-content: center;
}

.slider-dot-wrapper {
	width: 100%;
	max-width: 100%;
	justify-content: center;
	align-items: center;
	gap: 8px;
	display: flex;
	margin-top: 16px;
	position: relative;
	bottom: 0;
	z-index: 2;
}

.slider-arrow {
	background: #ffffff14;
	border-radius: 100%;
	width: 36px;
	height: 36px;
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.slider-arrow:hover {
	background: #ffffff24;
}

.slider-arrow-left {
	margin-right: 8px;
}

.slider-arrow-right {
	margin-left: 8px;
}

.slider-arrow-left + .slider-arrow-right {
	margin-left: 0;
}

@media (max-width: 767px) {
	.testimonials__card {
		border-radius: 12px;
		font-size: 14px;
		line-height: 140%;
		padding: 16px;
	}

	.testimonials__card:not(:last-child) {
		margin-bottom: 10px;
	}

	.testimonials__image-wrapper {
		height: 50px;
	}

	.testimonials__image {
		max-height: 40px;
	}

	.testimonials__quote {
		width: 40px;
		height: 40px;
		top: 16px;
		right: 16px;
	}

	.testimonials__link {
		font-size: 16px;
		line-height: 140%;
	}

	.slider-wrap {
		width: auto;
		padding: 0 16px;
		margin: 0 -16px;
		overflow: hidden;
	}

	.slider-base {
		width: 90%;
		overflow: visible;
	}

	.slider-dot-wrapper {
		margin-top: 8px;
		display: none;
	}

	.slider-arrow {
		width: 28px;
		height: 28px;
	}

	.slider-arrow img {
		width: 20px;
		height: 20px;
	}
}
