/**
 * Testimonial Fader module — modern layout system (2026)
 */

.jx-tf {
	--jx-tf-bg: #ffffff;
	--jx-tf-radius: 16px;
	--jx-tf-padding: 28px 32px;
	--jx-tf-shadow: 0 2px 12px rgba(15, 15, 20, 0.06);
	--jx-tf-border: 1px solid rgba(24, 25, 237, 0.08);
	--jx-tf-min-height: auto;
	--jx-tf-max-width: 100%;
	--jx-tf-text-color: #374151;
	--jx-tf-text-size: 16px;
	--jx-tf-text-weight: normal;
	--jx-tf-text-align: left;
	--jx-tf-line-height: 1.65;
	--jx-tf-font-style: normal;
	--jx-tf-author-color: #1819ED;
	--jx-tf-author-size: 15px;
	--jx-tf-author-weight: 700;
	--jx-tf-author-align: left;
	--jx-tf-quote-color: rgba(24, 25, 237, 0.15);
	--jx-tf-quote-size: 1.6em;
	--jx-tf-readmore-color: #1819ED;
	--jx-tf-readmore-hover: #3D38FF;
	--jx-tf-readmore-bg: transparent;
	--jx-tf-readmore-bg-hover: transparent;
	--jx-tf-pager-bg: rgba(24, 25, 237, 0.15);
	--jx-tf-pager-active: #1819ED;
	--jx-tf-speed: 750ms;
	box-sizing: border-box;
	max-width: var(--jx-tf-max-width);
	margin: 0 auto;
	font-family: var(--jx-tf-font-family, inherit);
}

.jx-tf *,
.jx-tf *::before,
.jx-tf *::after {
	box-sizing: border-box;
}

/* ---- Stage / track (CSS grid stack) ---- */
.jx-tf__stage {
	position: relative;
	width: 100%;
	overflow: hidden;
	touch-action: pan-y pinch-zoom;
	isolation: isolate;
}

/* Measure off-flow so inactive slides can report natural height */
.jx-tf:not(.jx-tf--carousel) .jx-tf__slide.is-measuring,
.jx-tf:not(.jx-tf--carousel) .fwrapper.is-measuring {
	position: absolute !important;
	left: 0;
	right: 0;
	top: 0;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	z-index: -1 !important;
	overflow: visible !important;
	margin: 0 !important;
	border: none !important;
	transform: none !important;
	filter: none !important;
	transition: none !important;
}

.jx-tf__track,
.jx-tf .ftestimonial {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style: none;
	visibility: hidden;
	position: relative;
}

.jx-tf.is-ready .jx-tf__track,
.jx-tf.is-ready .ftestimonial {
	visibility: visible;
}

.jx-tf__slide,
.jx-tf .fwrapper {
	grid-area: 1 / 1;
	width: 100%;
	max-width: 100%;
	margin: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--jx-tf-speed) ease-in-out, transform var(--jx-tf-speed) ease-in-out, filter var(--jx-tf-speed) ease-in-out, visibility 0s linear var(--jx-tf-speed);
	transform: translateX(0);
	z-index: 1;
	min-height: 0;
	overflow: hidden;
}

/* Only active + leaving slides participate in layout height */
.jx-tf.is-ready .jx-tf__slide:not(.is-active):not(.is-leaving),
.jx-tf.is-ready .fwrapper:not(.is-active):not(.is-leaving) {
	height: 0 !important;
	max-height: 0 !important;
	min-height: 0 !important;
	overflow: hidden;
	visibility: hidden;
	margin: 0;
	padding: 0;
	border: none;
	opacity: 0;
	pointer-events: none;
	z-index: 0;
	transition: opacity var(--jx-tf-speed) ease-in-out, transform var(--jx-tf-speed) ease-in-out, filter var(--jx-tf-speed) ease-in-out, visibility 0s linear var(--jx-tf-speed), height 0s linear var(--jx-tf-speed);
}

.jx-tf.is-ready .jx-tf__slide.is-active,
.jx-tf.is-ready .jx-tf__slide.is-leaving,
.jx-tf.is-ready .fwrapper.is-active,
.jx-tf.is-ready .fwrapper.is-leaving {
	height: auto;
	max-height: none;
	overflow: visible;
	visibility: visible;
}

.jx-tf--effect-fade .jx-tf__slide,
.jx-tf--effect-fade .fwrapper {
	transform: none;
}

.jx-tf--effect-slide .jx-tf__slide.is-from-next,
.jx-tf--effect-slide .fwrapper.is-from-next {
	transform: translateX(36px);
}

