.etw-testimonials,
.etw-testimonials * {
	box-sizing: border-box;
}

.etw-testimonials {
	--etw-gap: 30px;
	--etw-rating-color: #fdc402;
	--etw-rating-empty: #e2e2e2;
	--etw-arrow-color: #111;
	--etw-arrow-hover: #777;
	--etw-dot-color: #d4d4d4;
	--etw-dot-active: #111;
	--etw-column-opacity: .45;
	position: relative;
	width: 100%;
	overflow: hidden;
	color: inherit;
}

.etw-inner {
	width: 100%;
	max-width: 1500px;
	margin-inline: auto;
	padding: 44px 15px 0;
}

.etw-heading {
	margin: 0 0 48px;
	text-align: center;
}

.etw-subtitle,
.etw-title,
.etw-item-title,
.etw-content p {
	margin-top: 0;
}

.etw-subtitle {
	margin-bottom: 4px;
	font-size: 12px;
	line-height: 1.5;
	color: #666;
}

.etw-title {
	margin-bottom: 0;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 700;
	color: #111;
}

.etw-viewport {
	position: relative;
	width: calc(100% + var(--etw-gap));
	margin-inline: calc(var(--etw-gap) / -2);
	overflow: hidden;
	touch-action: pan-y;
	outline: none;
}

.etw-track {
	display: flex;
	align-items: stretch;
	gap: 0;
	will-change: transform;
	transform: translate3d(0, 0, 0);
	direction: ltr;
}

.etw-testimonials[dir="rtl"] .etw-track {
	flex-direction: row-reverse;
}

.etw-slide {
	display: flex;
	justify-content: flex-start;
	min-width: 0;
	flex: 0 0 100%;
	padding-inline: calc(var(--etw-gap) / 2);
	padding-bottom: 16px;
	direction: ltr;
}

.etw-testimonials[dir="rtl"] .etw-slide {
	direction: rtl;
}

.etw-slide .etw-card {
	opacity: 1;
	transition: opacity .45s cubic-bezier(.25, .8, .25, 1);
}

.etw-testimonials.has-column-fade .etw-slide.is-faded-column .etw-card {
	opacity: var(--etw-column-opacity);
}

.etw-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 670px;
	min-width: 0;
	padding: 0;
	text-align: start;
}

/* The rating row follows the exact text alignment automatically. */
.etw-rating-row {
	width: 100%;
	margin: 0 0 16px;
	font-size: 0;
	line-height: 0;
	text-align: inherit;
}

.etw-rating {
	--etw-star-size: 16px;
	--etw-star-gap: 2px;
	position: relative;
	display: inline-flex;
	vertical-align: top;
	width: calc((var(--etw-star-size) * 5) + (var(--etw-star-gap) * 4));
	height: var(--etw-star-size);
	margin: 0;
	direction: ltr;
}

.etw-stars {
	position: absolute;
	inset: 0 auto auto 0;
	display: flex;
	gap: var(--etw-star-gap);
	height: var(--etw-star-size);
	overflow: hidden;
	white-space: nowrap;
}

.etw-stars svg {
	display: block;
	width: var(--etw-star-size);
	height: var(--etw-star-size);
	min-width: var(--etw-star-size);
	fill: currentColor;
}

.etw-stars-empty {
	width: 100%;
	color: var(--etw-rating-empty);
}

.etw-stars-filled {
	z-index: 1;
	color: var(--etw-rating-color);
}

.etw-copy {
	margin-bottom: 32px;
}

.etw-item-title {
	margin-bottom: 8px;
	font-size: 16px;
	line-height: 1.55;
	font-weight: 700;
	color: #111;
}

.etw-content,
.etw-content p {
	font-size: 14px;
	line-height: 1.9;
	font-weight: 400;
	color: #333;
}

.etw-content p:last-child {
	margin-bottom: 0;
}

.etw-author {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	column-gap: 20px;
	margin-top: auto;
	min-width: 0;
	white-space: nowrap;
}

.etw-avatar {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	overflow: hidden;
	border-radius: 50%;
}

.etw-avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: inherit;
}

.etw-author-text {
	display: inline-flex;
	align-items: center;
	flex: 0 1 auto;
	flex-wrap: nowrap;
	gap: 4px;
	min-width: 0;
	white-space: nowrap;
	text-align: start;
}

/* Image placement is explicit and remains correct in both RTL and LTR. */
.etw-testimonials.etw-avatar-position-before .etw-avatar {
	order: 0;
}

.etw-testimonials.etw-avatar-position-before .etw-author-text {
	order: 1;
}

.etw-testimonials.etw-avatar-position-after .etw-author-text {
	order: 0;
}

.etw-testimonials.etw-avatar-position-after .etw-avatar {
	order: 1;
}

.etw-name {
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.5;
	font-weight: 700;
	color: #111;
}

.etw-separator {
	margin-inline-start: .15em;
}

.etw-location {
	display: inline-block;
	font-size: 10px;
	line-height: 1.5;
	font-weight: 500;
	text-transform: uppercase;
	color: #d4d4d4;
}

.etw-navigation {
	--etw-nav-gap: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--etw-nav-gap);
	margin-top: 0;
	direction: ltr;
}

.etw-arrow {
	--etw-arrow-size: 35px;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--etw-arrow-size) !important;
	height: var(--etw-arrow-size) !important;
	min-width: var(--etw-arrow-size) !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--etw-arrow-color) !important;
	cursor: pointer;
	transition: color .3s ease, opacity .3s ease, transform .3s ease;
	appearance: none;
	-webkit-appearance: none;
}

.etw-arrow:hover,
.etw-arrow:focus,
.etw-arrow:active {
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--etw-arrow-hover) !important;
	outline: none;
}

.etw-arrow:hover {
	transform: translateY(-1px);
}

.etw-arrow:focus-visible,
.etw-dot:focus-visible {
	outline: 2px solid currentColor !important;
	outline-offset: 3px;
}

.etw-arrow:disabled {
	opacity: .25;
	pointer-events: none;
}

.etw-arrow svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.etw-dots {
	--etw-dot-size: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.etw-dot {
	display: block !important;
	width: var(--etw-dot-size) !important;
	height: var(--etw-dot-size) !important;
	min-width: var(--etw-dot-size) !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--etw-dot-color) !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
	transition: transform .25s ease, background-color .25s ease, opacity .25s ease;
	appearance: none;
	-webkit-appearance: none;
}

.etw-dot:hover,
.etw-dot:focus,
.etw-dot:active {
	border: 0 !important;
	box-shadow: none !important;
}

.etw-dot.is-active {
	background: var(--etw-dot-active) !important;
	transform: scale(1.15);
}

.etw-testimonials.is-static .etw-navigation {
	display: none;
}

.etw-testimonials.is-dragging,
.etw-testimonials.is-dragging * {
	cursor: grabbing !important;
	user-select: none !important;
}

@media (max-width: 767px) {
	.etw-inner {
		padding-inline: 15px;
	}

	.etw-author {
		max-width: 100%;
	}

	.etw-author-text {
		max-width: calc(100% - 70px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.etw-track,
	.etw-arrow,
	.etw-dot,
	.etw-slide .etw-card {
		transition-duration: .01ms !important;
	}
}
