/* Webbler Testimonial Slider */

.wts {
	--wts-per-view: 3;
	--wts-peek: 0px;
	--wts-gap: 30px;
	--wts-speed: 500ms;
	--wts-star-color: #ffc600;
	--wts-star-size: 20px;
	--wts-logo-height: 40px;
	--wts-logo-max-width: 160px;
	--wts-photo-size: 64px;
	--wts-photo-radius: 12px;
	--wts-dot-size: var(--wel-dot-size, 22px);
	--wts-dot-gap: var(--wel-dot-gap, 18px);
	--wts-dot-border: var(--wel-dot-border, 2px);
	--wts-dot-color: var(--wel-dot-color, #ffc600);
	--wts-dot-active-color: var(--wel-dot-active, #ffc600);
	--wts-arrow-size: 48px;
	--wts-arrow-offset: -24px;
	--wts-arrow-color: #101921;
	--wts-arrow-bg: #ffc600;

	position: relative;
	display: flow-root;
	width: 100%;
}

.wts *,
.wts *::before,
.wts *::after {
	box-sizing: border-box;
}

/* Viewport + track */

.wts__viewport {
	overflow: hidden;
	width: 100%;
	/* room for card shadows so they are not clipped */
	padding: 30px 0;
	margin: -30px 0;
	/* the padded area must not block clicks on content above/below */
	pointer-events: none;
}

.wts__track {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--wts-gap);
	touch-action: pan-y;
	will-change: transform;
	transition: transform var(--wts-speed) ease;
}

.wts-equal-yes .wts__track {
	align-items: stretch;
}

.wts.is-dragging .wts__track,
.wts.no-anim .wts__track {
	transition: none;
}

.wts.is-dragging .wts__track,
.wts.is-dragging .wts__slide {
	cursor: grabbing;
}

/* Slides: width = (space − peek − gaps) ÷ cards per view */

.wts__slide {
	display: flex;
	flex: 0 0 calc((100% - var(--wts-peek) - (var(--wts-per-view) - 1) * var(--wts-gap)) / var(--wts-per-view));
	min-width: 0;
	pointer-events: auto;
	cursor: grab;
}

.wts__slide:not(.is-visible) {
	cursor: pointer;
}

/* Card */

.wts__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	margin: 0;
	padding: 36px;
	background: #fff;
	border-radius: 24px;
	text-align: left;
}

.wts__icon {
	width: 40px;
	max-width: 100%;
	margin-bottom: 22px;
	color: #101921;
	line-height: 0;
}

.wts__icon svg,
.wts__icon img {
	display: block;
	width: 100%;
	height: auto;
}

.wts__stars {
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}

.wts__star {
	width: var(--wts-star-size);
	height: var(--wts-star-size);
	color: rgba(16, 25, 33, 0.15);
	line-height: 0;
}

.wts__star.is-on {
	color: var(--wts-star-color);
}

.wts__star svg {
	width: 100%;
	height: 100%;
}

.wts__quote {
	margin: 0 0 28px;
	padding: 0;
	border: 0;
	quotes: none;
	color: #101921;
	font-size: 20px;
	line-height: 30px;
	font-style: normal;
	font-weight: 400;
}

.wts__quote::before,
.wts__quote::after {
	content: none;
}

/* Rich text inside the quote */
.wts__quote > * {
	margin: 0;
	font: inherit;
	color: inherit;
}

.wts__quote > * + * {
	margin-top: 0.6em;
}

.wts__quote strong,
.wts__quote b {
	font-weight: 700;
}

.wts__quote a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wts__quote ul,
.wts__quote ol {
	padding-left: 1.2em;
}

/* Footer: logo / photo on top, then name + company */

.wts__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	margin: auto 0 0; /* pushed to the bottom when cards share the same height */
}

.wts__media {
	margin-bottom: 14px;
	line-height: 0;
}

.wts__media img {
	display: block;
	-webkit-user-drag: none;
	pointer-events: none;
	/* hide alt text if the image fails to load */
	color: transparent;
	font-size: 0;
}

.wts__media.is-logo img {
	width: auto;
	height: var(--wts-logo-height);
	max-width: var(--wts-logo-max-width);
	object-fit: contain;
	object-position: left center;
}

.wts-grey-yes .wts__media.is-logo img {
	filter: grayscale(1);
	opacity: 0.75;
}

.wts__media.is-circle img,
.wts__media.is-square img {
	width: var(--wts-photo-size);
	height: var(--wts-photo-size);
	object-fit: cover;
}

.wts__media.is-circle img {
	border-radius: 50%;
}

.wts__media.is-square img {
	border-radius: var(--wts-photo-radius);
}

.wts__name {
	color: #101921;
	font-size: 16px;
	line-height: 22px;
	font-weight: 600;
}

.wts__company {
	color: #55606a;
	font-size: 15px;
	line-height: 21px;
}

.wts__name + .wts__company {
	margin-top: 2px;
}

.wts__company a {
	color: inherit;
	text-decoration: none;
}

.wts__company a:hover {
	text-decoration: underline;
}

/* Dots */

.wts__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--wts-dot-gap);
	margin-top: var(--wel-dot-space, 30px);
}

.wts .wts__dot {
	position: relative;
	width: var(--wts-dot-size);
	height: var(--wts-dot-size);
	min-height: 0;
	padding: 0;
	margin: 0;
	border: var(--wts-dot-border) solid var(--wts-dot-color);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.wts .wts__dot[hidden] {
	display: none;
}

.wts .wts__dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 60%;
	height: 60%;
	border-radius: 50%;
	background: var(--wts-dot-active-color);
	transform: translate(-50%, -50%) scale(0);
	transition: transform 0.25s ease;
}

.wts .wts__dot.is-active::after {
	transform: translate(-50%, -50%) scale(1);
}

.wts .wts__dot:hover {
	transform: scale(1.1);
}

.wts .wts__dot:focus-visible {
	outline: 2px solid var(--wts-dot-color);
	outline-offset: 4px;
}

.wts.is-static .wts__dots,
.wts.is-static .wts__arrow {
	display: none;
}

/* Arrows */

.wts .wts__arrow {
	position: absolute;
	top: var(--wts-track-center, 40%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--wts-arrow-size);
	height: var(--wts-arrow-size);
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--wts-arrow-bg);
	color: var(--wts-arrow-color);
	box-shadow: none;
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.wts .wts__arrow svg {
	width: 45%;
	height: 45%;
}

.wts .wts__arrow--prev {
	left: var(--wts-arrow-offset);
}

.wts .wts__arrow--next {
	right: var(--wts-arrow-offset);
}

.wts .wts__arrow:hover {
	transform: translateY(-50%) scale(1.06);
}

.wts .wts__arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
	.wts__track,
	.wts .wts__dot::after {
		transition: none;
	}
}