.jx-tf--effect-slide .jx-tf__slide.is-from-prev,
.jx-tf--effect-slide .fwrapper.is-from-prev {
	transform: translateX(-36px);
}

.jx-tf--effect-slide .jx-tf__slide.is-active,
.jx-tf--effect-slide .fwrapper.is-active {
	transform: translateX(0);
}

.jx-tf--effect-slide .jx-tf__slide.is-leaving,
.jx-tf--effect-slide .fwrapper.is-leaving {
	opacity: 0;
}

.jx-tf--effect-slide .jx-tf__slide.is-exit-next,
.jx-tf--effect-slide .fwrapper.is-exit-next {
	transform: translateX(-36px);
}

.jx-tf--effect-slide .jx-tf__slide.is-exit-prev,
.jx-tf--effect-slide .fwrapper.is-exit-prev {
	transform: translateX(36px);
}

/* ---- Transition: slide-up ---- */
.jx-tf--effect-slide-up .jx-tf__slide,
.jx-tf--effect-slide-up .fwrapper {
	transform: translateY(0);
}

.jx-tf--effect-slide-up .jx-tf__slide.is-from-next,
.jx-tf--effect-slide-up .fwrapper.is-from-next {
	transform: translateY(28px);
}

.jx-tf--effect-slide-up .jx-tf__slide.is-from-prev,
.jx-tf--effect-slide-up .fwrapper.is-from-prev {
	transform: translateY(-28px);
}

.jx-tf--effect-slide-up .jx-tf__slide.is-active,
.jx-tf--effect-slide-up .fwrapper.is-active {
	transform: translateY(0);
}

.jx-tf--effect-slide-up .jx-tf__slide.is-exit-next,
.jx-tf--effect-slide-up .fwrapper.is-exit-next {
	transform: translateY(-28px);
}

.jx-tf--effect-slide-up .jx-tf__slide.is-exit-prev,
.jx-tf--effect-slide-up .fwrapper.is-exit-prev {
	transform: translateY(28px);
}

/* ---- Transition: zoom ---- */
.jx-tf--effect-zoom .jx-tf__slide,
.jx-tf--effect-zoom .fwrapper {
	transform: scale(1);
}

.jx-tf--effect-zoom .jx-tf__slide.is-from-next,
.jx-tf--effect-zoom .jx-tf__slide.is-from-prev,
.jx-tf--effect-zoom .fwrapper.is-from-next,
.jx-tf--effect-zoom .fwrapper.is-from-prev {
	transform: scale(0.94);
}

.jx-tf--effect-zoom .jx-tf__slide.is-active,
.jx-tf--effect-zoom .fwrapper.is-active {
	transform: scale(1);
}

.jx-tf--effect-zoom .jx-tf__slide.is-exit-next,
.jx-tf--effect-zoom .jx-tf__slide.is-exit-prev,
.jx-tf--effect-zoom .fwrapper.is-exit-next,
.jx-tf--effect-zoom .fwrapper.is-exit-prev {
	transform: scale(1.04);
}

/* ---- Transition: flip ---- */
.jx-tf--effect-flip .jx-tf__stage {
	perspective: 1400px;
}

.jx-tf--effect-flip .jx-tf__slide,
.jx-tf--effect-flip .fwrapper {
	transform: rotateY(0deg);
	backface-visibility: hidden;
}

.jx-tf--effect-flip .jx-tf__slide.is-from-next,
.jx-tf--effect-flip .fwrapper.is-from-next {
	transform: rotateY(-72deg);
}

.jx-tf--effect-flip .jx-tf__slide.is-from-prev,
.jx-tf--effect-flip .fwrapper.is-from-prev {
	transform: rotateY(72deg);
}

.jx-tf--effect-flip .jx-tf__slide.is-active,
.jx-tf--effect-flip .fwrapper.is-active {
	transform: rotateY(0deg);
}

.jx-tf--effect-flip .jx-tf__slide.is-exit-next,
.jx-tf--effect-flip .fwrapper.is-exit-next {
	transform: rotateY(72deg);
}

.jx-tf--effect-flip .jx-tf__slide.is-exit-prev,
.jx-tf--effect-flip .fwrapper.is-exit-prev {
	transform: rotateY(-72deg);
}

/* ---- Transition: blur ---- */
.jx-tf--effect-blur .jx-tf__slide,
.jx-tf--effect-blur .fwrapper {
	filter: blur(0);
	transform: none;
}

