/**
 * Testimonials Slider styles.
 */

.elementor-widget-testimonials-slider {
	width: 100%;
	max-width: 100%;
}

.tse-testimonials-slider {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.tse-testimonials-slider .swiper-wrapper {
	align-items: stretch;
	box-sizing: border-box;
	/* Prevent Swiper autoHeight / editor bugs from collapsing content to 0. */
	height: auto !important;
	min-height: 1em;
}

.tse-testimonials-slider .swiper-slide {
	box-sizing: border-box;
	height: auto !important;
	flex-shrink: 0;
	opacity: 1;
	visibility: visible;
}

.tse-testimonial__item {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	height: auto !important;
	max-width: 100%;
	width: 100%;
	min-width: 0;
	padding: 0;
}

.tse-testimonial__quote {
	line-height: 1;
	display: inline-flex;
	align-items: center;
	color: #c9a227;
	max-width: 100%;
	flex-shrink: 0;
	margin-bottom: 16px;
}

.tse-testimonial__quote i,
.tse-testimonial__quote svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.tse-testimonial__stars {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	line-height: 1;
	flex-shrink: 0;
	margin-bottom: 20px;
}

.tse-star {
	display: inline-flex;
	line-height: 1;
	flex-shrink: 0;
}

.tse-star svg {
	display: block;
	width: 1em;
	height: 1em;
}

.tse-star--active {
	color: #c9a227;
}

.tse-star--inactive {
	color: #4a5568;
}

.tse-testimonial__body {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.tse-testimonial__content {
	font-size: 16px;
	line-height: 1.7;
	color: #c5c9d1;
	margin: 0;
	max-width: 100%;
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
}

.tse-testimonial__content p {
	margin: 0 0 0.75em;
}

.tse-testimonial__content p:last-child {
	margin-bottom: 0;
}

.tse-testimonial__content img,
.tse-testimonial__content video,
.tse-testimonial__content iframe {
	max-width: 100%;
	height: auto;
}

.tse-testimonial__author {
	display: block;
	width: 100%;
	max-width: 100%;
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.5;
	color: #c5c9d1;
	text-align: right;
	overflow-wrap: break-word;
	word-break: break-word;
}

/* Pagination stays in document flow (visible in Firefox + editor). */
.tse-testimonials-slider .swiper-pagination,
.tse-testimonials-slider.swiper-horizontal > .swiper-pagination-bullets,
.tse-testimonials-slider > .swiper-pagination-bullets {
	position: relative !important;
	bottom: auto !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	width: 100% !important;
	display: flex !important;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 28px;
    margin-bottom: 24px;
	padding: 4px 0 2px;
	transform: none !important;
	z-index: 5;
	visibility: visible !important;
	opacity: 1 !important;
	height: auto !important;
	min-height: 12px;
}

.tse-testimonials-slider .swiper-pagination-bullet {
	display: inline-block !important;
	width: 10px !important;
	height: 10px !important;
	margin: 0 !important;
	opacity: 0.4 !important;
	background: #c9a227 !important;
	border-radius: 50%;
	transition: opacity 0.25s ease, transform 0.25s ease;
	cursor: pointer;
	flex-shrink: 0;
	visibility: visible !important;
}

.tse-testimonials-slider .swiper-pagination-bullet-active {
	opacity: 1 !important;
	transform: scale(1.15);
}

.tse-swiper-button {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #c9a227;
	line-height: 1;
	transition: opacity 0.2s ease;
	min-width: 44px;
	min-height: 44px;
}

.tse-swiper-button:hover,
.tse-swiper-button:focus {
	opacity: 0.75;
	outline: none;
}

.tse-swiper-button-prev {
	left: 0;
}

.tse-swiper-button-next {
	right: 0;
}

.tse-swiper-button svg {
	display: block;
	width: 1em;
	height: 1em;
}

.tse-testimonials-slider.tse-has-arrows .swiper-wrapper {
	padding-left: 2.5em;
	padding-right: 2.5em;
}

/* ---- Tablet ---- */
@media (max-width: 1024px) {
	.tse-testimonials-slider.tse-has-arrows .swiper-wrapper {
		padding-left: 2em;
		padding-right: 2em;
	}

	.tse-testimonial__content,
	.tse-testimonial__author {
		font-size: 15px;
		line-height: 1.65;
	}
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
	.tse-testimonial__quote svg {
		max-width: 40px;
		max-height: 40px;
	}

	.tse-testimonial__content,
	.tse-testimonial__author {
		font-size: 15px;
		line-height: 1.65;
	}

	.tse-testimonials-slider .swiper-pagination,
	.tse-testimonials-slider.swiper-horizontal > .swiper-pagination-bullets,
	.tse-testimonials-slider > .swiper-pagination-bullets {
		gap: 10px;
		margin-top: 24px;
	}

	.tse-testimonials-slider.tse-has-arrows .swiper-wrapper {
		padding-left: 2.25em;
		padding-right: 2.25em;
	}

	.tse-hide-arrows-mobile-yes .tse-swiper-button {
		display: none;
	}

	.tse-hide-arrows-mobile-yes .tse-testimonials-slider.tse-has-arrows .swiper-wrapper {
		padding-left: 0;
		padding-right: 0;
	}
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
	.tse-testimonial__quote svg {
		max-width: 34px;
		max-height: 34px;
	}

	.tse-testimonial__content,
	.tse-testimonial__author {
		font-size: 14px;
		line-height: 1.6;
	}

	.tse-testimonial__author {
		margin-top: 12px;
	}

	.tse-testimonials-slider .swiper-pagination,
	.tse-testimonials-slider.swiper-horizontal > .swiper-pagination-bullets,
	.tse-testimonials-slider > .swiper-pagination-bullets {
		margin-top: 20px;
	}

	.tse-testimonials-slider.tse-has-arrows .swiper-wrapper {
		padding-left: 0;
		padding-right: 0;
	}
}
