/*------------------------------------------------------------------------
# com_testimonial_fader - Frontend Component Stylesheet (1:1 with Design Studio)
# ------------------------------------------------------------------------
# author    JoomlaX
# copyright Copyright (C) 2011 - 2026 JoomlaX. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
-------------------------------------------------------------------------*/

.tf-stage,
.jx-testimonial-wrapper {
  --tf-page-bg: transparent;
  --tf-page-fg: #111827;
  --tf-page-muted: #64748b;
  --tf-accent: #1819ed;
  --tf-accent-soft: color-mix(in srgb, var(--tf-accent) 14%, white);
  --tf-card-bg: #ffffff;
  --tf-card-fg: #1f2937;
  --tf-card-muted: #64748b;
  --tf-card-border: #e5e7eb;
  --tf-card-border-width: 1px;
  --tf-card-radius: 18px;
  --tf-card-padding: 28px;
  --tf-card-shadow: 0 18px 40px rgba(24, 25, 80, 0.08);
  --tf-card-blur: 0px;
  --tf-quote-size: 1.05rem;
  --tf-quote-leading: 1.65;
  --tf-quote-weight: 400;
  --tf-quote-style: italic;
  --tf-quote-align: left;
  --tf-font-body: inherit;
  --tf-font-quote: inherit;
  --tf-star-on: #f5b301;
  --tf-star-off: #d1d5db;
  --tf-avatar-size: 52px;
  --tf-avatar-radius: 999px;
  --tf-columns: 3;
  --tf-columns-tablet: 2;
  --tf-columns-mobile: 1;
  --tf-gap: 22px;
  --tf-name-size: 0.95rem;
  --tf-name-weight: 650;
  --tf-name-color: var(--tf-card-fg);
  --tf-mark-color: var(--tf-accent);
  --tf-mark-size: 26px;
  --tf-mark-opacity: 0.18;
  --tf-readmore-color: var(--tf-accent);
  --tf-readmore-hover: color-mix(in srgb, var(--tf-accent) 72%, white);
  --tf-link: var(--tf-accent);
  --tf-form-bg: #ffffff;
  --tf-input-bg: #ffffff;
  --tf-input-border: #dbe1ea;
  --tf-input-height: 44px;
  --tf-input-pad-y: 10px;
  --tf-input-pad-x: 14px;
  --tf-input-font: 13.5px;
  --tf-input-label: 13px;
  --tf-input-textarea-min: 100px;
  --tf-btn-bg: var(--tf-accent);
  --tf-btn-fg: #ffffff;
  --tf-btn-radius: 12px;
  --tf-pag-bg: #111827;
  --tf-pag-fg: #ffffff;
  --tf-pag-active: var(--tf-accent);
  --tf-max: 1120px;
  --tf-form-max: 100%;
  background: var(--tf-page-bg);
  color: var(--tf-page-fg);
  font-family: var(--tf-font-body, inherit);
  box-sizing: border-box;
}

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

.tf-stage .tf-wrap,
.jx-testimonial-wrapper .tf-wrap {
  max-width: var(--tf-max);
  margin: 0 auto;
  padding: 0 0 40px;
  transition: max-width 220ms ease;
}

.jx-tf-embed[data-embed="1"] {
  --tf-page-bg: transparent;
  background: transparent;
}

.jx-tf-embed[data-embed="1"] .tf-wrap {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-bottom: 0;
}

.tf-stage .tf-topdata,
.jx-testimonial-wrapper .tf-topdata {
  margin-bottom: 24px;
}

.tf-stage .tf-hero,
.jx-testimonial-wrapper .tf-hero {
  margin: 0 0 22px;
}

.tf-stage .tf-hero .tf-heading,
.jx-testimonial-wrapper .tf-hero .tf-heading,
.jx-testimonial-wrapper .tf-topdata h1,
.jx-testimonial-wrapper .tf-topdata h2,
.jx-testimonial-wrapper .tf-topdata h3 {
  color: var(--tf-page-fg) !important;
}

.tf-stage .tf-hero h2,
.jx-testimonial-wrapper .tf-hero h2,
.tf-stage .tf-hero .tf-heading,
.jx-testimonial-wrapper .tf-hero .tf-heading {
  margin: 0 0 6px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}

.tf-stage .tf-hero p,
.jx-testimonial-wrapper .tf-hero p,
.jx-testimonial-wrapper .tf-subtext {
  margin: 0 0 22px;
  color: var(--tf-page-muted) !important;
  max-width: 46rem;
  line-height: 1.55;
}

.tf-stage .tf-actions,
.jx-testimonial-wrapper .tf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.tf-stage .tf-btn,
.jx-testimonial-wrapper .tf-btn {
  appearance: none;
  border: 0;
  background: var(--tf-btn-bg);
  color: var(--tf-btn-fg);
  border-radius: var(--tf-btn-radius);
  padding: 12px 18px;
  font-weight: 650;
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.tf-stage .tf-btn-ico,
.jx-testimonial-wrapper .tf-btn-ico {
  font-size: 0.9em;
  transition: transform 160ms ease;
}

.tf-stage .tf-btn:hover:not(:disabled) .tf-btn-ico,
.jx-testimonial-wrapper .tf-btn:hover:not(:disabled) .tf-btn-ico {
  transform: scale(1.12) rotate(-6deg);
}

.tf-stage .tf-btn:hover:not(:disabled),
.jx-testimonial-wrapper .tf-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tf-btn-bg) 35%, transparent);
  filter: brightness(1.06);
}

.tf-stage .tf-btn:disabled,
.jx-testimonial-wrapper .tf-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  filter: none;
}

.tf-stage .tf-btn-spinner,
.jx-testimonial-wrapper .tf-btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tf-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes tf-spin {
  to {
    transform: rotate(360deg);
  }
}

.tf-stage .tf-btn:focus-visible,
.jx-testimonial-wrapper .tf-btn:focus-visible {
  outline: 2px solid var(--tf-accent);
  outline-offset: 2px;
}

.tf-stage .tf-btn--ghost,
.jx-testimonial-wrapper .tf-btn--ghost {
  background: transparent;
  color: var(--tf-page-fg);
  box-shadow: inset 0 0 0 1px var(--tf-card-border);
}

.tf-stage .tf-grid,
.jx-testimonial-wrapper .tf-grid {
  display: grid;
  grid-template-columns: repeat(var(--tf-columns), minmax(0, 1fr));
  gap: var(--tf-gap);
  transition: opacity 180ms ease;
}

.tf-stage .tf-card,
.jx-testimonial-wrapper .tf-card {
  position: relative;
  overflow: visible;
  background: var(--tf-card-bg);
  color: var(--tf-card-fg);
  border-width: var(--tf-card-border-width);
  border-style: var(--tf-card-border-style, solid);
  border-color: var(--tf-card-border);
  border-radius: var(--tf-card-radius);
  padding: var(--tf-card-padding);
  box-shadow: var(--tf-card-shadow);
  backdrop-filter: blur(var(--tf-card-blur));
  min-width: 0;
  --tf-hover-x: 0px;
  --tf-hover-y: -6px;
  --tf-hover-rotate: 0deg;
  --tf-hover-scale: 1;
  --tf-hover-shadow: 0 16px 34px color-mix(in srgb, var(--tf-accent) 18%, transparent);
  --tf-hover-border: color-mix(in srgb, var(--tf-accent) 45%, var(--tf-card-border));
  --tf-hover-outline: transparent;
  --tf-hover-outline-offset: 0px;
  --tf-hover-duration: 200ms;
  outline: 2px solid transparent;
  outline-offset: 0;
  transition:
    transform var(--tf-hover-duration) ease,
    box-shadow var(--tf-hover-duration) ease,
    border-color var(--tf-hover-duration) ease,
    outline-color var(--tf-hover-duration) ease,
    outline-offset var(--tf-hover-duration) ease;
}

.tf-stage [data-border-style="dashed"] .tf-card,
.jx-testimonial-wrapper[data-border-style="dashed"] .tf-card {
  border-style: dashed;
}

.tf-stage [data-border-style="dotted"] .tf-card,
.jx-testimonial-wrapper[data-border-style="dotted"] .tf-card {
  border-style: dotted;
}

.tf-stage [data-border-style="none"] .tf-card,
.jx-testimonial-wrapper[data-border-style="none"] .tf-card {
  border-style: none;
  border-width: 0 !important;
}

/* Card Accent Highlight Stripe */
.tf-stage [data-card-stripe="top"] .tf-card::before,
.tf-stage [data-card-stripe="left"] .tf-card::before,
.tf-stage [data-card-stripe="gradient"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="top"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="left"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="gradient"] .tf-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.tf-stage [data-card-stripe="top"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="top"] .tf-card::before {
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tf-accent);
  border-radius: var(--tf-card-radius) var(--tf-card-radius) 0 0;
}

.tf-stage [data-card-stripe="left"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="left"] .tf-card::before {
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--tf-accent);
  border-radius: var(--tf-card-radius) 0 0 var(--tf-card-radius);
}

.tf-stage [data-card-stripe="gradient"] .tf-card::before,
.jx-testimonial-wrapper[data-card-stripe="gradient"] .tf-card::before {
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tf-accent), color-mix(in srgb, var(--tf-accent) 25%, #a855f7));
  border-radius: var(--tf-card-radius) var(--tf-card-radius) 0 0;
}

.tf-stage .tf-card:hover,
.jx-testimonial-wrapper .tf-card:hover {
  transform: translate(var(--tf-hover-x), var(--tf-hover-y)) rotate(var(--tf-hover-rotate)) scale(var(--tf-hover-scale));
  box-shadow: var(--tf-hover-shadow);
  border-color: var(--tf-hover-border);
  outline-color: var(--tf-hover-outline);
  outline-offset: var(--tf-hover-outline-offset);
}

.tf-stage .tf-card:hover .tf-mark,
.jx-testimonial-wrapper .tf-card:hover .tf-mark { opacity: clamp(0.22, calc(var(--tf-mark-opacity) + 0.16), 1); }

.tf-stage .tf-card:hover .tf-stars .on,
.jx-testimonial-wrapper .tf-card:hover .tf-stars .on { filter: saturate(1.2); }

.tf-stage .tf-avatar img,
.jx-testimonial-wrapper .tf-avatar img {
  transition: transform 220ms ease;
}

.tf-stage .tf-card:hover .tf-avatar img,
.jx-testimonial-wrapper .tf-card:hover .tf-avatar img {
  transform: scale(1.06);
}

.tf-stage .tf-extra a,
.jx-testimonial-wrapper .tf-extra a {
  text-underline-offset: 2px;
  transition: color 160ms ease, text-underline-offset 160ms ease;
}

.tf-stage .tf-card:hover .tf-extra a,
.jx-testimonial-wrapper .tf-card:hover .tf-extra a { text-underline-offset: 4px; }