.jx-tf--effect-blur .jx-tf__slide.is-from-next,
.jx-tf--effect-blur .jx-tf__slide.is-from-prev,
.jx-tf--effect-blur .fwrapper.is-from-next,
.jx-tf--effect-blur .fwrapper.is-from-prev {
	filter: blur(10px);
	transform: scale(0.985);
}

.jx-tf--effect-blur .jx-tf__slide.is-active,
.jx-tf--effect-blur .fwrapper.is-active {
	filter: blur(0);
	transform: scale(1);
}

.jx-tf--effect-blur .jx-tf__slide.is-exit-next,
.jx-tf--effect-blur .jx-tf__slide.is-exit-prev,
.jx-tf--effect-blur .fwrapper.is-exit-next,
.jx-tf--effect-blur .fwrapper.is-exit-prev {
	filter: blur(10px);
	transform: scale(1.01);
}

/* ---- Transition: rotate ---- */
.jx-tf--effect-rotate .jx-tf__slide,
.jx-tf--effect-rotate .fwrapper {
	transform: rotate(0deg) scale(1);
}

.jx-tf--effect-rotate .jx-tf__slide.is-from-next,
.jx-tf--effect-rotate .fwrapper.is-from-next {
	transform: rotate(4deg) scale(0.96);
}

.jx-tf--effect-rotate .jx-tf__slide.is-from-prev,
.jx-tf--effect-rotate .fwrapper.is-from-prev {
	transform: rotate(-4deg) scale(0.96);
}

.jx-tf--effect-rotate .jx-tf__slide.is-active,
.jx-tf--effect-rotate .fwrapper.is-active {
	transform: rotate(0deg) scale(1);
}

.jx-tf--effect-rotate .jx-tf__slide.is-exit-next,
.jx-tf--effect-rotate .fwrapper.is-exit-next {
	transform: rotate(-4deg) scale(0.96);
}

.jx-tf--effect-rotate .jx-tf__slide.is-exit-prev,
.jx-tf--effect-rotate .fwrapper.is-exit-prev {
	transform: rotate(4deg) scale(0.96);
}

.jx-tf__slide.is-active,
.jx-tf .fwrapper.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 2;
	transition: opacity var(--jx-tf-speed) ease-in-out, transform var(--jx-tf-speed) ease-in-out, filter var(--jx-tf-speed) ease-in-out, visibility 0s linear 0s;
}

.jx-tf__slide.is-leaving,
.jx-tf .fwrapper.is-leaving {
	opacity: 0;
	z-index: 1;
	visibility: visible;
	height: auto;
	max-height: none;
	overflow: visible;
}

/* Before JS: show first slide only, collapse the rest */
.jx-tf:not(.is-ready) .jx-tf__slide:not(.is-active),
.jx-tf:not(.is-ready) .fwrapper:not(.is-active) {
	visibility: hidden;
	height: 0;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
}

.jx-tf:not(.is-ready) .jx-tf__slide.is-active,
.jx-tf:not(.is-ready) .fwrapper.is-active {
	opacity: 1;
	visibility: visible;
}

.jx-tf__slide-inner {
	position: relative;
	background: var(--jx-tf-bg);
	border: var(--jx-tf-border);
	border-radius: var(--jx-tf-radius);
	box-shadow: var(--jx-tf-shadow);
	padding: var(--jx-tf-padding);
	min-height: var(--jx-tf-min-height);
	color: var(--jx-tf-text-color);
	font-size: var(--jx-tf-text-size);
	font-weight: var(--jx-tf-text-weight);
	font-style: var(--jx-tf-font-style);
	line-height: var(--jx-tf-line-height);
	text-align: var(--jx-tf-text-align);
}

/* ---- Layout: Card (default) ---- */
.jx-tf--card .jx-tf__slide-inner {
	background: var(--jx-tf-bg);
}

/* ---- Layout: Minimal (modern editorial) ---- */
.jx-tf--minimal .jx-tf__slide-inner {
	background: transparent;
	border: none;
	box-shadow: none;
	padding: 24px 12px;
}

.jx-tf--minimal .jx-tf__quotes {
	justify-content: center;
	margin-bottom: 18px;
}

.jx-tf--minimal .jx-tf__quote-icon,
.jx-tf--minimal .jx-tf__quotes .fquote {
	width: var(--jx-tf-quote-size, 1.6em);
	height: var(--jx-tf-quote-size, 1.6em);
	opacity: 0.85;
}

.jx-tf--minimal .jx-tf__text {
	font-size: calc(var(--jx-tf-text-size) + 2px);
	line-height: 1.75;
}

