/**
 * DONAT Elementor Suite – Testimonials.
 *
 * @package DonatElementorSuite
 * @version 1.4.6
 */

.des-testimonials {
	--des-t-cols: 3;
	--des-t-cols-tablet: 2;
	--des-t-cols-mobile: 1;
	--des-t-gap: 32px;
	--des-t-img-size: 260px;
	--des-t-card-bg: transparent;
	--des-t-text: currentColor;
	--des-t-accent: currentColor;
}

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

.des-testimonials-grid {
	display: grid;
	grid-template-columns: repeat(var(--des-t-cols), minmax(0, 1fr));
	gap: var(--des-t-gap);
	align-items: start;
}

.des-testimonial-card {
	position: relative;
	min-width: 0;
	background: var(--des-t-card-bg);
	color: var(--des-t-text);
	text-align: center;
}

.des-testimonials-align-left .des-testimonial-card {
	text-align: left;
}

.des-testimonials-align-right .des-testimonial-card {
	text-align: right;
}

.des-testimonial-image-wrap {
	display: inline-block;
	width: var(--des-t-img-size);
	height: var(--des-t-img-size);
	max-width: 100%;
	margin: 0 0 24px;
	overflow: hidden;
	background: transparent;
	vertical-align: top;
}

.des-testimonials-image-circle .des-testimonial-image-wrap,
.des-testimonials-image-circle .des-testimonial-image {
	border-radius: 999px;
}

.des-testimonials-image-rounded .des-testimonial-image-wrap,
.des-testimonials-image-rounded .des-testimonial-image {
	border-radius: 28px;
}

.des-testimonials-image-square .des-testimonial-image-wrap,
.des-testimonials-image-square .des-testimonial-image {
	border-radius: 0;
}

.des-testimonial-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.des-testimonial-name {
	margin: 0 0 .2em;
	font-size: clamp(1.4rem, 2vw, 2.2rem);
	line-height: 1.1;
	color: inherit;
}

.des-testimonial-card > p {
	margin: 0 0 1.15em;
	text-align: inherit;
}

.des-testimonial-name,
.des-testimonial-subtitle,
.des-testimonial-quote,
.des-testimonial-more,
.des-testimonial-link,
.des-testimonial-trigger,
.des-testimonial-trigger-text {
	max-width: 100%;
	overflow-wrap: break-word;
	word-break: normal;
}

.des-testimonial-subtitle {
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
}

.des-testimonial-quote {
	line-height: 1.45;
	color: inherit;
}

.des-testimonial-more {
	line-height: 1.35;
	color: var(--des-t-accent);
}

.des-testimonial-link,
.des-testimonial-trigger {
	color: inherit;
	text-decoration: none;
	text-align: inherit;
}

.des-testimonial-link:hover,
.des-testimonial-link:focus,
.des-testimonial-trigger:hover,
.des-testimonial-trigger:focus {
	color: inherit;
	text-decoration: underline;
}

.des-testimonial-trigger {
	display: inline-flex;
	align-items: baseline;
	gap: .35em;
	max-width: 100%;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	box-shadow: none;
	font: inherit;
	line-height: inherit;
	cursor: pointer;
	text-align: inherit;
	color: inherit;
	white-space: normal;
	appearance: none;
	width: auto;
	margin: 0;
}

.des-testimonials-align-left .des-testimonial-trigger {
	justify-content: left;
	text-align: left;
	margin-left: 0;
	margin-right: auto;
}

.des-testimonials-align-center .des-testimonial-trigger {
	justify-content: center;
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.des-testimonials-align-right .des-testimonial-trigger {
	justify-content: right;
	text-align: right;
	margin-left: auto;
	margin-right: 0;
}

.des-testimonials-align-left .des-testimonial-trigger-text {
	text-align: left;
}

.des-testimonials-align-center .des-testimonial-trigger-text {
	text-align: center;
}

.des-testimonials-align-right .des-testimonial-trigger-text {
	text-align: right;
}

.des-testimonial-trigger-text {
	display: block;
	min-width: 0;
	max-width: 100%;
	text-align: inherit;
}

.des-testimonial-trigger:hover,
.des-testimonial-trigger:focus,
.des-testimonial-trigger:active {
	background: transparent;
	box-shadow: none;
	outline: none;
}

.des-testimonial-icon-before {
	display: inline-flex;
	margin-right: .35em;
}

.des-testimonial-inline-icon,
.des-testimonial-close-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: inherit;
	line-height: 1;
}

