/* Testimonials by Benat. Override the custom properties from your theme to restyle. */

.tbb-testimonials {
	--tbb-accent: #2f5bea;
	--tbb-text: #1d2327;
	--tbb-muted: #646970;
	--tbb-card-bg: #ffffff;
	--tbb-card-border: #e2e4e7;
	--tbb-radius: 12px;
	--tbb-gap: 24px;
	--tbb-image-size: 56px;

	position: relative;
	max-width: 100%;
	margin: 2em auto;
	padding: 0 56px;
	box-sizing: border-box;
	color: var(--tbb-text);
}

/* Before Slick starts, show only the first testimonial so the page doesn't jump. */
.tbb-testimonials:not(.is-ready) .tbb-testimonial + .tbb-testimonial {
	display: none;
}

.tbb-testimonials .slick-list {
	margin: 0 calc(var(--tbb-gap) / -2);
}

.tbb-testimonial {
	padding: 0 calc(var(--tbb-gap) / 2);
	box-sizing: border-box;
}

.tbb-testimonials .slick-track {
	display: flex;
}

.tbb-testimonials .slick-slide {
	height: auto;
}

.tbb-testimonials .slick-slide > div,
.tbb-testimonials .slick-slide .tbb-testimonial,
.tbb-testimonial__card {
	height: 100%;
}

.tbb-testimonial__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.25em;
	margin: 0;
	padding: 2em;
	background: var(--tbb-card-bg);
	border: 1px solid var(--tbb-card-border);
	border-radius: var(--tbb-radius);
	box-sizing: border-box;
}

.tbb-testimonial__quote {
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1.125em;
	line-height: 1.6;
	font-style: normal;
}

.tbb-testimonial__quote::before {
	content: "\201C";
	display: block;
	height: 0.5em;
	margin-bottom: 0.25em;
	font-family: Georgia, serif;
	font-size: 3em;
	line-height: 1;
	color: var(--tbb-accent);
}

.tbb-testimonial__quote p {
	margin: 0 0 0.75em;
}

.tbb-testimonial__quote p:last-child {
	margin-bottom: 0;
}

.tbb-testimonial__author {
	display: flex;
	align-items: center;
	gap: 0.875em;
}

.tbb-testimonial__image {
	flex: none;
	width: var(--tbb-image-size);
	height: var(--tbb-image-size);
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.tbb-testimonial__cite {
	display: flex;
	flex-direction: column;
	gap: 0.125em;
	min-width: 0;
	font-style: normal;
}

.tbb-testimonial__name {
	font-weight: 600;
}

.tbb-testimonial__meta {
	font-size: 0.875em;
	color: var(--tbb-muted);
}

/* Arrows */
.tbb-arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	background: var(--tbb-card-bg);
	border: 1px solid var(--tbb-card-border);
	border-radius: 50%;
	color: var(--tbb-text);
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.tbb-arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tbb-arrow:hover,
.tbb-arrow:focus-visible {
	border-color: var(--tbb-accent);
	color: var(--tbb-accent);
}

.tbb-arrow:focus-visible {
	outline: 2px solid var(--tbb-accent);
	outline-offset: 2px;
}

.tbb-arrow--prev {
	left: 0;
}

.tbb-arrow--next {
	right: 0;
}

/* Dots */
.tbb-testimonials .slick-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 1.5em 0 0;
	padding: 0;
	list-style: none;
}

.tbb-testimonials .slick-dots li {
	margin: 0;
}

.tbb-testimonials .slick-dots button {
	display: block;
	width: 10px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tbb-card-border);
	font-size: 0;
	line-height: 0;
	color: transparent;
	cursor: pointer;
}

.tbb-testimonials .slick-dots .slick-active button {
	background: var(--tbb-accent);
}

.tbb-testimonials .slick-dots button:focus-visible {
	outline: 2px solid var(--tbb-accent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.tbb-testimonials {
		padding: 0;
	}

	.tbb-arrow {
		display: none !important;
	}

	.tbb-testimonial__card {
		padding: 1.5em;
	}
}