.jx-tf--minimal .jx-tf__author {
	margin-top: 20px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.6875rem;
	font-weight: 600;
	opacity: 0.9;
}

.jx-tf[style*="--jx-tf-text-align: center"] .jx-tf--minimal .jx-tf__quotes,
.jx-tf--minimal[style*="--jx-tf-text-align: center"] .jx-tf__quotes {
	justify-content: center;
}

/* ---- Layout: Bubble (author below the speech bubble) ---- */
.jx-tf--bubble .jx-tf__bubble-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

.jx-tf--bubble .jx-tf__slide-inner {
	margin-bottom: 0;
	width: 100%;
}

.jx-tf--bubble .jx-tf__slide-inner::after {
	content: "";
	position: absolute;
	left: 32px;
	bottom: -10px;
	width: 0;
	height: 0;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid var(--jx-tf-bg);
	filter: drop-shadow(0 2px 1px rgba(15, 15, 20, 0.04));
}

.jx-tf--bubble .jx-tf__author {
	margin: 12px 0 0;
	padding: 0 0 0 20px;
	font-size: var(--jx-tf-author-size);
	font-weight: var(--jx-tf-author-weight);
	color: var(--jx-tf-author-color);
	text-align: var(--jx-tf-author-align);
}

/* ---- Layout: Classic (legacy 2011 style) ---- */
.jx-tf--classic .jx-tf__slide-inner {
	background: transparent;
	border: none;
	border-left: 4px solid var(--jx-tf-author-color);
	border-radius: 0;
	box-shadow: none;
	padding: 10px 0 10px 18px;
}

.jx-tf--classic .jx-tf__quotes {
	margin-bottom: 8px;
}

.jx-tf--classic .jx-tf__quote-icon,
.jx-tf--classic .jx-tf__quotes .fquote {
	width: var(--jx-tf-quote-size, 1.25em);
	height: var(--jx-tf-quote-size, 1.25em);
	opacity: 0.7;
}

.jx-tf--classic .jx-tf__text {
	font-style: italic;
	color: var(--jx-tf-text-color);
}

.jx-tf--classic .jx-tf__author {
	margin-top: 10px;
	font-size: calc(var(--jx-tf-author-size) - 1px);
	font-weight: 600;
	font-style: normal;
}

.jx-tf--classic .jx-tf__author::before {
	content: "- ";
	color: var(--jx-tf-text-color);
	font-weight: 400;
}

.jx-tf--classic .jx-tf__slide-inner::after {
	content: "";
	display: block;
	margin-top: 14px;
	height: 1px;
	background: linear-gradient(to right, var(--jx-tf-author-color), transparent);
	opacity: 0.25;
}

/* ---- Quote icons (inline SVG sprite) ---- */
.jx-tf-svg-sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.jx-tf__quotes {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	color: var(--jx-tf-quote-color);
}

.jx-tf__quote-icon,
.jx-tf__quotes .fquote {
	display: inline-block;
	width: var(--jx-tf-quote-size, 1.6em);
	height: var(--jx-tf-quote-size, 1.6em);
	fill: currentColor;
	color: var(--jx-tf-quote-color);
	vertical-align: middle;
	flex-shrink: 0;
}

.jx-tf__quotes--inline {
	justify-content: flex-start;
}

.jx-tf[style*="--jx-tf-text-align: center"] .jx-tf__quotes--inline,
.jx-tf[style*="--jx-tf-text-align:center"] .jx-tf__quotes--inline {
	justify-content: center;
}

.jx-tf[style*="--jx-tf-text-align: right"] .jx-tf__quotes--inline,
.jx-tf[style*="--jx-tf-text-align:right"] .jx-tf__quotes--inline {
	justify-content: flex-end;
}

/* ---- Body / text ---- */
.jx-tf__body {
	position: relative;
	z-index: 1;
}

.jx-tf__text {
	margin: 0;
	padding: 0;
	border: none;
	font: inherit;
	color: inherit;
}

.jx-tf__text-inner {
	display: inline;
}

.jx-tf__readmore-wrap {
	display: inline;
	white-space: nowrap;
}

.jx-tf__readmore,
.jx-tf a.freadmore,
.jx-tf a.testiPopup.freadmore {
	display: inline;
	white-space: nowrap;
	vertical-align: baseline;
	color: var(--jx-tf-readmore-color);
	background: transparent;
	font-weight: 600;
	text-decoration: none;
	margin-left: 0.25em;
	padding: 0;
	border-radius: 0;
	transition: color 0.15s ease, background 0.15s ease;
}