.tf-stage [data-hover="none"] .tf-card,
.jx-testimonial-wrapper[data-hover="none"] .tf-card {
  --tf-hover-x: 0px;
  --tf-hover-y: 0px;
  --tf-hover-rotate: 0deg;
  --tf-hover-scale: 1;
  --tf-hover-shadow: var(--tf-card-shadow);
}

.tf-stage [data-hover="none"] .tf-card:hover,
.jx-testimonial-wrapper[data-hover="none"] .tf-card:hover {
  border-color: var(--tf-card-border);
}

.tf-stage [data-hover="none"] .tf-card:hover .tf-avatar img,
.jx-testimonial-wrapper[data-hover="none"] .tf-card:hover .tf-avatar img { transform: none; }

.tf-stage [data-hover="glow"] .tf-card,
.jx-testimonial-wrapper[data-hover="glow"] .tf-card {
  --tf-hover-y: 0px;
  --tf-hover-border: var(--tf-card-border);
  --tf-hover-outline: transparent;
  --tf-hover-shadow:
    0 0 0 4px color-mix(in srgb, var(--tf-accent) 16%, transparent),
    0 10px 36px color-mix(in srgb, var(--tf-accent) 40%, transparent);
}

.tf-stage [data-hover="slide"] .tf-card,
.jx-testimonial-wrapper[data-hover="slide"] .tf-card {
  --tf-hover-x: 6px;
  --tf-hover-y: 0px;
}

.tf-stage [data-hover="tilt"] .tf-card,
.jx-testimonial-wrapper[data-hover="tilt"] .tf-card {
  --tf-hover-rotate: -0.7deg;
  --tf-hover-y: -4px;
}

.tf-stage [data-hover="border"] .tf-card,
.jx-testimonial-wrapper[data-hover="border"] .tf-card {
  --tf-hover-y: 0px;
  --tf-hover-shadow: var(--tf-card-shadow);
  --tf-hover-border: var(--tf-card-border);
  --tf-hover-outline: var(--tf-accent);
  --tf-hover-outline-offset: 4px;
}

.tf-stage [data-layout="list"] .tf-card,
.tf-stage [data-layout="compact"] .tf-card,
.jx-testimonial-wrapper[data-layout="list"] .tf-card,
.jx-testimonial-wrapper[data-layout="compact"] .tf-card {
  --tf-hover-y: -3px;
}

.tf-stage [data-layout="compact"] .tf-card--featured:hover,
.jx-testimonial-wrapper[data-layout="compact"] .tf-card--featured:hover {
  box-shadow: inset 3px 0 0 var(--tf-accent), var(--tf-hover-shadow);
}

.tf-stage .tf-body,
.jx-testimonial-wrapper .tf-body { position: relative; }

.tf-stage .tf-mark,
.jx-testimonial-wrapper .tf-mark {
  position: relative;
  top: auto;
  left: auto;
  line-height: 1;
  color: var(--tf-mark-color);
  opacity: var(--tf-mark-opacity);
  pointer-events: none;
  flex: 0 0 auto;
  margin: 0;
}

.tf-stage .tf-mark svg,
.jx-testimonial-wrapper .tf-mark svg {
  display: block;
  width: var(--tf-mark-size);
  height: var(--tf-mark-size);
  fill: currentColor;
}

.tf-stage .tf-head,
.jx-testimonial-wrapper .tf-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  min-height: var(--tf-mark-size);
}

.tf-stage .tf-stars,
.jx-testimonial-wrapper .tf-stars { display: flex; align-items: center; gap: 2px; letter-spacing: 0; margin: 0; color: var(--tf-star-off); }

.tf-stage .tf-stars svg,
.jx-testimonial-wrapper .tf-stars svg { width: 1em; height: 1em; fill: currentColor; display: block; }

.tf-stage .tf-stars .on,
.jx-testimonial-wrapper .tf-stars .on { color: var(--tf-star-on); }

.tf-stage .tf-quote,
.jx-testimonial-wrapper .tf-quote {
  margin: 0;
  font-family: var(--tf-font-quote, var(--tf-font-body, inherit)) !important;
  font-size: var(--tf-quote-size);
  font-style: var(--tf-quote-style);
  font-weight: var(--tf-quote-weight);
  line-height: var(--tf-quote-leading);
  text-align: var(--tf-quote-align);
  position: relative;
  z-index: 1;
}