.des-testimonial-inline-icon svg,
.des-testimonial-close-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.des-testimonial-modal[hidden] {
	display: none;
}

.des-testimonial-modal {
	position: fixed;
	z-index: 99999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.des-testimonial-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .62);
}

.des-testimonial-modal__panel {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: min(760px, calc(100vh - 48px));
	overflow: auto;
	padding: 34px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
	color: #172033;
	text-align: left;
}

.des-testimonial-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 42, .06);
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.des-testimonial-modal__close:hover,
.des-testimonial-modal__close:focus {
	background: rgba(15, 23, 42, .12);
	outline: none;
}

.des-testimonial-modal__title {
	margin: 0 46px 18px 0;
	font-size: clamp(1.4rem, 2vw, 2rem);
	line-height: 1.18;
	color: inherit;
}

.des-testimonial-modal__body {
	font-size: 1rem;
	line-height: 1.65;
	color: inherit;
}

.des-testimonial-modal__body p {
	font: inherit;
	line-height: inherit;
	color: inherit;
}

.des-testimonial-modal__body > :first-child {
	margin-top: 0;
}

.des-testimonial-modal__body > :last-child {
	margin-bottom: 0;
}


/*
 * Alignment hardening for interactive subtitle/link rows.
 *
 * Elementor may output responsive text-align rules while the base widget class
 * still reflects the desktop alignment. Modal triggers therefore must never
 * center themselves via auto margins; the surrounding text alignment decides
 * where the inline trigger sits.
 */
.des-testimonial-card > p,
.des-testimonial-subtitle,
.des-testimonial-quote,
.des-testimonial-more {
	text-align: inherit;
}

.des-testimonial-trigger,
.des-testimonials-align-left .des-testimonial-trigger,
.des-testimonials-align-center .des-testimonial-trigger,
.des-testimonials-align-right .des-testimonial-trigger {
	margin-left: 0 !important;
	margin-right: 0 !important;
	vertical-align: top;
}

.des-testimonial-subtitle .des-testimonial-trigger,
.des-testimonial-quote .des-testimonial-trigger,
.des-testimonial-more .des-testimonial-trigger {
	text-align: inherit !important;
}

.des-testimonial-subtitle .des-testimonial-trigger-text,
.des-testimonial-quote .des-testimonial-trigger-text,
.des-testimonial-more .des-testimonial-trigger-text {
	text-align: inherit !important;
}

body.des-testimonial-modal-open {
	overflow: hidden;
}

@media (max-width: 1024px) {
	.des-testimonials-grid {
		grid-template-columns: repeat(var(--des-t-cols-tablet), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.des-testimonials-grid {
		grid-template-columns: repeat(var(--des-t-cols-mobile), minmax(0, 1fr));
	}

	.des-testimonial-card,
	.des-testimonial-card > p,
	.des-testimonial-link,
	.des-testimonial-trigger,
	.des-testimonial-trigger-text {
		max-width: 100%;
		text-align: inherit;
	}

	.des-testimonial-subtitle,
	.des-testimonial-subtitle .des-testimonial-trigger,
	.des-testimonial-subtitle .des-testimonial-trigger-text {
		text-align: inherit !important;
	}

	.des-testimonials-align-left .des-testimonial-subtitle .des-testimonial-trigger {
		justify-content: left;
	}

	.des-testimonials-align-center .des-testimonial-subtitle .des-testimonial-trigger {
		justify-content: center;
	}

	.des-testimonials-align-right .des-testimonial-subtitle .des-testimonial-trigger {
		justify-content: right;
	}

	.des-testimonial-modal {
		padding: 16px;
	}

	.des-testimonial-modal__panel {
		max-height: calc(100vh - 32px);
		padding: 28px 22px;
		border-radius: 18px;
	}
}