.jx-tf__readmore:hover,
.jx-tf a.freadmore:hover,
.jx-tf a.testiPopup.freadmore:hover {
	color: var(--jx-tf-readmore-hover);
	background: transparent;
	text-decoration: underline;
}

.jx-tf--readmore-pill .jx-tf__readmore-wrap {
	margin-left: 0.35em;
}

.jx-tf--readmore-pill .jx-tf__readmore,
.jx-tf--readmore-pill a.freadmore,
.jx-tf--readmore-pill a.testiPopup.freadmore {
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--jx-tf-readmore-bg);
	text-decoration: none;
}

.jx-tf--readmore-pill .jx-tf__readmore:hover,
.jx-tf--readmore-pill a.freadmore:hover,
.jx-tf--readmore-pill a.testiPopup.freadmore:hover {
	color: var(--jx-tf-readmore-hover);
	background: var(--jx-tf-readmore-bg-hover);
	text-decoration: none;
}

/* ---- Author ---- */
.jx-tf__author,
.jx-tf .fauthor {
	display: block;
	margin: 16px 0 0;
	padding: 0;
	font-size: var(--jx-tf-author-size);
	font-weight: var(--jx-tf-author-weight);
	font-style: normal;
	color: var(--jx-tf-author-color);
	text-align: var(--jx-tf-author-align);
	line-height: 1.4;
}

/* ---- Pagination ---- */
.jx-tf__pager {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.jx-tf__pager li {
	margin: 0;
	padding: 0;
}

.jx-tf__dot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 10px;
	height: 10px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: var(--jx-tf-pager-bg);
	cursor: pointer;
	transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.jx-tf__dot:hover {
	transform: scale(1.1);
	background: var(--jx-tf-pager-active);
	opacity: 0.65;
}

.jx-tf__dot.is-active {
	background: var(--jx-tf-pager-active);
	transform: scale(1.2);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--jx-tf-pager-active);
	opacity: 1;
}

.jx-tf-pager--pill .jx-tf__dot {
	width: 28px;
	height: 8px;
	border-radius: 100px;
}