.tf-stage .tf-footer,
.jx-testimonial-wrapper .tf-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.tf-stage .tf-avatar,
.jx-testimonial-wrapper .tf-avatar {
  width: var(--tf-avatar-size);
  height: var(--tf-avatar-size);
  border-radius: var(--tf-avatar-radius);
  overflow: hidden;
  flex: 0 0 var(--tf-avatar-size);
  background: var(--tf-accent-soft);
  color: var(--tf-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.tf-stage .tf-avatar img,
.jx-testimonial-wrapper .tf-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.tf-stage .tf-name,
.jx-testimonial-wrapper .tf-name {
  margin: 0;
  font-size: var(--tf-name-size);
  font-weight: var(--tf-name-weight);
  color: var(--tf-name-color);
}

.tf-stage [data-name-align="center"] .tf-footer,
.jx-testimonial-wrapper[data-name-align="center"] .tf-footer { justify-content: center; text-align: center; }

.tf-stage [data-name-align="right"] .tf-footer,
.jx-testimonial-wrapper[data-name-align="right"] .tf-footer { justify-content: flex-end; text-align: right; }

.tf-stage .tf-meta,
.tf-stage .tf-extra,
.tf-stage .tf-date,
.jx-testimonial-wrapper .tf-meta,
.jx-testimonial-wrapper .tf-extra,
.jx-testimonial-wrapper .tf-date {
  margin: 2px 0 0;
  color: var(--tf-card-muted);
  font-size: 0.8rem;
}

.tf-stage .tf-card a::before,
.tf-stage .tf-card a::after,
.jx-testimonial-wrapper .tf-card a::before,
.jx-testimonial-wrapper .tf-card a::after {
  content: none !important;
  display: none !important;
}

.tf-stage .tf-meta a,
.jx-testimonial-wrapper .tf-meta a {
  color: var(--tf-card-muted) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 160ms ease, opacity 160ms ease;
}

.tf-stage .tf-meta a:hover,
.jx-testimonial-wrapper .tf-meta a:hover {
  color: var(--tf-accent) !important;
}

.tf-stage .tf-extra a,
.jx-testimonial-wrapper .tf-extra a {
  color: var(--tf-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tf-stage .tf-readmore-wrap,
.jx-testimonial-wrapper .tf-readmore-wrap { margin: 12px 0 16px; }

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

.tf-stage .tf-readmore,
.jx-testimonial-wrapper .tf-readmore,
.tf-stage button.tf-readmore,
.jx-testimonial-wrapper button.tf-readmore {
  color: var(--tf-readmore-color, var(--tf-accent)) !important;
  font-weight: 650;
  font-size: 0.85rem;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.tf-stage .tf-readmore:hover,
.jx-testimonial-wrapper .tf-readmore:hover,
.tf-stage button.tf-readmore:hover,
.jx-testimonial-wrapper button.tf-readmore:hover {
  color: var(--tf-readmore-hover, color-mix(in srgb, var(--tf-accent) 72%, white)) !important;
}

.tf-stage [data-readmore-style="pill"] .tf-readmore,
.jx-testimonial-wrapper[data-readmore-style="pill"] .tf-readmore,
.tf-stage[data-readmore-style="pill"] .tf-readmore,
.jx-testimonial-wrapper[data-readmore-style="pill"] button.tf-readmore,
.tf-stage[data-readmore-style="pill"] button.tf-readmore {
  display: inline-block;
  background: color-mix(in srgb, var(--tf-accent) 12%, transparent) !important;
  border-radius: 8px;
  padding: 4px 10px !important;
}

.tf-stage [data-readmore-style="pill"] .tf-readmore:hover,
.jx-testimonial-wrapper[data-readmore-style="pill"] .tf-readmore:hover,
.tf-stage[data-readmore-style="pill"] .tf-readmore:hover,
.jx-testimonial-wrapper[data-readmore-style="pill"] button.tf-readmore:hover,
.tf-stage[data-readmore-style="pill"] button.tf-readmore:hover {
  background: color-mix(in srgb, var(--tf-accent) 20%, transparent) !important;
}

.tf-stage [data-layout="compact"] .tf-readmore-wrap,
.jx-testimonial-wrapper[data-layout="compact"] .tf-readmore-wrap { display: none; }

.tf-stage .tf-card--featured::after,
.jx-testimonial-wrapper .tf-card--featured::after {
  content: "Featured";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tf-accent);
  background: var(--tf-accent-soft);
  border-radius: 999px;
  padding: 4px 8px;
  z-index: 3;
}

.tf-stage [data-layout="masonry"] .tf-grid,
.jx-testimonial-wrapper[data-layout="masonry"] .tf-grid {
  display: block;
  column-count: var(--tf-columns);
  column-gap: var(--tf-gap);
}

.tf-stage [data-equal="1"]:not([data-layout="masonry"]) .tf-card-wrap,
.jx-testimonial-wrapper[data-equal="1"]:not([data-layout="masonry"]) .tf-card-wrap,
.tf-stage[data-equal="1"]:not([data-layout="masonry"]) .tf-card-wrap {
  display: flex;
}

.tf-stage [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,
.tf-stage[data-equal="1"]:not([data-layout="masonry"]):not([data-layout="split"]):not([data-layout="compact"]):not([data-layout="list"]) .tf-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  gap: 16px;
}

.tf-stage [data-equal="1"][data-layout="split"] .tf-card,
.jx-testimonial-wrapper[data-equal="1"][data-layout="split"] .tf-card,
.tf-stage[data-equal="1"][data-layout="split"] .tf-card {
  display: flex;
  flex-direction: row;
  flex: 1;
  height: 100%;
  align-items: stretch;
}

.tf-stage [data-equal="1"]:not([data-layout="masonry"]) .tf-bubble,
.jx-testimonial-wrapper[data-equal="1"]:not([data-layout="masonry"]) .tf-bubble,
.tf-stage[data-equal="1"]:not([data-layout="masonry"]) .tf-bubble {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tf-stage [data-equal="1"]:not([data-layout="masonry"]) .tf-body,
.jx-testimonial-wrapper[data-equal="1"]:not([data-layout="masonry"]) .tf-body,
.tf-stage[data-equal="1"]:not([data-layout="masonry"]) .tf-body { flex: 1; }

.tf-stage [data-layout="masonry"] .tf-card-wrap,
.jx-testimonial-wrapper[data-layout="masonry"] .tf-card-wrap {
  break-inside: avoid;
  margin-bottom: var(--tf-gap);
}

.tf-stage [data-layout="list"] .tf-grid,
.jx-testimonial-wrapper[data-layout="list"] .tf-grid { grid-template-columns: 1fr; }

.tf-stage [data-layout="list"] .tf-card,
.jx-testimonial-wrapper[data-layout="list"] .tf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 8px 28px;
  align-items: center;
  padding-left: calc(var(--tf-card-padding) + 12px);
}

.tf-stage [data-layout="list"] .tf-body,
.jx-testimonial-wrapper[data-layout="list"] .tf-body { min-width: 0; }

.tf-stage [data-layout="list"] .tf-stars,
.jx-testimonial-wrapper[data-layout="list"] .tf-stars { margin-bottom: 8px; }

.tf-stage [data-layout="list"] .tf-quote,
.jx-testimonial-wrapper[data-layout="list"] .tf-quote { font-size: calc(var(--tf-quote-size) * 1.02); }

.tf-stage [data-layout="list"] .tf-footer,
.jx-testimonial-wrapper[data-layout="list"] .tf-footer {
  margin-top: 0;
  align-self: stretch;
  align-items: center;
  padding-left: 24px;
  border-left: 1px solid var(--tf-card-border);
}

.tf-stage [data-layout="list"] .tf-mark,
.jx-testimonial-wrapper[data-layout="list"] .tf-mark {
  top: auto;
  left: auto;
  transform: none;
}

.tf-stage [data-layout="list"] .tf-card--featured,
.jx-testimonial-wrapper[data-layout="list"] .tf-card--featured {
  padding-top: calc(var(--tf-card-padding) + 16px);
}

.tf-stage [data-layout="list"] .tf-card--featured::after,
.jx-testimonial-wrapper[data-layout="list"] .tf-card--featured::after {
  left: var(--tf-card-padding);
  right: auto;
  top: 12px;
}

.tf-stage [data-layout="featured"] .tf-card-wrap:first-child,
.jx-testimonial-wrapper[data-layout="featured"] .tf-card-wrap:first-child { grid-column: 1 / -1; }

.tf-stage [data-layout="featured"] .tf-card-wrap:first-child .tf-quote,
.jx-testimonial-wrapper[data-layout="featured"] .tf-card-wrap:first-child .tf-quote { font-size: calc(var(--tf-quote-size) * 1.35); }

.tf-stage [data-layout="magazine"] .tf-grid,
.jx-testimonial-wrapper[data-layout="magazine"] .tf-grid { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }

.tf-stage [data-layout="magazine"] .tf-card-wrap:first-child,
.jx-testimonial-wrapper[data-layout="magazine"] .tf-card-wrap:first-child { grid-row: 1 / span 2; }

.tf-stage [data-layout="split"] .tf-card,
.jx-testimonial-wrapper[data-layout="split"] .tf-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.tf-stage [data-layout="split"] .tf-body,
.jx-testimonial-wrapper[data-layout="split"] .tf-body { flex: 1; min-width: 0; }

.tf-stage [data-layout="split"] .tf-footer,
.jx-testimonial-wrapper[data-layout="split"] .tf-footer {
  order: -1;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  gap: 8px;
  flex: 0 0 104px;
  width: 104px;
  align-self: flex-start;
}

.tf-stage [data-layout="split"][data-split-pos="right"] .tf-footer,
.jx-testimonial-wrapper[data-layout="split"][data-split-pos="right"] .tf-footer {
  order: 1;
}

.tf-stage [data-layout="split"] .tf-footer > div,
.tf-stage [data-layout="split"] .tf-byline,
.jx-testimonial-wrapper[data-layout="split"] .tf-footer > div,
.jx-testimonial-wrapper[data-layout="split"] .tf-byline { min-width: 0; overflow-wrap: anywhere; }

.tf-stage [data-layout="split"] .tf-name,
.jx-testimonial-wrapper[data-layout="split"] .tf-name { font-size: 0.88rem; }

.tf-stage [data-layout="split"] .tf-meta,
.tf-stage [data-layout="split"] .tf-extra,
.tf-stage [data-layout="split"] .tf-date,
.jx-testimonial-wrapper[data-layout="split"] .tf-meta,
.jx-testimonial-wrapper[data-layout="split"] .tf-extra,
.jx-testimonial-wrapper[data-layout="split"] .tf-date { font-size: 0.72rem; line-height: 1.35; }

.tf-stage [data-layout="split"] .tf-mark,
.jx-testimonial-wrapper[data-layout="split"] .tf-mark {
  top: auto;
  left: auto;
  right: auto;
}

.tf-stage [data-layout="split"] .tf-card--featured::after,
.jx-testimonial-wrapper[data-layout="split"] .tf-card--featured::after {
  top: 10px;
  right: 10px;
  left: auto;
}

.tf-stage [data-layout="split"][data-split-pos="right"] .tf-card--featured::after,
.jx-testimonial-wrapper[data-layout="split"][data-split-pos="right"] .tf-card--featured::after {
  top: 10px;
  left: 10px;
  right: auto;
}

.tf-stage [data-layout="centered"] .tf-card,
.jx-testimonial-wrapper[data-layout="centered"] .tf-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.tf-stage [data-layout="centered"] .tf-quote,
.jx-testimonial-wrapper[data-layout="centered"] .tf-quote { text-align: center; }

.tf-stage [data-layout="centered"] .tf-head,
.jx-testimonial-wrapper[data-layout="centered"] .tf-head { justify-content: center; }

.tf-stage [data-layout="centered"] .tf-stars,
.jx-testimonial-wrapper[data-layout="centered"] .tf-stars { justify-content: center; }

.tf-stage [data-layout="centered"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"] .tf-footer {
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"] .tf-footer {
  order: -1;
  margin-top: 0;
  margin-bottom: 16px;
}

.tf-stage [data-layout="compact"] .tf-grid,
.jx-testimonial-wrapper[data-layout="compact"] .tf-grid {
  grid-template-columns: 1fr;
  gap: var(--tf-gap);
}

.tf-stage [data-layout="compact"] .tf-card,
.jx-testimonial-wrapper[data-layout="compact"] .tf-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(150px, 210px);
  align-items: center;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: var(--tf-card-radius);
}

.tf-stage [data-layout="compact"] .tf-footer,
.jx-testimonial-wrapper[data-layout="compact"] .tf-footer { display: contents; }

.tf-stage [data-layout="compact"] .tf-avatar,
.jx-testimonial-wrapper[data-layout="compact"] .tf-avatar { grid-column: 1; grid-row: 1; }

.tf-stage [data-layout="compact"] .tf-body,
.jx-testimonial-wrapper[data-layout="compact"] .tf-body { grid-column: 2; grid-row: 1; min-width: 0; }

.tf-stage [data-layout="compact"] .tf-byline,
.jx-testimonial-wrapper[data-layout="compact"] .tf-byline { grid-column: 3; grid-row: 1; min-width: 0; }

.tf-stage [data-layout="compact"] .tf-date,
.tf-stage [data-layout="compact"] .is-location,
.jx-testimonial-wrapper[data-layout="compact"] .tf-date,
.jx-testimonial-wrapper[data-layout="compact"] .is-location { display: none; }

.tf-stage [data-layout="compact"] .tf-card--featured::after,
.jx-testimonial-wrapper[data-layout="compact"] .tf-card--featured::after { display: none; }

.tf-stage [data-layout="compact"] .tf-card--featured,
.jx-testimonial-wrapper[data-layout="compact"] .tf-card--featured {
  box-shadow: inset 3px 0 0 var(--tf-accent), var(--tf-card-shadow);
}

.tf-stage [data-layout="compact"] .tf-mark,
.jx-testimonial-wrapper[data-layout="compact"] .tf-mark { display: none; }

.tf-stage [data-layout="compact"] .tf-stars,
.jx-testimonial-wrapper[data-layout="compact"] .tf-stars { margin: 0 0 4px; font-size: 0.78rem; letter-spacing: 0.08em; }

.tf-stage [data-layout="compact"] .tf-quote,
.jx-testimonial-wrapper[data-layout="compact"] .tf-quote {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
  line-height: 1.45;
}

.tf-stage [data-layout="compact"] .tf-body .tf-extra,
.jx-testimonial-wrapper[data-layout="compact"] .tf-body .tf-extra { display: none; }

.tf-stage [data-layout="compact"] .tf-name,
.jx-testimonial-wrapper[data-layout="compact"] .tf-name { font-size: 0.88rem; }

.tf-stage [data-layout="compact"] .tf-meta,
.jx-testimonial-wrapper[data-layout="compact"] .tf-meta { font-size: 0.75rem; }

.tf-stage [data-layout="stacked"] .tf-grid,
.jx-testimonial-wrapper[data-layout="stacked"] .tf-grid { grid-template-columns: minmax(0, 720px); justify-content: center; }

/* 1. Classic Skin */
.tf-stage [data-skin="classic"] .tf-card,
.jx-testimonial-wrapper[data-skin="classic"] .tf-card {
  background: var(--tf-card-bg);
  border-width: var(--tf-card-border-width);
  border-style: var(--tf-card-border-style, solid);
  border-color: var(--tf-card-border);
  border-radius: var(--tf-card-radius);
  box-shadow: var(--tf-card-shadow);
}

/* Bubble Skin */
.tf-stage [data-skin="bubble"],
.jx-testimonial-wrapper[data-skin="bubble"] {
  --tf-card-border-width: 0px;
  --tf-card-shadow: none;
}

.tf-stage [data-skin="bubble"] .tf-card,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  backdrop-filter: none;
  --tf-hover-border: transparent;
  --tf-hover-shadow: none;
}

.tf-stage [data-skin="bubble"] .tf-bubble,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-bubble {
  filter: none;
}

.tf-stage [data-skin="bubble"] .tf-card:hover .tf-bubble,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-card:hover .tf-bubble {
  filter: none;
}

.tf-stage [data-skin="bubble"] .tf-body,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-body {
  background: color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  border: 0;
  border-radius: var(--tf-card-radius);
  padding: var(--tf-card-padding);
  box-shadow: none;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.tf-stage [data-skin="bubble"] .tf-body::after,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-body::after { content: none; display: none; }

.tf-stage .tf-arrow,
.jx-testimonial-wrapper .tf-arrow { display: none; }

.tf-stage [data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-arrow {
  display: block;
  width: 0;
  height: 0;
  margin: -1px 0 0 28px;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  filter: none;
}

.tf-stage [data-layout="centered"][data-skin="bubble"] .tf-arrow,
.tf-stage [data-name-align="center"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="centered"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-name-align="center"][data-skin="bubble"] .tf-arrow {
  margin-left: auto;
  margin-right: auto;
}

.tf-stage [data-name-align="right"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-name-align="right"][data-skin="bubble"] .tf-arrow {
  margin-left: auto;
  margin-right: 28px;
}

.tf-stage [data-layout="centered"][data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"][data-skin="bubble"] .tf-footer {
  padding-left: 0;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-card,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-card {
  display: flex;
  flex-direction: column;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-footer {
  order: -1;
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 8px;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-bubble,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-bubble {
  order: 1;
  display: flex;
  flex-direction: column;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="bubble"] .tf-arrow {
  order: -1;
  margin: 0 auto -1px auto;
  border-top: 0;
  border-bottom: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
}

.tf-stage [data-layout="split"] .tf-bubble,
.jx-testimonial-wrapper[data-layout="split"] .tf-bubble { flex: 1; min-width: 0; }

.tf-stage [data-layout="compact"] .tf-bubble,
.jx-testimonial-wrapper[data-layout="compact"] .tf-bubble { display: contents; }

.tf-stage [data-layout="split"][data-skin="bubble"] .tf-bubble,
.jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-bubble {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tf-stage [data-layout="split"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-arrow {
  display: block;
  position: absolute;
  left: -13px;
  right: auto;
  top: 18px;
  width: 0;
  height: 0;
  margin: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  border-left: 0;
  border-top-color: transparent;
  z-index: 2;
}

.tf-stage [data-layout="split"][data-split-pos="right"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="split"][data-split-pos="right"][data-skin="bubble"] .tf-arrow {
  left: auto;
  right: -13px;
  border-left: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  border-right: 0;
}

.tf-stage [data-layout="split"][data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-footer {
  padding-left: 0;
  margin-top: 0;
}

.tf-stage [data-skin="bubble"] .tf-mark,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-mark {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  margin: 0;
}

.tf-stage [data-skin="bubble"] .tf-card--featured .tf-head,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-card--featured .tf-head {
  padding-right: 5.5rem;
}

.tf-stage [data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-footer {
  margin-top: 8px;
  padding-left: 10px;
}

.tf-stage [data-skin="bubble"] .tf-name,
.jx-testimonial-wrapper[data-skin="bubble"] .tf-name { color: var(--tf-accent); }

.tf-stage [data-layout="list"][data-skin="bubble"] .tf-card,
.jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px 24px;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.tf-stage [data-layout="list"][data-skin="bubble"] .tf-bubble,
.jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-bubble {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tf-stage [data-layout="list"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-arrow {
  display: block;
  position: absolute;
  right: -13px;
  top: calc(50% - 10px);
  width: 0;
  height: 0;
  margin: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  border-right: 0;
  z-index: 2;
}

.tf-stage [data-layout="list"][data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-footer {
  border-left: 0;
  padding-left: 14px;
  margin-top: 0;
  align-self: center;
}

.tf-stage [data-layout="list"][data-skin="bubble"] .tf-mark,
.tf-stage [data-layout="split"][data-skin="bubble"] .tf-mark,
.jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-mark,
.jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-mark {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
}

.tf-stage [data-layout="compact"][data-skin="bubble"] .tf-card,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="bubble"] .tf-card {
  display: grid;
  background: color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
  border: 0;
  padding: 14px 16px;
  box-shadow: none;
}

.tf-stage [data-layout="compact"][data-skin="bubble"] .tf-arrow,
.tf-stage [data-layout="compact"][data-skin="bubble"] .tf-body::after,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="bubble"] .tf-arrow,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="bubble"] .tf-body::after { display: none; }

.tf-stage [data-layout="compact"][data-skin="bubble"] .tf-footer,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="bubble"] .tf-footer { margin-top: 0; padding-left: 0; }

/* 2. Flat Skin */
.tf-stage [data-skin="flat"],
.jx-testimonial-wrapper[data-skin="flat"] {
  --tf-card-shadow: none;
  --tf-card-border-width: 0px;
}

.tf-stage [data-skin="flat"] .tf-card,
.jx-testimonial-wrapper[data-skin="flat"] .tf-card {
  background: color-mix(in srgb, var(--tf-accent) 5%, var(--tf-card-bg));
  border: 0 !important;
  border-radius: var(--tf-card-radius);
  box-shadow: none !important;
}

/* Inset stripe respects card radius; card_stripe ::before handles themed stripes */
.tf-stage [data-skin="flat"]:not([data-card-stripe="top"]):not([data-card-stripe="left"]):not([data-card-stripe="gradient"]) .tf-card,
.jx-testimonial-wrapper[data-skin="flat"]:not([data-card-stripe="top"]):not([data-card-stripe="left"]):not([data-card-stripe="gradient"]) .tf-card {
  box-shadow: inset 0 3.5px 0 var(--tf-accent) !important;
}

.tf-stage [data-skin="flat"] .tf-card:hover,
.jx-testimonial-wrapper[data-skin="flat"] .tf-card:hover {
  background: color-mix(in srgb, var(--tf-accent) 8%, var(--tf-card-bg));
  box-shadow: none !important;
}

.tf-stage [data-skin="flat"]:not([data-card-stripe="top"]):not([data-card-stripe="left"]):not([data-card-stripe="gradient"]) .tf-card:hover,
.jx-testimonial-wrapper[data-skin="flat"]:not([data-card-stripe="top"]):not([data-card-stripe="left"]):not([data-card-stripe="gradient"]) .tf-card:hover {
  box-shadow: inset 0 3.5px 0 var(--tf-accent) !important;
}

/* 3. Bordered Skin */
.tf-stage [data-skin="bordered"],
.jx-testimonial-wrapper[data-skin="bordered"] {
  --tf-card-shadow: none;
  --tf-card-border-width: 2px;
}

.tf-stage [data-skin="bordered"] .tf-card,
.jx-testimonial-wrapper[data-skin="bordered"] .tf-card {
  background: var(--tf-card-bg);
  border-width: max(2px, var(--tf-card-border-width));
  border-style: var(--tf-card-border-style, solid) !important;
  border-color: var(--tf-card-border) !important;
  border-radius: var(--tf-card-radius);
  box-shadow: none !important;
}

.tf-stage [data-skin="bordered"] .tf-card:hover,
.jx-testimonial-wrapper[data-skin="bordered"] .tf-card:hover {
  border-color: var(--tf-accent) !important;
  box-shadow: none !important;
}

/* 4. Glass Skin */
.tf-stage [data-skin="glass"],
.jx-testimonial-wrapper[data-skin="glass"] {
  --tf-card-blur: 16px;
}

.tf-stage [data-skin="glass"] .tf-card,
.jx-testimonial-wrapper[data-skin="glass"] .tf-card {
  background: color-mix(in srgb, var(--tf-card-bg) 65%, transparent) !important;
  backdrop-filter: blur(16px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(160%) !important;
  border-width: 1px;
  border-style: var(--tf-card-border-style, solid) !important;
  border-color: color-mix(in srgb, var(--tf-accent) 25%, rgba(255, 255, 255, 0.45)) !important;
  box-shadow: 0 10px 32px 0 rgba(0, 0, 0, 0.08), inset 0 1px 0 0 rgba(255, 255, 255, 0.45) !important;
  border-radius: var(--tf-card-radius);
}

.tf-stage [data-skin="glass"] .tf-card:hover,
.jx-testimonial-wrapper[data-skin="glass"] .tf-card:hover {
  background: color-mix(in srgb, var(--tf-card-bg) 75%, transparent) !important;
  border-color: color-mix(in srgb, var(--tf-accent) 45%, rgba(255, 255, 255, 0.6)) !important;
  box-shadow: 0 16px 40px 0 color-mix(in srgb, var(--tf-accent) 15%, rgba(0, 0, 0, 0.12)), inset 0 1px 0 0 rgba(255, 255, 255, 0.6) !important;
}

/* 5. Lift Skin */
.tf-stage [data-skin="lift"] .tf-card,
.jx-testimonial-wrapper[data-skin="lift"] .tf-card {
  background: var(--tf-card-bg);
  border-width: var(--tf-card-border-width);
  border-style: var(--tf-card-border-style, solid);
  border-color: var(--tf-card-border);
  border-radius: var(--tf-card-radius);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -2px rgba(0, 0, 0, 0.06) !important;
  --tf-hover-y: -8px;
  --tf-hover-shadow: 0 24px 48px -6px color-mix(in srgb, var(--tf-accent) 22%, rgba(0, 0, 0, 0.18));
}

/* 6. Editorial Skin */
.tf-stage [data-skin="editorial"],
.jx-testimonial-wrapper[data-skin="editorial"] {
  --tf-card-shadow: none;
}

.tf-stage [data-skin="editorial"] .tf-card,
.jx-testimonial-wrapper[data-skin="editorial"] .tf-card {
  background: var(--tf-card-bg);
  border: 1px solid var(--tf-card-border) !important;
  border-left: 5px solid var(--tf-accent) !important;
  border-radius: min(4px, var(--tf-card-radius)) !important;
  padding: var(--tf-card-padding);
  box-shadow: none !important;
}

.tf-stage [data-skin="editorial"] .tf-card:hover,
.jx-testimonial-wrapper[data-skin="editorial"] .tf-card:hover {
  box-shadow: none !important;
  border-color: var(--tf-card-border) !important;
  border-left-color: var(--tf-accent) !important;
}

.tf-stage [data-skin="editorial"] .tf-quote,
.jx-testimonial-wrapper[data-skin="editorial"] .tf-quote {
  font-style: italic;
}

.tf-stage [data-skin="editorial"] .tf-footer,
.jx-testimonial-wrapper[data-skin="editorial"] .tf-footer {
  border-top: 1px solid color-mix(in srgb, var(--tf-card-border) 60%, transparent);
  padding-top: 14px;
  margin-top: 16px;
}

.tf-stage [data-layout="list"][data-skin="editorial"] .tf-footer,
.tf-stage [data-layout="split"][data-skin="editorial"] .tf-footer,
.tf-stage [data-layout="compact"][data-skin="editorial"] .tf-footer,
.jx-testimonial-wrapper[data-layout="list"][data-skin="editorial"] .tf-footer,
.jx-testimonial-wrapper[data-layout="split"][data-skin="editorial"] .tf-footer,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="editorial"] .tf-footer {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="editorial"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="editorial"] .tf-footer {
  border-top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--tf-card-border) 60%, transparent);
  padding-top: 0;
  padding-bottom: 14px;
  margin-top: 0;
  margin-bottom: 16px;
}

.tf-stage [data-skin="editorial"] .tf-meta,
.jx-testimonial-wrapper[data-skin="editorial"] .tf-meta {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

/* 7. Ticket Skin */
.tf-stage [data-skin="ticket"] .tf-card,
.jx-testimonial-wrapper[data-skin="ticket"] .tf-card {
  background-color: var(--tf-card-bg);
  border-radius: var(--tf-card-radius);
  border: 2px dashed var(--tf-card-border) !important;
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, color-mix(in srgb, var(--tf-accent) 6%, transparent) 8px, color-mix(in srgb, var(--tf-accent) 6%, transparent) 9px);
  box-shadow: var(--tf-card-shadow);
}

.tf-stage [data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-skin="ticket"] .tf-footer {
  border-top: 1.5px dashed var(--tf-card-border);
  padding-top: 12px;
  margin-top: 14px;
}

.tf-stage [data-layout="list"][data-skin="ticket"] .tf-footer,
.tf-stage [data-layout="split"][data-skin="ticket"] .tf-footer,
.tf-stage [data-layout="compact"][data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-layout="list"][data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-layout="split"][data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-layout="compact"][data-skin="ticket"] .tf-footer {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.tf-stage [data-layout="centered"][data-centered-pos="top"][data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-layout="centered"][data-centered-pos="top"][data-skin="ticket"] .tf-footer {
  border-top: 0;
  border-bottom: 1.5px dashed var(--tf-card-border);
  padding-top: 0;
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 14px;
}

.tf-stage [data-layout="list"][data-skin="ticket"] .tf-footer,
.jx-testimonial-wrapper[data-layout="list"][data-skin="ticket"] .tf-footer {
  border-left: 1.5px dashed var(--tf-card-border);
}

.tf-stage [data-skin="ticket"] .tf-card:hover,
.jx-testimonial-wrapper[data-skin="ticket"] .tf-card:hover {
  border-color: var(--tf-accent) !important;
}

/* Visibility flags */
.tf-stage [data-show-photo="0"] .tf-avatar,
.jx-testimonial-wrapper[data-show-photo="0"] .tf-avatar { display: none; }

.tf-stage [data-show-stars="0"] .tf-stars,
.jx-testimonial-wrapper[data-show-stars="0"] .tf-stars { display: none; }

.tf-stage [data-show-company="0"] .tf-meta,
.jx-testimonial-wrapper[data-show-company="0"] .tf-meta { display: none; }

.tf-stage [data-show-date="0"] .tf-date,
.jx-testimonial-wrapper[data-show-date="0"] .tf-date { display: none; }

.tf-stage [data-show-location="0"] .is-location,
.jx-testimonial-wrapper[data-show-location="0"] .is-location { display: none; }

.tf-stage [data-show-reviewed="0"] .is-reviewed,
.jx-testimonial-wrapper[data-show-reviewed="0"] .is-reviewed { display: none; }

.tf-stage [data-show-video="0"] .is-video,
.jx-testimonial-wrapper[data-show-video="0"] .is-video { display: none; }

.tf-stage [data-show-mark="0"] .tf-mark,
.jx-testimonial-wrapper[data-show-mark="0"] .tf-mark { display: none; }

.tf-stage [data-show-featured="0"] .tf-card--featured::after,
.jx-testimonial-wrapper[data-show-featured="0"] .tf-card--featured::after { display: none; }

.tf-stage [data-show-author="0"] .tf-name,
.jx-testimonial-wrapper[data-show-author="0"] .tf-name { display: none; }

.tf-stage[data-show-photo="0"][data-show-author="0"][data-show-company="0"][data-show-date="0"][data-show-location="0"] .tf-footer,
.jx-testimonial-wrapper[data-show-photo="0"][data-show-author="0"][data-show-company="0"][data-show-date="0"][data-show-location="0"] .tf-footer,
.tf-stage [data-show-photo="0"][data-show-author="0"][data-show-company="0"][data-show-date="0"][data-show-location="0"] .tf-footer {
  display: none !important;
}

/* Form Component */
.tf-stage .tf-form,
.jx-testimonial-wrapper .tf-form {
  background: var(--tf-form-bg);
  border: 1px solid var(--tf-card-border);
  border-radius: calc(var(--tf-card-radius) * 0.8);
  padding: 22px;
  margin: 0 0 28px;
  box-shadow: var(--tf-card-shadow);
  position: relative;
  width: 100%;
  max-width: var(--tf-form-max, 100%);
  box-sizing: border-box;
}

.tf-stage[data-form-align="left"] .tf-form-slot .tf-form,
.jx-testimonial-wrapper[data-form-align="left"] .tf-form-slot .tf-form { margin-left: 0; margin-right: auto; }

.tf-stage[data-form-align="center"] .tf-form-slot .tf-form,
.jx-testimonial-wrapper[data-form-align="center"] .tf-form-slot .tf-form { margin-left: auto; margin-right: auto; }

.tf-stage[data-form-align="right"] .tf-form-slot .tf-form,
.jx-testimonial-wrapper[data-form-align="right"] .tf-form-slot .tf-form { margin-left: auto; margin-right: 0; }

.tf-stage .tf-form h3,
.jx-testimonial-wrapper .tf-form h3 { margin: 0 0 14px; font-size: 1.05rem; }

.tf-stage .tf-fields,
.jx-testimonial-wrapper .tf-fields { display: grid; gap: 14px; grid-template-columns: 1fr; }

.tf-stage[data-form-cols="2"] .tf-fields,
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields { grid-template-columns: 1fr 1fr; }

.tf-stage[data-form-cols="2"] .tf-fields [data-field="quote"],
.tf-stage[data-form-cols="2"] .tf-fields [data-field="rating"],
.tf-stage[data-form-cols="2"] .tf-fields [data-field="photo"],
.tf-stage[data-form-cols="2"] .tf-fields [data-field="consent"],
.tf-stage[data-form-cols="2"] .tf-fields [data-field="captcha"],
.tf-stage[data-form-cols="2"] .tf-fields > .tf-btn,
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="quote"],
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="rating"],
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="photo"],
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="consent"],
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="captcha"],
.jx-testimonial-wrapper[data-form-cols="2"] .tf-fields > .tf-btn { grid-column: 1 / -1; }

.tf-stage .tf-fields label,
.jx-testimonial-wrapper .tf-fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--tf-card-fg, #0f172a); }

.tf-stage .tf-req,
.jx-testimonial-wrapper .tf-req {
  color: #ef4444 !important;
  font-weight: 700 !important;
  margin-left: 2px !important;
}

.tf-stage .tf-fields input,
.tf-stage .tf-fields textarea,
.tf-stage .tf-fields select,
.jx-testimonial-wrapper .tf-fields input,
.jx-testimonial-wrapper .tf-fields textarea,
.jx-testimonial-wrapper .tf-fields select {
  width: 100%;
  border: 1px solid var(--tf-input-border, #cbd5e1) !important;
  background: var(--tf-input-bg, #ffffff) !important;
  color: var(--tf-card-fg, #0f172a) !important;
  border-radius: 10px;
  padding: var(--tf-input-pad-y, 10px) var(--tf-input-pad-x, 14px) !important;
  font: inherit;
  font-size: var(--tf-input-font, 13.5px) !important;
  line-height: 1.3 !important;
  box-sizing: border-box !important;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tf-stage .tf-fields input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]),
.tf-stage .tf-fields select,
.jx-testimonial-wrapper .tf-fields input:not([type="checkbox"]):not([type="file"]):not([type="hidden"]):not([type="radio"]),
.jx-testimonial-wrapper .tf-fields select {
  height: var(--tf-input-height, 44px) !important;
  min-height: var(--tf-input-height, 44px) !important;
  max-height: var(--tf-input-height, 44px) !important;
}

.tf-stage .tf-fields textarea,
.jx-testimonial-wrapper .tf-fields textarea {
  height: auto !important;
  max-height: none !important;
  min-height: var(--tf-input-textarea-min, 100px) !important;
  line-height: 1.45 !important;
  resize: vertical;
}

.tf-stage .tf-fields label,
.jx-testimonial-wrapper .tf-fields label {
  font-size: var(--tf-input-label, 13px);
}

.tf-stage .tf-fields input:focus,
.tf-stage .tf-fields textarea:focus,
.tf-stage .tf-fields select:focus,
.jx-testimonial-wrapper .tf-fields input:focus,
.jx-testimonial-wrapper .tf-fields textarea:focus,
.jx-testimonial-wrapper .tf-fields select:focus {
  outline: none;
  border-color: var(--tf-accent, #1819ed) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tf-accent, #1819ed) 18%, transparent) !important;
}

.jx-testimonial-wrapper .star-pick { display: flex; gap: 4px; }

.tf-stage .star-pick button,
.jx-testimonial-wrapper .star-pick button {
  width: 36px; height: 36px; border: 0; background: transparent;
  color: var(--tf-star-off); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  transition: transform 140ms ease, color 140ms ease;
  padding: 0;
}

.tf-stage .star-pick svg,
.jx-testimonial-wrapper .star-pick svg { width: 1.15em; height: 1.15em; fill: currentColor; display: block; }

.tf-stage .star-pick button:hover,
.tf-stage .star-pick:hover button.is-on,
.jx-testimonial-wrapper .star-pick button:hover,
.jx-testimonial-wrapper .star-pick:hover button.is-on { transform: scale(1.12); }

.tf-stage .star-pick button.is-on,
.jx-testimonial-wrapper .star-pick button.is-on { color: var(--tf-star-on); }

.tf-stage .tf-fields label.consent,
.tf-stage .consent,
.jx-testimonial-wrapper .tf-fields label.consent,
.jx-testimonial-wrapper .consent {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.tf-stage .tf-fields input[type="checkbox"],
.tf-stage .tf-fields input[type="radio"],
.jx-testimonial-wrapper .tf-fields input[type="checkbox"],
.jx-testimonial-wrapper .tf-fields input[type="radio"],
#jx-testimonial-wrapper input[type="checkbox"],
#jx-testimonial-wrapper input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--tf-accent, #1819ed) !important;
  color: var(--tf-accent, #1819ed) !important;
}

.tf-stage .tf-fields input[type="checkbox"]:focus-visible,
.tf-stage .tf-fields input[type="radio"]:focus-visible,
.jx-testimonial-wrapper .tf-fields input[type="checkbox"]:focus-visible,
.jx-testimonial-wrapper .tf-fields input[type="radio"]:focus-visible,
#jx-testimonial-wrapper input[type="checkbox"]:focus-visible,
#jx-testimonial-wrapper input[type="radio"]:focus-visible {
  outline: 2px solid var(--tf-accent, #1819ed) !important;
  outline-offset: 2px !important;
}

.tf-stage .tf-captcha,
.jx-testimonial-wrapper .tf-captcha {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tf-card-fg, #0f172a);
}

.tf-stage .tf-captcha-row,
.jx-testimonial-wrapper .tf-captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tf-stage .tf-captcha-image,
.jx-testimonial-wrapper .tf-captcha-image {
  display: grid;
  place-items: center;
  width: var(--tf-captcha-w, 220px);
  min-height: var(--tf-captcha-h, 70px);
  overflow: hidden;
  border: 1px solid var(--tf-input-border, #cbd5e1);
  border-radius: var(--tf-captcha-radius, 10px);
  background: var(--tf-captcha-bg, #f8fafc);
}

.tf-stage .tf-captcha-image img,
.jx-testimonial-wrapper .tf-captcha-image img {
  display: block;
  width: var(--tf-captcha-w, 220px);
  height: var(--tf-captcha-h, 70px);
}

.tf-stage .tf-captcha-loading,
.jx-testimonial-wrapper .tf-captcha-loading {
  padding: 8px;
  color: var(--tf-page-muted, #64748b);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
}

.tf-stage .tf-captcha-reload,
.jx-testimonial-wrapper .tf-captcha-reload {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  appearance: none;
  border: 1px solid var(--tf-input-border, #cbd5e1);
  border-radius: var(--tf-captcha-radius, 10px);
  background: var(--tf-input-bg, #fff);
  color: var(--tf-accent, #1819ed);
  cursor: pointer;
  text-decoration: none;
}

.tf-stage .tf-captcha-reload .fa-rotate-right,
.jx-testimonial-wrapper .tf-captcha-reload .fa-rotate-right {
  font-size: 16px;
  line-height: 1;
}

.tf-stage .tf-captcha-reload:hover,
.jx-testimonial-wrapper .tf-captcha-reload:hover {
  border-color: var(--tf-accent, #1819ed);
}

.tf-stage .tf-captcha-reload:disabled,
.jx-testimonial-wrapper .tf-captcha-reload:disabled {
  opacity: 0.55;
  cursor: wait;
}

.tf-stage .tf-captcha-reload:disabled .fa-rotate-right,
.jx-testimonial-wrapper .tf-captcha-reload:disabled .fa-rotate-right {
  animation: tf-captcha-spin 0.8s linear infinite;
}

@keyframes tf-captcha-spin {
  to { transform: rotate(360deg); }
}

.tf-stage .tf-captcha-answer,
.jx-testimonial-wrapper .tf-captcha-answer {
  max-width: var(--tf-captcha-w, 220px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tf-stage .tf-captcha-help,
.jx-testimonial-wrapper .tf-captcha-help {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--tf-card-muted, #64748b);
}

.tf-stage .tf-captcha--recaptcha,
.jx-testimonial-wrapper .tf-captcha--recaptcha {
  max-width: 100%;
}

.tf-stage .tf-recaptcha-host,
.jx-testimonial-wrapper .tf-recaptcha-host {
  max-width: 100%;
  overflow: hidden;
}

.tf-stage .tf-captcha--recaptcha .jx-tf-form__notice,
.jx-testimonial-wrapper .tf-captcha--recaptcha .jx-tf-form__notice {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(24, 25, 237, 0.08);
  font-weight: 500;
  color: var(--tf-card-fg, #0f172a);
}

.tf-stage .tf-photo-dropzone,
.jx-testimonial-wrapper .tf-photo-dropzone {
  position: relative;
  border: 2px dashed var(--tf-input-border, #cbd5e1);
  border-radius: 12px;
  padding: 18px 14px;
  background: color-mix(in srgb, var(--tf-input-bg, #ffffff) 85%, transparent);
  text-align: center;
  cursor: pointer;
  transition: all 160ms ease;
}

.tf-stage .tf-photo-dropzone:hover,
.tf-stage .tf-photo-dropzone.is-dragover,
.jx-testimonial-wrapper .tf-photo-dropzone:hover,
.jx-testimonial-wrapper .tf-photo-dropzone.is-dragover {
  border-color: var(--tf-accent, #1819ed);
  background: color-mix(in srgb, var(--tf-accent, #1819ed) 6%, var(--tf-input-bg, #ffffff));
}

.tf-stage .tf-photo-input,
.jx-testimonial-wrapper .tf-photo-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.tf-stage .tf-photo-drop-empty,
.jx-testimonial-wrapper .tf-photo-drop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}

.tf-stage .tf-photo-icon,
.jx-testimonial-wrapper .tf-photo-icon {
  font-size: 24px;
  color: var(--tf-accent, #1819ed);
  margin-bottom: 2px;
}

.tf-stage .tf-photo-text,
.jx-testimonial-wrapper .tf-photo-text {
  font-size: 13px;
  color: var(--tf-card-fg, #0f172a);
}

.tf-stage .tf-photo-hint,
.jx-testimonial-wrapper .tf-photo-hint {
  font-size: 11px;
  color: var(--tf-page-muted, #64748b);
}

.tf-stage .tf-photo-preview,
.jx-testimonial-wrapper .tf-photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
  background: var(--tf-input-bg, #ffffff);
  border: 1px solid var(--tf-input-border, #cbd5e1);
  border-radius: 10px;
  text-align: left;
  position: relative;
  z-index: 3;
}

.tf-stage .tf-photo-img,
.jx-testimonial-wrapper .tf-photo-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tf-card-border, #e2e8f0);
}

.tf-stage .tf-photo-meta,
.jx-testimonial-wrapper .tf-photo-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tf-stage .tf-photo-name,
.jx-testimonial-wrapper .tf-photo-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tf-card-fg, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tf-stage .tf-photo-size,
.jx-testimonial-wrapper .tf-photo-size {
  font-size: 11px;
  color: var(--tf-page-muted, #64748b);
}

.tf-stage .tf-photo-remove,
.jx-testimonial-wrapper .tf-photo-remove {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 11px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  transition: all 140ms ease !important;
}

.tf-stage .tf-photo-remove:hover,
.jx-testimonial-wrapper .tf-photo-remove:hover {
  background: #fee2e2 !important;
  color: #ef4444 !important;
}

.tf-stage .tf-photo-remove .fa-solid,
.jx-testimonial-wrapper .tf-photo-remove .fa-solid {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 11px !important;
}

.tf-stage .tf-hp,
.jx-testimonial-wrapper .tf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.tf-stage .tf-count,
.jx-testimonial-wrapper .tf-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--tf-page-muted);
  text-align: right;
}

.tf-stage .tf-form-status,
.jx-testimonial-wrapper .tf-form-status {
  display: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tf-stage .tf-form-status:not([hidden]),
.jx-testimonial-wrapper .tf-form-status:not([hidden]) {
  display: flex;
}

.tf-stage .tf-form-status-msg,
.jx-testimonial-wrapper .tf-form-status-msg {
  flex: 1;
}

.tf-stage .tf-form-status-close,
.jx-testimonial-wrapper .tf-form-status-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.65;
  cursor: pointer;
  padding: 4px;
  margin: -4px 0 -4px auto;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  transition: opacity 150ms ease, background-color 150ms ease;
}

.tf-stage .tf-form-status-close:hover,
.jx-testimonial-wrapper .tf-form-status-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}

.tf-stage .tf-form-status--ok,
.jx-testimonial-wrapper .tf-form-status--ok {
  background: color-mix(in srgb, #15803d 14%, var(--tf-form-bg));
  color: #166534;
}

.tf-stage .tf-form-status--err,
.jx-testimonial-wrapper .tf-form-status--err {
  background: color-mix(in srgb, #b91c1c 12%, var(--tf-form-bg));
  color: #991b1b;
}

.tf-stage .tf-form-element .is-invalid input,
.tf-stage .tf-form-element .is-invalid textarea,
.tf-stage .tf-form-element .is-invalid select,
.tf-stage .tf-form-element input.is-invalid,
.tf-stage .tf-form-element textarea.is-invalid,
.jx-testimonial-wrapper .tf-form-element .is-invalid input,
.jx-testimonial-wrapper .tf-form-element .is-invalid textarea,
.jx-testimonial-wrapper .tf-form-element .is-invalid select,
.jx-testimonial-wrapper .tf-form-element input.is-invalid,
.jx-testimonial-wrapper .tf-form-element textarea.is-invalid {
  border-color: #dc2626;
}

.tf-stage .tf-field-error,
.jx-testimonial-wrapper .tf-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
}

.tf-stage .tf-form .tf-btn,
.jx-testimonial-wrapper .tf-form .tf-btn { justify-self: start; width: auto; }

.tf-stage .tf-form.is-submitting .tf-fields > :not(.tf-btn),
.jx-testimonial-wrapper .tf-form.is-submitting .tf-fields > :not(.tf-btn) {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.tf-stage .tf-form.is-submitting [type="submit"].tf-btn .tf-btn-spinner,
.jx-testimonial-wrapper .tf-form.is-submitting [type="submit"].tf-btn .tf-btn-spinner {
  display: inline-block;
}

.tf-stage .tf-form.is-submitting [type="submit"].tf-btn .tf-btn-ico,
.jx-testimonial-wrapper .tf-form.is-submitting [type="submit"].tf-btn .tf-btn-ico {
  display: none;
}

.tf-stage[data-btn-align="left"] .tf-actions,
.jx-testimonial-wrapper[data-btn-align="left"] .tf-actions { justify-content: flex-start; }

.tf-stage[data-btn-align="center"] .tf-actions,
.jx-testimonial-wrapper[data-btn-align="center"] .tf-actions { justify-content: center; }

.tf-stage[data-btn-align="right"] .tf-actions,
.jx-testimonial-wrapper[data-btn-align="right"] .tf-actions { justify-content: flex-end; }

.tf-stage[data-btn-align="left"] .tf-actions .tf-btn,
.tf-stage[data-btn-align="center"] .tf-actions .tf-btn,
.tf-stage[data-btn-align="right"] .tf-actions .tf-btn,
.jx-testimonial-wrapper[data-btn-align="left"] .tf-actions .tf-btn,
.jx-testimonial-wrapper[data-btn-align="center"] .tf-actions .tf-btn,
.jx-testimonial-wrapper[data-btn-align="right"] .tf-actions .tf-btn { width: auto; }

.tf-stage[data-btn-align="full"] .tf-actions .tf-btn,
.jx-testimonial-wrapper[data-btn-align="full"] .tf-actions .tf-btn { width: 100%; }

.tf-stage[data-btn-submit-align="left"] .tf-form .tf-btn,
.jx-testimonial-wrapper[data-btn-submit-align="left"] .tf-form .tf-btn { justify-self: start; width: auto; }

.tf-stage[data-btn-submit-align="center"] .tf-form .tf-btn,
.jx-testimonial-wrapper[data-btn-submit-align="center"] .tf-form .tf-btn { justify-self: center; width: auto; }

.tf-stage[data-btn-submit-align="right"] .tf-form .tf-btn,
.jx-testimonial-wrapper[data-btn-submit-align="right"] .tf-form .tf-btn { justify-self: end; width: auto; }

.tf-stage[data-btn-submit-align="full"] .tf-form .tf-btn,
.jx-testimonial-wrapper[data-btn-submit-align="full"] .tf-form .tf-btn { justify-self: stretch; width: 100%; }

/* Button styles & variants */
.tf-stage [data-btn-style="solid"] .tf-btn,
.jx-testimonial-wrapper[data-btn-style="solid"] .tf-btn {
  background: var(--tf-btn-bg);
  color: var(--tf-btn-fg, #ffffff);
  border: 0;
}

.tf-stage [data-btn-style="outline"] .tf-btn,
.jx-testimonial-wrapper[data-btn-style="outline"] .tf-btn {
  background: transparent !important;
  color: var(--tf-btn-bg) !important;
  border: 2px solid var(--tf-btn-bg) !important;
  box-shadow: none !important;
}

.tf-stage [data-btn-style="outline"] .tf-btn:hover,
.jx-testimonial-wrapper[data-btn-style="outline"] .tf-btn:hover {
  background: var(--tf-btn-bg) !important;
  color: var(--tf-btn-fg, #ffffff) !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tf-btn-bg) 35%, transparent) !important;
}

.tf-stage [data-btn-style="soft"] .tf-btn,
.jx-testimonial-wrapper[data-btn-style="soft"] .tf-btn {
  background: color-mix(in srgb, var(--tf-btn-bg) 14%, transparent) !important;
  color: var(--tf-btn-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.tf-stage [data-btn-style="soft"] .tf-btn:hover,
.jx-testimonial-wrapper[data-btn-style="soft"] .tf-btn:hover {
  background: color-mix(in srgb, var(--tf-btn-bg) 25%, transparent) !important;
  color: var(--tf-btn-bg) !important;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--tf-btn-bg) 20%, transparent) !important;
}

.tf-stage [data-btn-style="gradient"] .tf-btn,
.jx-testimonial-wrapper[data-btn-style="gradient"] .tf-btn {
  background: linear-gradient(135deg, var(--tf-btn-bg) 0%, color-mix(in srgb, var(--tf-btn-bg) 60%, var(--tf-accent, #6366f1)) 100%) !important;
  color: var(--tf-btn-fg, #ffffff) !important;
  border: 0 !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--tf-btn-bg) 40%, transparent) !important;
}

/* Button Corner Radius */
.tf-stage [data-btn-radius="pill"] .tf-btn,
.jx-testimonial-wrapper[data-btn-radius="pill"] .tf-btn { border-radius: 9999px !important; }

.tf-stage [data-btn-radius="rounded"] .tf-btn,
.jx-testimonial-wrapper[data-btn-radius="rounded"] .tf-btn { border-radius: 10px !important; }

.tf-stage [data-btn-radius="square"] .tf-btn,
.jx-testimonial-wrapper[data-btn-radius="square"] .tf-btn { border-radius: 0px !important; }

/* Button Sizes */
.tf-stage [data-btn-size="sm"] .tf-btn,
.jx-testimonial-wrapper[data-btn-size="sm"] .tf-btn {
  padding: 8px 14px;
  font-size: 12.5px;
  min-height: 36px;
}

.tf-stage [data-btn-size="md"] .tf-btn,
.jx-testimonial-wrapper[data-btn-size="md"] .tf-btn {
  padding: 12px 18px;
  font-size: 13.5px;
  min-height: 44px;
}

.tf-stage [data-btn-size="lg"] .tf-btn,
.jx-testimonial-wrapper[data-btn-size="lg"] .tf-btn {
  padding: 15px 24px;
  font-size: 15px;
  min-height: 50px;
  font-weight: 700;
}

.tf-stage .tf-open-btn-ico,
.jx-testimonial-wrapper .tf-open-btn-ico {
  font-size: 0.95em;
  margin-right: 6px;
}

/* Input styles & variants */
.tf-stage [data-input-style="outline"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-style="outline"] .tf-fields textarea,
.tf-stage [data-input-style="outline"] .tf-fields select,
.jx-testimonial-wrapper[data-input-style="outline"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-style="outline"] .tf-fields textarea,
.jx-testimonial-wrapper[data-input-style="outline"] .tf-fields select {
  border: 1.5px solid var(--tf-input-border, #cbd5e1) !important;
  background: var(--tf-input-bg, #ffffff) !important;
}

.tf-stage [data-input-style="filled"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-style="filled"] .tf-fields textarea,
.tf-stage [data-input-style="filled"] .tf-fields select,
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields textarea,
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields select {
  border: 1.5px solid transparent !important;
  background: color-mix(in srgb, var(--tf-card-fg, #0f172a) 6%, var(--tf-form-bg, #ffffff)) !important;
}

.tf-stage [data-input-style="filled"] .tf-fields input:focus,
.tf-stage [data-input-style="filled"] .tf-fields textarea:focus,
.tf-stage [data-input-style="filled"] .tf-fields select:focus,
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields input:focus,
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields textarea:focus,
.jx-testimonial-wrapper[data-input-style="filled"] .tf-fields select:focus {
  border-color: var(--tf-accent, #1819ed) !important;
  background: var(--tf-input-bg, #ffffff) !important;
}

.tf-stage [data-input-style="underline"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-style="underline"] .tf-fields textarea,
.tf-stage [data-input-style="underline"] .tf-fields select,
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields textarea,
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields select {
  border-top: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 2px solid var(--tf-input-border, #cbd5e1) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.tf-stage [data-input-style="underline"] .tf-fields input:focus,
.tf-stage [data-input-style="underline"] .tf-fields textarea:focus,
.tf-stage [data-input-style="underline"] .tf-fields select:focus,
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields input:focus,
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields textarea:focus,
.jx-testimonial-wrapper[data-input-style="underline"] .tf-fields select:focus {
  border-bottom-color: var(--tf-accent, #1819ed) !important;
  box-shadow: none !important;
}

.tf-stage [data-input-style="glass"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-style="glass"] .tf-fields textarea,
.tf-stage [data-input-style="glass"] .tf-fields select,
.jx-testimonial-wrapper[data-input-style="glass"] .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-style="glass"] .tf-fields textarea,
.jx-testimonial-wrapper[data-input-style="glass"] .tf-fields select {
  border: 1.5px solid color-mix(in srgb, var(--tf-card-border, #cbd5e1) 75%, transparent) !important;
  background: color-mix(in srgb, var(--tf-input-bg, #ffffff) 65%, transparent) !important;
  backdrop-filter: blur(8px);
}

/* Input Corner Radius */
.tf-stage [data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields select,
.jx-testimonial-wrapper[data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields select {
  border-radius: 9999px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.tf-stage [data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields textarea,
.tf-stage [data-input-radius="pill"]:not([data-input-style="underline"]) .tf-photo-dropzone,
.jx-testimonial-wrapper[data-input-radius="pill"]:not([data-input-style="underline"]) .tf-fields textarea,
.jx-testimonial-wrapper[data-input-radius="pill"]:not([data-input-style="underline"]) .tf-photo-dropzone {
  border-radius: 18px !important;
}

.tf-stage [data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields textarea,
.tf-stage [data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields select,
.tf-stage [data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-photo-dropzone,
.jx-testimonial-wrapper[data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields textarea,
.jx-testimonial-wrapper[data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-fields select,
.jx-testimonial-wrapper[data-input-radius="rounded"]:not([data-input-style="underline"]) .tf-photo-dropzone {
  border-radius: 10px !important;
}

.tf-stage [data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.tf-stage [data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields textarea,
.tf-stage [data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields select,
.tf-stage [data-input-radius="square"]:not([data-input-style="underline"]) .tf-photo-dropzone,
.jx-testimonial-wrapper[data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields input:not([type="checkbox"]):not([type="file"]),
.jx-testimonial-wrapper[data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields textarea,
.jx-testimonial-wrapper[data-input-radius="square"]:not([data-input-style="underline"]) .tf-fields select,
.jx-testimonial-wrapper[data-input-radius="square"]:not([data-input-style="underline"]) .tf-photo-dropzone {
  border-radius: 0px !important;
}

/* Input Sizes */
.tf-stage[data-input-size="sm"],
.jx-testimonial-wrapper[data-input-size="sm"] {
  --tf-input-height: 36px;
  --tf-input-pad-y: 6px;
  --tf-input-pad-x: 10px;
  --tf-input-font: 12.5px;
  --tf-input-label: 12px;
  --tf-input-textarea-min: 80px;
}

.tf-stage[data-input-size="md"],
.jx-testimonial-wrapper[data-input-size="md"] {
  --tf-input-height: 44px;
  --tf-input-pad-y: 10px;
  --tf-input-pad-x: 14px;
  --tf-input-font: 13.5px;
  --tf-input-label: 13px;
  --tf-input-textarea-min: 100px;
}

.tf-stage[data-input-size="lg"],
.jx-testimonial-wrapper[data-input-size="lg"] {
  --tf-input-height: 52px;
  --tf-input-pad-y: 13px;
  --tf-input-pad-x: 16px;
  --tf-input-font: 16px;
  --tf-input-label: 14px;
  --tf-input-textarea-min: 128px;
}

.tf-stage[data-input-size="sm"] .tf-fields label,
.jx-testimonial-wrapper[data-input-size="sm"] .tf-fields label { gap: 4px; }

.tf-stage[data-input-size="md"] .tf-fields label,
.jx-testimonial-wrapper[data-input-size="md"] .tf-fields label { gap: 6px; }

.tf-stage[data-input-size="lg"] .tf-fields label,
.jx-testimonial-wrapper[data-input-size="lg"] .tf-fields label { gap: 7px; }

/* Form Display Mode Handlers */
.tf-stage [data-form="hide"] .tf-actions,
.tf-stage [data-form="hide"] .tf-form,
.jx-testimonial-wrapper[data-form="hide"] .tf-actions,
.jx-testimonial-wrapper[data-form="hide"] .tf-form { display: none; }

.tf-stage [data-form="toggle"] .tf-form.is-closed,
.jx-testimonial-wrapper[data-form="toggle"] .tf-form.is-closed { display: none; }

.tf-stage [data-form="modal"] .tf-form-slot .tf-form,
.jx-testimonial-wrapper[data-form="modal"] .tf-form-slot .tf-form { display: none; }

.tf-stage [data-form="fixed"] .tf-form.is-closed,
.jx-testimonial-wrapper[data-form="fixed"] .tf-form.is-closed { display: block; }

.tf-stage [data-form="fixed"] .tf-actions,
.jx-testimonial-wrapper[data-form="fixed"] .tf-actions { display: none; }

.tf-stage [data-form-pos="bottom"] .tf-form-slot--top,
.jx-testimonial-wrapper[data-form-pos="bottom"] .tf-form-slot--top { display: none; }

.tf-stage [data-form-pos="top"] .tf-form-slot--bottom,
.jx-testimonial-wrapper[data-form-pos="top"] .tf-form-slot--bottom { display: none; }

.tf-stage .tf-form-slot--bottom,
.jx-testimonial-wrapper .tf-form-slot--bottom {
  margin-top: 36px;
  clear: both;
}

.tf-stage .tf-form-slot--bottom .tf-form,
.jx-testimonial-wrapper .tf-form-slot--bottom .tf-form {
  margin-top: 0;
  margin-bottom: 0;
}

.tf-stage [data-form="toggle"][data-form-pos="bottom"] .tf-actions,
.jx-testimonial-wrapper[data-form="toggle"][data-form-pos="bottom"] .tf-actions {
  margin-top: 32px;
  margin-bottom: 12px;
}

/* Pagination */
.tf-stage .tf-pag,
.jx-testimonial-wrapper .tf-pag {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.tf-stage .tf-pag[hidden],
.jx-testimonial-wrapper .tf-pag[hidden],
.tf-stage .tf-pag[data-mode="loadmore"][data-complete="1"],
.jx-testimonial-wrapper .tf-pag[data-mode="loadmore"][data-complete="1"],
.tf-stage .tf-pag[data-mode="scroll"][data-complete="1"],
.jx-testimonial-wrapper .tf-pag[data-mode="scroll"][data-complete="1"] { display: none; }

.tf-stage .tf-empty,
.jx-testimonial-wrapper .tf-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--tf-card-border);
  border-radius: var(--tf-card-radius);
  background: color-mix(in srgb, var(--tf-card-bg) 70%, transparent);
}

.tf-stage .tf-empty p,
.jx-testimonial-wrapper .tf-empty p {
  margin: 0 0 16px;
  color: var(--tf-page-muted);
}

.tf-stage .tf-empty[hidden],
.jx-testimonial-wrapper .tf-empty[hidden] { display: none; }

.tf-stage .tf-pag button,
.jx-testimonial-wrapper .tf-pag button {
  min-width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: var(--tf-pag-bg); color: var(--tf-pag-fg); cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, filter 160ms ease;
  font-weight: 600;
  font-size: 14px;
}

.tf-stage .tf-pag button:hover,
.jx-testimonial-wrapper .tf-pag button:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
}

.tf-stage .tf-pag button:disabled,
.jx-testimonial-wrapper .tf-pag button:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  pointer-events: none;
}

.tf-stage .tf-pag button.is-on,
.jx-testimonial-wrapper .tf-pag button.is-on { background: var(--tf-pag-active); color: #fff; }

.tf-stage .tf-pag button.tf-loadmore-btn,
.jx-testimonial-wrapper .tf-pag button.tf-loadmore-btn {
  min-width: 170px;
  height: 42px;
  padding: 0 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  background: var(--tf-pag-bg);
  color: var(--tf-pag-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.tf-stage .tf-pag button.tf-loadmore-btn:hover,
.jx-testimonial-wrapper .tf-pag button.tf-loadmore-btn:hover {
  background: var(--tf-pag-active);
  transform: translateY(-2px);
}

.tf-stage .tf-pag .tf-scroll-status,
.jx-testimonial-wrapper .tf-pag .tf-scroll-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--tf-page-muted);
  padding: 10px 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--tf-card-bg) 60%, transparent);
  border: 1px dashed var(--tf-card-border);
  cursor: pointer;
  user-select: none;
  transition: background 160ms ease, border-color 160ms ease;
}

.tf-stage .tf-pag .tf-scroll-status:hover,
.jx-testimonial-wrapper .tf-pag .tf-scroll-status:hover {
  background: var(--tf-card-bg);
  border-color: var(--tf-accent);
  color: var(--tf-card-fg);
}

.tf-stage .tf-pag .tf-scroll-status .fa-spinner,
.jx-testimonial-wrapper .tf-pag .tf-scroll-status .fa-spinner {
  color: var(--tf-accent);
}

/* Modal Dialog */
dialog.tf-modal {
  width: min(var(--tf-form-max, 540px), 94vw);
  max-height: min(85vh, 700px);
  border: 0;
  border-radius: 20px;
  padding: 0;
  margin: auto;
  inset: 0;
  position: fixed;
  background: var(--tf-card-bg, #ffffff);
  color: var(--tf-card-fg, #0f172a);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 60px rgba(15, 23, 42, 0.28),
    0 8px 20px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  z-index: 99999;
}

dialog.tf-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}

.tf-form-modal-wrap {
  display: flex;
  flex-direction: column;
  max-height: min(85vh, 700px);
  overflow: hidden;
  background: var(--tf-card-bg, #ffffff);
}

.tf-form-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid color-mix(in srgb, var(--tf-card-border, #e2e8f0) 80%, transparent);
  background: var(--tf-card-bg, #ffffff);
}

.tf-form-modal__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-accent);
  margin-bottom: 2px;
}

.tf-form-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--tf-card-fg, #0f172a);
}

.tf-form-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.tf-form-modal__close:hover {
  background: color-mix(in srgb, var(--tf-accent) 15%, transparent);
  color: var(--tf-accent);
}

.tf-form-modal__body {
  display: block !important;
  overflow-y: auto;
  padding: 20px 24px 24px !important;
  box-sizing: border-box;
}

.tf-modal .tf-form,
.tf-stage .tf-modal .tf-form,
.jx-testimonial-wrapper .tf-modal .tf-form,
dialog.tf-modal .tf-form {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
  width: 100% !important;
  max-width: 100% !important;
}

.tf-modal .tf-form h3 {
  display: none !important;
}

.tf-modal .tf-fields {
  display: grid;
  gap: 14px;
}

/* Readmore modal */
dialog.tf-readmore-modal {
  width: min(560px, 94vw);
  max-height: min(78vh, 640px);
  border: 0;
  border-radius: 20px;
  padding: 0;
  margin: auto;
  inset: 0;
  position: fixed;
  background: #fff;
  color: #0f172a;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.6) inset,
    0 24px 48px rgba(15, 23, 42, 0.16),
    0 8px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  z-index: 99999;
}

dialog.tf-readmore-modal::backdrop {
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.tf-rm { display: flex; flex-direction: column; max-height: min(78vh, 640px); overflow: hidden; }

.tf-rm__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}

.tf-rm__eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tf-accent);
  margin-bottom: 4px;
}

.tf-rm__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.tf-rm__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.tf-rm__close:hover {
  background: color-mix(in srgb, var(--tf-accent) 12%, transparent);
  color: var(--tf-accent);
}

.tf-rm__body {
  overflow-y: auto;
  padding: 16px 24px 24px;
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}

.tf-rm__body p { margin: 0; }

/* Responsive Adjustments */
@media (max-width: 980px) {
  .tf-stage .tf-grid,
  .jx-testimonial-wrapper .tf-grid {
    grid-template-columns: repeat(var(--tf-columns-tablet, 2), minmax(0, 1fr));
  }

  .tf-stage [data-layout="masonry"] .tf-grid,
  .jx-testimonial-wrapper[data-layout="masonry"] .tf-grid {
    column-count: var(--tf-columns-tablet, 2);
  }

  .tf-stage [data-layout="list"] .tf-card,
  .jx-testimonial-wrapper[data-layout="list"] .tf-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .tf-stage [data-layout="list"] .tf-footer,
  .jx-testimonial-wrapper[data-layout="list"] .tf-footer {
    border-left: 0;
    padding-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--tf-card-border);
  }

  .tf-stage [data-layout="list"][data-skin="bubble"] .tf-arrow,
  .jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-arrow {
    position: static;
    margin: -1px 0 0 28px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
    border-bottom: 0;
    border-right-color: transparent;
  }

  .tf-stage [data-layout="list"][data-skin="bubble"] .tf-footer,
  .jx-testimonial-wrapper[data-layout="list"][data-skin="bubble"] .tf-footer {
    border-top: 0;
    padding-top: 8px;
    padding-left: 10px;
  }

  .tf-stage [data-layout="compact"] .tf-card,
  .jx-testimonial-wrapper[data-layout="compact"] .tf-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tf-stage [data-layout="compact"] .tf-byline,
  .jx-testimonial-wrapper[data-layout="compact"] .tf-byline {
    grid-column: 2;
    grid-row: 2;
  }

  .tf-stage [data-layout="split"] .tf-card,
  .jx-testimonial-wrapper[data-layout="split"] .tf-card {
    flex-direction: column;
    align-items: stretch;
  }

  .tf-stage [data-layout="split"] .tf-footer,
  .jx-testimonial-wrapper[data-layout="split"] .tf-footer {
    flex-direction: row;
    width: auto;
    flex: none;
    text-align: left;
    justify-content: flex-start;
  }

  .tf-stage [data-layout="split"][data-skin="bubble"] .tf-arrow,
  .jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-arrow {
    position: static;
    margin: -1px 0 0 28px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid color-mix(in srgb, var(--tf-accent) 6%, var(--tf-card-bg));
    border-bottom: 0;
    border-right-color: transparent;
  }

  .tf-stage [data-layout="split"][data-skin="bubble"] .tf-footer,
  .jx-testimonial-wrapper[data-layout="split"][data-skin="bubble"] .tf-footer {
    padding-left: 10px;
    margin-top: 8px;
  }

  .tf-stage [data-layout="magazine"] .tf-grid,
  .jx-testimonial-wrapper[data-layout="magazine"] .tf-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tf-stage[data-form-cols="2"] .tf-fields,
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields {
    grid-template-columns: 1fr;
  }

  .tf-stage[data-form-cols="2"] .tf-fields [data-field="quote"],
  .tf-stage[data-form-cols="2"] .tf-fields [data-field="rating"],
  .tf-stage[data-form-cols="2"] .tf-fields [data-field="photo"],
  .tf-stage[data-form-cols="2"] .tf-fields [data-field="consent"],
  .tf-stage[data-form-cols="2"] .tf-fields [data-field="captcha"],
  .tf-stage[data-form-cols="2"] .tf-fields > .tf-btn,
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="quote"],
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="rating"],
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="photo"],
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="consent"],
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields [data-field="captcha"],
  .jx-testimonial-wrapper[data-form-cols="2"] .tf-fields > .tf-btn { grid-column: auto; }

  .tf-stage .tf-grid,
  .jx-testimonial-wrapper .tf-grid {
    grid-template-columns: repeat(var(--tf-columns-mobile, 1), minmax(0, 1fr));
  }

  .tf-stage [data-layout="masonry"] .tf-grid,
  .jx-testimonial-wrapper[data-layout="masonry"] .tf-grid {
    column-count: var(--tf-columns-mobile, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tf-stage *,
  .jx-testimonial-wrapper * { transition: none !important; }

  .tf-stage .tf-card:hover,
  .tf-stage .tf-btn:hover,
  .tf-stage .tf-pag button:hover,
  .jx-testimonial-wrapper .tf-card:hover,
  .jx-testimonial-wrapper .tf-btn:hover,
  .jx-testimonial-wrapper .tf-pag button:hover {
    transform: none;
  }

  .tf-stage .tf-card:hover .tf-avatar img,
  .jx-testimonial-wrapper .tf-card:hover .tf-avatar img { transform: none; }

  .tf-stage .tf-btn-spinner,
  .jx-testimonial-wrapper .tf-btn-spinner {
    animation: none;
    border-right-color: currentColor;
  }
}
