/**
 * TOS Review Carousel.
 *
 * data-mode (set per device by JS): drift | slider | stack. Before JS runs
 * (or without it) every mode is a plain scroll-snap row, so content is
 * always reachable.
 */
.toaew-trc {
	--toaew-trc-card-w: 380px;
	--toaew-trc-gap: 30px;
	--toaew-trc-spv: 3;
	--toaew-trc-peek: 0px;
	--toaew-trc-fade: 6%;
	--toaew-trc-fade-l: var(--toaew-trc-fade);
	--toaew-trc-fade-r: var(--toaew-trc-fade);
	--toaew-trc-accent: #2A4C6F;
	--toaew-trc-accent-w: 2px;
	--toaew-trc-divider: #DAD9D4;
	--toaew-trc-avatar: 44px;
	--toaew-trc-star: #E8A33D;
	--toaew-trc-star-empty: #D1D0CB;
	--toaew-trc-star-size: 16px;
	--toaew-trc-arrow: 46px;
	--toaew-trc-arrow-color: #141414;
	--toaew-trc-arrow-bg: #FFFFFF;
	--toaew-trc-arrow-border: #DAD9D4;
	--toaew-trc-arrow-color-hover: #FFFFFF;
	--toaew-trc-arrow-bg-hover: #2A4C6F;
	--toaew-trc-arrow-border-hover: #2A4C6F;
	--toaew-trc-arrow-radius: 50%;
	--toaew-trc-arrow-offset: 12px;
	--toaew-trc-nav-gap: 22px;
	--toaew-trc-dot: #C9C8C3;
	--toaew-trc-dot-active: #2A4C6F;
	--toaew-trc-dot-size: 8px;
	--toaew-trc-pause: #4B4B4B;
	--toaew-trc-pause-border: #DAD9D4;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

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

.toaew-trc__stage {
	position: relative;
	min-width: 0;
}

.toaew-trc__viewport {
	position: relative;
	overflow: hidden;
	outline: none;
}

.toaew-trc__viewport:focus-visible {
	outline: 2px solid var(--toaew-trc-accent);
	outline-offset: 4px;
}

.toaew-trc__track {
	display: flex;
	gap: var(--toaew-trc-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: flex-start;
}

.toaew-trc.is-equal .toaew-trc__track {
	align-items: stretch;
}

.toaew-trc__slide {
	flex: none;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toaew-trc__slide::before,
.toaew-trc__slide::marker {
	content: none;
}

/* ---- Card ------------------------------------------------------------- */
.toaew-trc__card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: auto;
	margin: 0;
	padding: 34px 28px 28px;
	background: #E6E5E1;
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.toaew-trc.is-equal .toaew-trc__card {
	height: 100%;
}

.toaew-trc__card::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: var(--toaew-trc-accent-w);
	background: var(--toaew-trc-accent);
	border-radius: inherit;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	pointer-events: none;
}

.toaew-trc--hover-lift .toaew-trc__card:hover {
	transform: translateY(-6px);
}

.toaew-trc--hover-shadow .toaew-trc__card:hover {
	box-shadow: 0 18px 40px -18px rgba(20, 20, 20, 0.35);
}

.toaew-trc__mark {
	display: block;
	height: 30px;
	margin: 0 0 14px;
	overflow: visible;
	color: #2A4C6F;
	font-family: "Bebas Neue", sans-serif;
	font-size: 70px;
	line-height: 0.9;
}

.toaew-trc__stars {
	display: inline-flex;
	align-self: var(--toaew-trc-justify, flex-start);
	gap: 3px;
	margin: 0 0 14px;
}

.toaew-trc__star {
	display: block;
	width: var(--toaew-trc-star-size);
	height: var(--toaew-trc-star-size);
	background: linear-gradient(90deg, var(--toaew-trc-star) var(--toaew-trc-fill, 100%), var(--toaew-trc-star-empty) var(--toaew-trc-fill, 100%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3 6.1 20.6l1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

[dir="rtl"] .toaew-trc__star {
	background: linear-gradient(270deg, var(--toaew-trc-star) var(--toaew-trc-fill, 100%), var(--toaew-trc-star-empty) var(--toaew-trc-fill, 100%));
}

.toaew-trc__quote {
	flex: 1 1 auto;
	margin: 0 0 26px;
	padding: 0;
	border: 0;
	background: none;
	color: #141414;
	font-family: "Open Sans", sans-serif;
	font-size: 19px;
	font-style: normal;
	font-weight: 300;
	line-height: 1.55;
	quotes: none;
}

.toaew-trc__quote::before,
.toaew-trc__quote::after {
	content: none;
}

.toaew-trc__quote p {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--toaew-trc-lines, none);
	line-clamp: var(--toaew-trc-lines, none);
}

.toaew-trc__footer {
	display: flex;
	align-items: center;
	justify-content: var(--toaew-trc-justify, flex-start);
	gap: 12px;
	margin: 0;
	color: #4B4B4B;
}

.toaew-trc__footer.has-divider {
	padding-top: 16px;
	border-top: 1px solid var(--toaew-trc-divider);
}

.toaew-trc__avatar {
	flex: none;
	display: block;
	width: var(--toaew-trc-avatar);
	height: var(--toaew-trc-avatar);
}

.toaew-trc__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

.toaew-trc__who {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: var(--toaew-trc-who-justify, space-between);
	gap: 4px 12px;
	min-width: 0;
}

.toaew-trc--footer-column .toaew-trc__who {
	flex-direction: column;
	align-items: var(--toaew-trc-justify, flex-start);
	justify-content: flex-start;
	gap: 2px;
}

.toaew-trc__name {
	color: #141414;
	font-family: "Bebas Neue", sans-serif;
	font-size: 20px;
	font-weight: 400;
	letter-spacing: 0.04em;
	line-height: 1.1;
	text-transform: uppercase;
}

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

.toaew-trc__name a:hover,
.toaew-trc__name a:focus-visible {
	text-decoration: underline;
}

.toaew-trc__meta {
	color: #4B4B4B;
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

/* ---- Base / no-JS / slider: native scroll-snap row --------------------- */
.toaew-trc:not(.is-ready) .toaew-trc__viewport,
.toaew-trc[data-mode="slider"] .toaew-trc__viewport {
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.toaew-trc:not(.is-ready) .toaew-trc__viewport::-webkit-scrollbar,
.toaew-trc[data-mode="slider"] .toaew-trc__viewport::-webkit-scrollbar {
	display: none;
}

.toaew-trc:not(.is-ready) .toaew-trc__slide,
.toaew-trc[data-mode="slider"] .toaew-trc__slide {
	width: calc((100% - var(--toaew-trc-peek) - var(--toaew-trc-gap) * (var(--toaew-trc-spv) - 1)) / var(--toaew-trc-spv));
	scroll-snap-align: start;
}

.toaew-trc[data-mode="slider"] .toaew-trc__track {
	width: 100%;
}

.toaew-trc[data-mode="slider"].is-dragging .toaew-trc__viewport {
	scroll-snap-type: none;
	cursor: grabbing;
	user-select: none;
}

.toaew-trc[data-mode="slider"].can-drag .toaew-trc__viewport {
	cursor: grab;
}

.toaew-trc[data-mode="slider"].is-dragging .toaew-trc__slide {
	pointer-events: none;
}

/* ---- Continuous drift -------------------------------------------------- *
 * The track holds the cards plus aria-hidden clones (enough for one copy to
 * exceed the viewport, then doubled) and slides by -50% minus half a gap —
 * exactly one copy — so the loop is seamless. */
.toaew-trc[data-mode="drift"] .toaew-trc__track {
	width: max-content;
	direction: ltr;
}

.toaew-trc[data-mode="drift"] .toaew-trc__slide {
	width: var(--toaew-trc-card-w);
	max-width: 92vw;
}

[dir="rtl"] .toaew-trc[data-mode="drift"] .toaew-trc__slide {
	direction: rtl;
}

.toaew-trc[data-mode="drift"].is-running .toaew-trc__track {
	animation: toaew-trc-drift var(--toaew-trc-duration, 48s) linear infinite;
	will-change: transform;
}

.toaew-trc[data-mode="drift"].is-reverse.is-running .toaew-trc__track {
	animation-direction: reverse;
}

.toaew-trc.pause-hover[data-mode="drift"] .toaew-trc__viewport:hover .toaew-trc__track,
.toaew-trc[data-mode="drift"] .toaew-trc__viewport:focus-within .toaew-trc__track,
.toaew-trc[data-mode="drift"].is-paused .toaew-trc__track {
	animation-play-state: paused;
}

@keyframes toaew-trc-drift {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-50% - var(--toaew-trc-gap) / 2));
	}
}

/* ---- Fade edges (drift + slider) --------------------------------------- */
.toaew-trc.has-fade[data-mode="drift"] .toaew-trc__viewport,
.toaew-trc.has-fade[data-mode="slider"] .toaew-trc__viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--toaew-trc-fade-l), #000 calc(100% - var(--toaew-trc-fade-r)), transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 var(--toaew-trc-fade-l), #000 calc(100% - var(--toaew-trc-fade-r)), transparent 100%);
}

.toaew-trc.is-start {
	--toaew-trc-fade-l: 0px;
}

.toaew-trc.is-end {
	--toaew-trc-fade-r: 0px;
}

/* ---- Stacked list ------------------------------------------------------ */
.toaew-trc[data-mode="stack"] .toaew-trc__viewport {
	overflow: visible;
}

.toaew-trc[data-mode="stack"] .toaew-trc__track {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.toaew-trc[data-mode="stack"] .toaew-trc__slide {
	width: auto;
}

.toaew-trc[data-mode="stack"] .toaew-trc__slide.is-folded {
	display: none;
}

.toaew-trc__more {
	display: none;
	align-self: center;
	margin-top: var(--toaew-trc-nav-gap);
}

.toaew-trc[data-mode="stack"].has-more .toaew-trc__more {
	display: inline-flex;
}

/* ---- Controls row: pause, dots, arrows --------------------------------- */
.toaew-trc__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 14px 18px;
	margin-top: var(--toaew-trc-nav-gap);
}

.toaew-trc__controls.is-empty {
	display: none;
}

.toaew-trc--arrows-bottom-left .toaew-trc__controls {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.toaew-trc--arrows-bottom-center .toaew-trc__controls,
.toaew-trc--arrows-sides .toaew-trc__controls {
	justify-content: center;
}

.toaew-trc--arrows-top-right .toaew-trc__controls {
	order: -1;
	margin-top: 0;
	margin-bottom: var(--toaew-trc-nav-gap);
}

.toaew-trc__dots {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.toaew-trc--arrows-bottom-center .toaew-trc__dots,
.toaew-trc--arrows-sides .toaew-trc__dots {
	flex: 0 1 auto;
	justify-content: center;
}

.toaew-trc--arrows-bottom-left .toaew-trc__dots {
	justify-content: flex-end;
}

.toaew-trc__dot {
	display: block;
	flex: none;
	width: var(--toaew-trc-dot-size);
	height: var(--toaew-trc-dot-size);
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--toaew-trc-dot);
	cursor: pointer;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.toaew-trc__dot.is-active {
	background: var(--toaew-trc-dot-active);
}

.toaew-trc__dots--pill .toaew-trc__dot.is-active {
	width: calc(var(--toaew-trc-dot-size) * 3);
}

.toaew-trc__progress {
	position: relative;
	flex: 1 1 auto;
	width: 200px;
	max-width: 320px;
	height: max(2px, calc(var(--toaew-trc-dot-size) / 3));
	overflow: hidden;
	border-radius: 999px;
	background: var(--toaew-trc-dot);
}

.toaew-trc__progress span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 0;
	border-radius: inherit;
	background: var(--toaew-trc-dot-active);
	transition: width 0.35s ease;
}

.toaew-trc__fraction {
	color: var(--toaew-trc-pause);
	font-family: "Open Sans", sans-serif;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.08em;
}

.toaew-trc__arrows {
	display: flex;
	flex: none;
	gap: 10px;
}

.toaew-trc--arrows-sides .toaew-trc__arrows {
	position: absolute;
	top: 50%;
	right: var(--toaew-trc-arrow-offset);
	left: var(--toaew-trc-arrow-offset);
	z-index: 2;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
}

.toaew-trc--arrows-sides .toaew-trc__arrow {
	pointer-events: auto;
}

/* "Beside the cards": reserve room so arrows never cover text (slider only). */
.toaew-trc--sides-outside[data-mode="slider"] .toaew-trc__stage {
	padding: 0 calc(var(--toaew-trc-arrow) + var(--toaew-trc-arrow-offset) * 2);
}

.toaew-trc--sides-outside[data-mode="slider"] .toaew-trc__stage:has(.toaew-trc__arrows[hidden]) {
	padding: 0;
}

.toaew-trc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--toaew-trc-arrow);
	height: var(--toaew-trc-arrow);
	padding: 0;
	cursor: pointer;
	transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.toaew-trc__arrow svg {
	width: 42%;
	height: 42%;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

[dir="rtl"] .toaew-trc__arrow svg {
	transform: scaleX(-1);
}

.toaew-trc__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.toaew-trc__pause,
.toaew-trc__more {
	align-items: center;
	padding: 10px 16px;
	cursor: pointer;
	line-height: 1;
}

.toaew-trc__pause {
	flex: none;
	margin-right: auto;
}

.toaew-trc--arrows-bottom-left .toaew-trc__pause {
	margin-right: 0;
	margin-left: auto;
}

.toaew-trc--arrows-bottom-center .toaew-trc__pause,
.toaew-trc--arrows-sides .toaew-trc__pause {
	margin: 0;
}

/* "On keyboard focus only": visually hidden until focused. */
.toaew-trc__pause--focus:not(:focus) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* ---- Mode visibility (beats the responsive show/hide controls) --------- */
.toaew-trc:not([data-mode="slider"]) .toaew-trc__arrows,
.toaew-trc:not([data-mode="slider"]) .toaew-trc__dots,
.toaew-trc:not(.has-motion) .toaew-trc__pause,
.toaew-trc__arrows[hidden],
.toaew-trc__dots[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.toaew-trc .toaew-trc__track {
		animation: none !important;
	}

	.toaew-trc__card,
	.toaew-trc__dot,
	.toaew-trc__progress span {
		transition: none;
	}
}

/* Elementor Site Settings isolation (see button-one.css for rationale). */
html body .toaew-trc__arrow {
	min-height: 0;
	padding: 0;
	border: 1px solid var(--toaew-trc-arrow-border);
	border-radius: var(--toaew-trc-arrow-radius);
	background: var(--toaew-trc-arrow-bg);
	box-shadow: none;
	color: var(--toaew-trc-arrow-color);
	text-decoration: none;
	text-shadow: none;
}

html body .toaew-trc__arrow:not(:disabled):hover,
html body .toaew-trc__arrow:not(:disabled):focus-visible {
	border-color: var(--toaew-trc-arrow-border-hover);
	background: var(--toaew-trc-arrow-bg-hover);
	color: var(--toaew-trc-arrow-color-hover);
}

html body .toaew-trc__pause,
html body .toaew-trc__more {
	min-height: 0;
	border: 1px solid var(--toaew-trc-pause-border);
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--toaew-trc-pause);
	text-decoration: none;
	text-shadow: none;
}

html body .toaew-trc__pause:hover,
html body .toaew-trc__pause:focus-visible,
html body .toaew-trc__more:hover,
html body .toaew-trc__more:focus-visible {
	border-color: var(--toaew-trc-accent);
	background: none;
	color: var(--toaew-trc-accent);
}

html body .toaew-trc__dot,
html body .toaew-trc__dot:hover,
html body .toaew-trc__dot:focus {
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	box-shadow: none;
}

html body .toaew-trc__dot {
	background: var(--toaew-trc-dot);
}

html body .toaew-trc__dot.is-active {
	background: var(--toaew-trc-dot-active);
}