/* ---- Empty state ---- */
.jx-tf__empty,
.noError {
	padding: 20px 24px;
	border-radius: 12px;
	background: #FEF3C7;
	border: 1px solid #FDE68A;
	color: #92400E;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.jx-tf__empty a,
.noError a {
	color: #B45309;
	font-weight: 600;
}

@media (max-width: 767px) {
	.jx-tf__slide-inner {
		padding: 22px 20px;
	}

	.jx-tf--minimal .jx-tf__slide-inner {
		padding: 18px 8px;
	}

	.jx-tf--classic .jx-tf__slide-inner {
		padding: 8px 0 8px 14px;
	}

	.jx-tf--bubble .jx-tf__slide-inner::after {
		left: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.jx-tf__slide,
	.jx-tf .fwrapper,
	.jx-tf__dot,
	.jx-tf__stage {
		transition: none;
		filter: none !important;
	}
}

/* ---- Static grid mode (no slider JS) ---- */
.jx-tf--grid .jx-tf__grid {
	display: grid;
	grid-template-columns: repeat(var(--jx-tf-grid-columns, 3), minmax(0, 1fr));
	gap: var(--jx-tf-grid-gap, 24px);
	width: 100%;
}

.jx-tf--grid .jx-tf__slide,
.jx-tf--grid .fwrapper {
	position: relative;
	grid-area: unset;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	filter: none;
	transition: none;
	height: auto;
	max-height: none;
	min-height: 0;
	overflow: visible;
}

/* Grid has no slider JS — override pre-JS / stacked-slide collapse rules */
.jx-tf--grid:not(.is-ready) .jx-tf__slide,
.jx-tf--grid:not(.is-ready) .fwrapper,
.jx-tf--grid.is-ready .jx-tf__slide,
.jx-tf--grid.is-ready .fwrapper {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	height: auto;
	max-height: none;
	overflow: visible;
}

.jx-tf--grid .jx-tf__slide-inner {
	height: 100%;
}

@media (max-width: 991px) {
	.jx-tf--grid .jx-tf__grid {
		grid-template-columns: repeat(var(--jx-tf-grid-columns-tablet, 2), minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.jx-tf--grid .jx-tf__grid {
		grid-template-columns: repeat(var(--jx-tf-grid-columns-mobile, 1), minmax(0, 1fr));
	}
}

.jx-tf__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 1rem;
}

.jx-tf__avatar {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	overflow: hidden;
}

.jx-tf__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jx-tf__avatar--initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(24, 25, 237, 0.12);
	color: #1819ED;
	font-weight: 700;
	font-size: 0.85rem;
}

.jx-tf__stars {
	letter-spacing: 0.08em;
	color: #d1d5db;
	margin-bottom: 0.5rem;
}

.jx-tf__star.is-on {
	color: #f5b301;
}

.jx-tf__meta {
	font-size: 0.85em;
	opacity: 0.8;
}

.jx-tf__date {
	display: block;
	font-size: 0.75em;
	opacity: 0.65;
	margin-top: 0.25rem;
}

.jx-tf__stage {
	position: relative;
}

.jx-tf__shell {
	position: relative;
	display: block;
	width: 100%;
}

.jx-tf__shell:has(> .jx-tf__arrow) {
	padding-inline: 52px;
}

.jx-tf__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--jx-tf-arrow-bg, #ffffff);
	color: var(--jx-tf-arrow-color, #111827);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
	cursor: pointer;
	line-height: 0;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.jx-tf__arrow:disabled,
.jx-tf__arrow[aria-disabled="true"] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

.jx-tf__arrow-icon {
	display: block;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.jx-tf__arrow:hover {
	transform: translateY(-50%) scale(1.05);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	color: var(--jx-tf-pager-active, #1819ED);
}

.jx-tf__arrow:focus-visible {
	outline: 2px solid var(--jx-tf-pager-active, #1819ED);
	outline-offset: 2px;
}

.jx-tf__arrow--prev { left: 0; }
.jx-tf__arrow--next { right: 0; }

.jx-tf--carousel .jx-tf__shell,
.jx-tf[data-per-view]:not([data-per-view="1"]) .jx-tf__shell {
	padding-inline: 52px;
}

.jx-tf--carousel .jx-tf__arrow--prev,
.jx-tf[data-per-view]:not([data-per-view="1"]) .jx-tf__arrow--prev { left: 0; }

.jx-tf--carousel .jx-tf__arrow--next,
.jx-tf[data-per-view]:not([data-per-view="1"]) .jx-tf__arrow--next { right: 0; }

/* Carousel: Design Studio cards in a sliding row */
.jx-tf--carousel .jx-tf__stage {
	overflow: hidden;
	padding: 20px 10px 28px;
	margin: 0;
	touch-action: pan-y pinch-zoom;
}

.jx-tf--carousel .jx-tf__track,
.jx-tf--carousel .ftestimonial {
	display: flex;
	align-items: stretch;
	gap: var(--jx-tf-carousel-gap, var(--tf-gap, 22px));
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	will-change: transform;
	transition: transform var(--jx-tf-speed, 750ms) ease;
}

.jx-tf--carousel .jx-tf__slide,
.jx-tf--carousel .fwrapper {
	position: relative !important;
	grid-area: unset !important;
	flex: 0 0 calc((100% - (var(--jx-tf-per, 1) - 1) * var(--jx-tf-carousel-gap, var(--tf-gap, 22px))) / var(--jx-tf-per, 1));
	width: auto;
	max-width: none;
	min-width: 0;
	min-height: 0;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	overflow: visible !important;
	transform: none !important;
	filter: none !important;
	z-index: 1;
	box-sizing: border-box;
	transition: none;
}

.jx-tf--carousel.is-ready .jx-tf__slide:not(.is-active):not(.is-leaving),
.jx-tf--carousel.is-ready .fwrapper:not(.is-active):not(.is-leaving),
.jx-tf--carousel:not(.is-ready) .jx-tf__slide:not(.is-active),
.jx-tf--carousel:not(.is-ready) .fwrapper:not(.is-active) {
	height: auto !important;
	max-height: none !important;
	min-height: 0 !important;
	overflow: visible !important;
	visibility: visible !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	opacity: 1 !important;
	pointer-events: auto !important;
	z-index: 1;
}

.jx-tf--carousel .tf-card {
	width: 100%;
	height: 100%;
	margin: 0;
	box-sizing: border-box;
}

/* Equal / stretch height from Design Studio or module override */
.jx-tf[data-equal="1"].jx-tf--carousel .jx-tf__slide,
.jx-tf[data-equal="1"].jx-tf--carousel .fwrapper,
.jx-testimonial-wrapper[data-equal="1"].jx-tf--carousel .jx-tf__slide {
	display: flex;
	align-items: stretch;
}

.jx-tf[data-equal="1"]:not(.jx-tf--carousel).is-ready .jx-tf__slide.is-active,
.jx-tf[data-equal="1"]:not(.jx-tf--carousel).is-ready .jx-tf__slide.is-leaving,
.jx-tf[data-equal="1"]:not(.jx-tf--carousel).is-ready .fwrapper.is-active,
.jx-tf[data-equal="1"]:not(.jx-tf--carousel).is-ready .fwrapper.is-leaving {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: var(--jx-tf-equal-h, 0);
	height: var(--jx-tf-equal-h, auto);
	box-sizing: border-box;
}

.jx-tf[data-equal="1"] .tf-card,
.jx-testimonial-wrapper[data-equal="1"] .tf-card {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	height: 100%;
	min-height: 100%;
	box-sizing: border-box;
}

.jx-tf[data-equal="1"] .tf-bubble,
.jx-testimonial-wrapper[data-equal="1"] .tf-bubble {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.jx-tf[data-equal="1"] .tf-body,
.jx-testimonial-wrapper[data-equal="1"] .tf-body {
	flex: 1 1 auto;
}

.jx-tf[data-equal="1"]:not([data-layout="masonry"]):not([data-layout="split"]):not([data-layout="compact"]):not([data-layout="list"]) .tf-card,
.jx-testimonial-wrapper[data-equal="1"]:not([data-layout="masonry"]):not([data-layout="split"]):not([data-layout="compact"]):not([data-layout="list"]) .tf-card {
	gap: 16px;
}

.jx-tf[data-equal="1"] .tf-footer,
.jx-testimonial-wrapper[data-equal="1"] .tf-footer {
	margin-top: auto;
}

.jx-tf--preset-light {
	--jx-tf-bg: #ffffff;
	--jx-tf-color: #374151;
}

.jx-tf--preset-dark {
	--jx-tf-bg: #111827;
	--jx-tf-color: #f9fafb;
}

.jx-tf--preset-dark .jx-tf__author,
.jx-tf--preset-dark .jx-tf__text {
	color: #f9fafb;
}

.jx-tf--preset-trust {
	--jx-tf-bg: #f7f7f4;
}

.jx-tf--preset-trust .jx-tf__star.is-on {
	color: #00b67a;
}

.jx-tf--preset-minimal {
	--jx-tf-shadow: none;
	--jx-tf-bg: transparent;
}

@media (max-width: 991px) {
	.jx-tf--per-3 {
		--jx-tf-per: 2;
	}

	.jx-tf--carousel .jx-tf__shell {
		padding-inline: 44px;
	}
}

@media (max-width: 767px) {
	.jx-tf--per-2,
	.jx-tf--per-3 {
		--jx-tf-per: 1;
	}

	.jx-tf--carousel .jx-tf__shell {
		padding-inline: 40px;
	}

	.jx-tf__arrow {
		width: 38px;
		height: 38px;
	}

	.jx-tf__arrow-icon {
		width: 18px;
		height: 18px;
	}

	.jx-tf--carousel .jx-tf__stage {
		padding: 14px 6px 22px;
	}
}

.jx-testimonial-author-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Design Studio Theme Card Integration */
.jx-tf.tf-stage,
.jx-tf .tf-stage,
.jx-tf.jx-testimonial-wrapper {
	background: transparent;
	padding: 0;
	margin: 0 auto;
}

.jx-tf .tf-card {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
}

/* Single-slide mode: keep room for card shadows without clipping */
.jx-tf:not(.jx-tf--carousel) .jx-tf__stage {
	overflow: hidden;
	padding: 12px 8px 20px;
	margin: 0;
}

.jx-tf:not(.jx-tf--carousel) .jx-tf__slide.is-active .tf-card,
.jx-tf:not(.jx-tf--carousel) .fwrapper.is-active .tf-card {
	overflow: visible;
}

.jx-tf .tf-readmore-wrap {
	margin: 10px 0 0;
}

.jx-tf .tf-quote-text {
	display: inline;
}

.jx-tf .tf-quote {
	display: block;
	margin: 0;
}

@media (max-width: 575px) {
	.jx-tf--carousel .jx-tf__shell {
		padding-inline: 36px;
	}

	.jx-tf__arrow--prev { left: 0; }
	.jx-tf__arrow--next { right: 0; }
}

/* Peek / center carousel */
.jx-tf--peek.jx-tf--carousel .jx-tf__stage {
	overflow: visible;
}
.jx-tf--peek.jx-tf--carousel .jx-tf__slide,
.jx-tf--peek.jx-tf--carousel .fwrapper {
	flex-basis: calc((100% - (var(--jx-tf-per, 1) - 1) * var(--jx-tf-carousel-gap, 22px)) / var(--jx-tf-per, 1) - 28px);
}
.jx-tf--center.jx-tf--carousel .jx-tf__stage {
	overflow: hidden;
}

/* Page-fade multi-card: card shells stay; quote/author content soft-swaps */
.jx-tf--page-fade.jx-tf--carousel .jx-tf__track {
	opacity: 1;
	transition: none;
}

.jx-tf--page-fade .tf-bubble,
.jx-tf--page-fade .tf-footer {
	transition: opacity calc(var(--jx-tf-speed, 750ms) / 2) ease;
}

.jx-tf--page-fade.jx-tf--page-fading .jx-tf__slide.is-in-view .tf-bubble,
.jx-tf--page-fade.jx-tf--page-fading .jx-tf__slide.is-in-view .tf-footer,
.jx-tf--page-fade.jx-tf--page-fading .jx-tf__slide.is-active .tf-bubble,
.jx-tf--page-fade.jx-tf--page-fading .jx-tf__slide.is-active .tf-footer {
	opacity: 0;
}

/* Fraction / progress pager */
.jx-tf-pager--fraction,
.jx-tf-pager--progress {
	gap: 12px;
}
.jx-tf__fraction {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--jx-tf-pager-active, #1819ED);
	letter-spacing: 0.02em;
}
.jx-tf__progress {
	position: relative;
	width: min(240px, 70%);
	height: 4px;
	border-radius: 999px;
	background: var(--jx-tf-pager-bg, rgba(24, 25, 237, 0.15));
	overflow: hidden;
}
.jx-tf__progress-fill {
	display: block;
	height: 100%;
	width: 0;
	border-radius: inherit;
	background: var(--jx-tf-pager-active, #1819ED);
	transition: width var(--jx-tf-speed, 750ms) ease;
}

/* Masonry module grid */
.jx-tf--masonry .jx-tf__grid,
.jx-tf[data-layout="masonry"] .jx-tf__grid {
	display: block;
	column-count: var(--jx-tf-grid-columns, var(--tf-columns, 3));
	column-gap: var(--jx-tf-grid-gap, var(--tf-gap, 24px));
}
.jx-tf--masonry .jx-tf__grid-item,
.jx-tf[data-layout="masonry"] .jx-tf__grid-item,
.jx-tf--masonry .jx-tf__slide,
.jx-tf[data-layout="masonry"] .jx-tf__slide {
	break-inside: avoid;
	margin: 0 0 var(--jx-tf-grid-gap, 24px);
	width: 100%;
}
@media (max-width: 991px) {
	.jx-tf--masonry .jx-tf__grid,
	.jx-tf[data-layout="masonry"] .jx-tf__grid {
		column-count: var(--jx-tf-grid-columns-tablet, 2);
	}
}
@media (max-width: 767px) {
	.jx-tf--masonry .jx-tf__grid,
	.jx-tf[data-layout="masonry"] .jx-tf__grid {
		column-count: var(--jx-tf-grid-columns-mobile, 1);
	}
}

/* Load more */
.jx-tf__grid-item.is-grid-hidden,
.jx-tf__slide.is-grid-hidden {
	display: none !important;
}

.jx-tf__grid-item.is-grid-revealing,
.jx-tf__slide.is-grid-revealing {
	animation: jx-tf-grid-reveal 0.45s ease both;
	animation-delay: var(--jx-tf-reveal-delay, 0ms);
}

@keyframes jx-tf-grid-reveal {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.jx-tf__loadmore-wrap {
	display: flex;
	justify-content: center;
	margin-top: 24px;
}
.jx-tf__loadmore {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 10px 22px;
	background: var(--jx-tf-pager-active, #1819ED);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.jx-tf__loadmore:hover {
	filter: brightness(1.05);
}
.jx-tf .visually-hidden,
.jx-tf__loadmore-status.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Expand trigger: reset native button chrome only; typography/pill come from .tf-readmore */
.jx-tf button.jx-tf-expand-trigger.tf-readmore,
.jx-testimonial-wrapper button.jx-tf-expand-trigger.tf-readmore,
.tf-stage button.jx-tf-expand-trigger.tf-readmore {
	appearance: none;
	-webkit-appearance: none;
	border: 0;
	box-shadow: none;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 650;
	line-height: 1.5;
	text-decoration: none;
	color: var(--tf-readmore-color, var(--tf-accent));
}

