/* DiviPerfect Testimonials. Text defaults use :where() so Divi's own font settings always win. */
.dp-testi {
  --dpt-speed: .7s;
  --dpt-ease: cubic-bezier(.22, .8, .2, 1);
  --dpt-radius: 18px;
  --dpt-gap: 24px;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, 0.6));
  position: relative;
  outline: none;
}
.dp-testi:focus-visible { box-shadow: 0 0 0 2px currentColor; }
/* Only the testimonials take the style text colour; the intro follows the theme (or Divi font settings). */
.dp-t-stage, .dp-t-ui { color: var(--dpt-text); }
.dp-testi *, .dp-testi *::before, .dp-testi *::after { box-sizing: border-box; }

/* Headlines */
.dp-t-head { margin: 0 auto 40px; padding: 0 16px; max-width: 760px; text-align: center; }
.dp-testi[data-dpt-head="off"] .dp-t-head { display: none; }
:where(.dp-testi) .dp-t-topic {
  display: block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
:where(.dp-testi) .dp-t-headline {
  margin: 0;
  padding: 0;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 700;
}

/* Testimonial parts. Every style uses the same markup and switches parts on below. */
.dp-testi .dp-testimonial { margin: 0; padding: 0; }
.dp-t-inner { position: relative; }
.dp-t-photo, .dp-t-top, .dp-t-logo, .dp-t-mark, .dp-t-title, .dp-t-label, .dp-t-avatar, .dp-t-result, .dp-t-more, .dp-t-rating, .dp-t-plus { display: none; }
.dp-t-body { position: relative; }
.dp-t-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dp-t-img-empty { background: linear-gradient(135deg, #f1f1f0, color-mix(in srgb, var(--dp-g-accent, #2c59fa) 35%, #f1f1f0)); }
.dp-t-who { display: flex; flex-direction: column; min-width: 0; }
.dp-testi :where(.dp-t-quote, .dp-t-title, .dp-t-name, .dp-t-role, .dp-t-label) { margin: 0; padding: 0; }
.dp-testi :where(.dp-t-quote, .dp-t-title, .dp-t-name, .dp-t-role, .dp-t-label, .dp-t-result-a, .dp-t-result-b):empty { display: none; }
.dp-t-result:not(:has(.dp-t-num:not(:empty))) { display: none !important; }
:where(.dp-testi) .dp-t-name { font-weight: 600; }
:where(.dp-testi) .dp-t-role { color: var(--dpt-muted); }

/* Star rating: five dim stars with a coloured layer clipped to the score. */
.dp-t-stars { position: relative; display: inline-block; font-size: 15px; line-height: 1; letter-spacing: 2px; white-space: nowrap; }
.dp-t-stars::before { content: "\2605\2605\2605\2605\2605"; color: currentColor; opacity: .22; }
.dp-t-stars::after { content: "\2605\2605\2605\2605\2605"; position: absolute; left: 0; top: 0; width: var(--dpt-r, 100%); overflow: hidden; color: var(--dpt-star, var(--dp-g-accent, #2c59fa)); }

/* Arrows */
.dp-t-nav { display: flex; gap: 10px; }
.dp-t-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s, opacity .2s, background-color .2s;
}
.dp-t-arrow svg { width: 18px; height: 18px; }
.dp-t-prev svg { transform: scaleX(-1); }
.dp-t-arrow:active { transform: scale(.94); }

/* ================================================================ Story Spotlight */
.dp-testi[data-dpt-style="breeze"] {
  --dpt-card-w: 860px;
  --dpt-photo-w: 40%;
  --dpt-card: #f1f1f0;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, 0.6));
  --dpt-hl: color-mix(in srgb, var(--dp-g-accent, #2c59fa) 30%, transparent);
  --dpt-label-bg: rgba(255, 255, 255, .9);
  --dpt-btn: #0c0c0e;
  --dpt-btn-icon: #fff;
  overflow: hidden;
  padding: 10px 0 20px;
  touch-action: pan-y;
}
[data-dpt-style="breeze"] .dp-t-stage { display: grid; justify-items: center; align-items: center; }
[data-dpt-style="breeze"] .dp-testimonial {
  grid-area: 1 / 1;
  width: var(--dpt-card-w);
  max-width: calc(100% - 48px);
  transition: transform var(--dpt-speed) var(--dpt-ease), opacity var(--dpt-speed) var(--dpt-ease), filter var(--dpt-speed) var(--dpt-ease);
  will-change: transform;
  cursor: pointer;
}
[data-dpt-style="breeze"] .dp-testimonial.is-active { cursor: grab; }
:where([data-dpt-style="breeze"]) .dp-t-inner {
  display: grid;
  grid-template-columns: var(--dpt-photo-w) minmax(0, 1fr);
  gap: 36px;
  padding: 16px;
  border-radius: var(--dpt-radius);
  background: var(--dpt-item-color, var(--dpt-card));
  box-shadow: var(--dp-sh, 0 30px 60px -30px rgba(12, 12, 14, .35));
}
[data-dpt-style="breeze"] .dp-t-photo {
  display: block;
  position: relative;
  min-height: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: max(0px, calc(var(--dpt-radius) - 8px));
}
[data-dpt-style="breeze"] .dp-t-img { position: absolute; inset: 0; pointer-events: none; }
:where([data-dpt-style="breeze"]) .dp-t-label {
  display: inline-block;
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--dpt-label-bg);
  color: var(--dpt-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1;
  text-transform: uppercase;
}
[data-dpt-style="breeze"] .dp-t-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 24px 20px 0; }
:where([data-dpt-style="breeze"]) .dp-t-quote { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
[data-dpt-style="breeze"] .dp-t-quote::before { content: "\201C"; }
[data-dpt-style="breeze"] .dp-t-quote::after { content: "\201D"; }
[data-dpt-style="breeze"] .dp-t-author { margin-top: 18px; }
:where([data-dpt-style="breeze"]) .dp-t-name { font-size: 13px; }
:where([data-dpt-style="breeze"]) .dp-t-role { font-size: 12px; }
:where([data-dpt-style="breeze"]) .dp-t-result {
  display: block;
  isolation: isolate;
  margin: 32px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--dpt-muted);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
[data-dpt-style="breeze"] .dp-t-num { position: relative; display: inline-block; }
[data-dpt-style="breeze"] .dp-t-num::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.12em;
  right: -.12em;
  bottom: .06em;
  height: .48em;
  border-radius: .12em;
  background: var(--dpt-hl);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .6s var(--dpt-ease) .25s;
}
[data-dpt-style="breeze"] .is-active .dp-t-num::after { transform: scaleX(1); }
:where([data-dpt-style="breeze"]) .dp-t-more {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 18px;
  color: var(--dpt-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
[data-dpt-style="breeze"] .dp-t-ui { display: flex; justify-content: center; margin-top: 28px; }
[data-dpt-style="breeze"] .dp-t-arrow { background: var(--dpt-btn); color: var(--dpt-btn-icon); }
[data-dpt-style="breeze"] .dp-t-prev { opacity: .85; }
@media (max-width: 767px) {
  :where([data-dpt-style="breeze"]) .dp-t-inner { grid-template-columns: 1fr; gap: 18px; padding: 12px; }
  [data-dpt-style="breeze"] .dp-t-photo { aspect-ratio: 16 / 11; min-height: 0; }
  [data-dpt-style="breeze"] .dp-t-body { padding: 0 6px 8px; }
  [data-dpt-style="breeze"] .dp-t-result { margin-top: 22px; padding-top: 16px; }
}

/* ================================================================ Split Reel */
.dp-testi[data-dpt-style="reel"] {
  --dpt-max-w: 1080px;
  --dpt-pad: 40px;
  --dpt-split: 40%;
  --dpt-panel: #f1f1f0;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, 0.6));
  --dpt-arrow-border: rgba(0, 0, 0, .14);
  display: grid;
  grid-template-columns: var(--dpt-split) minmax(0, 1fr);
  grid-template-areas: "head stage" "ui stage";
  grid-template-rows: auto 1fr;
  column-gap: 48px;
  row-gap: 28px;
  max-width: var(--dpt-max-w);
  margin: 0 auto;
  padding: var(--dpt-pad);
  border-radius: var(--dpt-radius);
  background: var(--dpt-panel);
  touch-action: pan-y;
}
[data-dpt-style="reel"] .dp-t-head { grid-area: head; margin: 0; padding: 0; max-width: 36ch; text-align: left; }
:where([data-dpt-style="reel"]) .dp-t-topic { font-size: 11px; margin-bottom: 14px; }
:where([data-dpt-style="reel"]) .dp-t-headline { font-size: 20px; font-weight: 400; line-height: 1.4; }
[data-dpt-style="reel"] .dp-t-ui { grid-area: ui; align-self: end; }
[data-dpt-style="reel"] .dp-t-arrow { width: 34px; height: 34px; background: transparent; color: var(--dpt-text); box-shadow: inset 0 0 0 1px var(--dpt-arrow-border); }
[data-dpt-style="reel"] .dp-t-arrow svg { width: 15px; height: 15px; }
[data-dpt-style="reel"] .dp-t-arrow:hover { background: rgba(0, 0, 0, .05); }
[data-dpt-style="reel"] .dp-t-stage { grid-area: stage; display: grid; }
[data-dpt-style="reel"] .dp-testimonial, [data-dpt-style="rotation"] .dp-testimonial { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
[data-dpt-style="reel"] .dp-testimonial.is-active, [data-dpt-style="rotation"] .dp-testimonial.is-active { visibility: visible; opacity: 1; z-index: 2; }
[data-dpt-style="reel"] .dp-testimonial.is-leaving, [data-dpt-style="rotation"] .dp-testimonial.is-leaving { visibility: visible; opacity: 1; z-index: 1; }
[data-dpt-style="reel"] .dp-t-mark { display: block; height: 26px; font: 700 48px/1 Georgia, serif; }
[data-dpt-style="reel"] .dp-t-mark::before { content: "\201C"; }
:where([data-dpt-style="reel"]) .dp-t-title { display: block; margin: 12px 0 16px; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
:where([data-dpt-style="reel"]) .dp-t-quote { max-width: 48ch; font-size: 14px; line-height: 1.6; color: var(--dpt-muted); }
[data-dpt-style="reel"] .dp-t-author { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
[data-dpt-style="reel"] .dp-t-avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
[data-dpt-style="reel"] .dp-t-who { flex-direction: row; flex-wrap: wrap; font-size: 12px; color: var(--dpt-muted); }
:where([data-dpt-style="reel"]) .dp-t-name { font-weight: 400; color: var(--dpt-muted); }
[data-dpt-style="reel"] .dp-t-role::before { content: ",\00a0"; }
[data-dpt-style="reel"] .is-active .dp-t-body > * { animation: dpt-rise var(--dpt-speed) var(--dpt-ease) both; }
[data-dpt-style="reel"] .is-active .dp-t-body > :nth-child(3) { animation-delay: calc(var(--dpt-speed) * .08); }
[data-dpt-style="reel"] .is-active .dp-t-body > :nth-child(4) { animation-delay: calc(var(--dpt-speed) * .16); }
[data-dpt-style="reel"] .is-active .dp-t-body > :nth-child(n+5) { animation-delay: calc(var(--dpt-speed) * .24); }
[data-dpt-style="reel"] .is-leaving .dp-t-body { animation: dpt-leave calc(var(--dpt-speed) * .5) ease both; }
[data-dpt-style="reel"][data-dpt-transition="fade"] .is-active .dp-t-body > * { animation-name: dpt-fade; }
@keyframes dpt-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dpt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dpt-leave { to { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 767px) {
  .dp-testi[data-dpt-style="reel"] { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "ui"; grid-template-rows: auto; row-gap: 24px; }
}

/* ================================================================ Progress Rotation */
.dp-testi[data-dpt-style="rotation"] {
  --dpt-max-w: 900px;
  --dpt-pad: 56px;
  --dpt-radius: 20px;
  --dpt-panel: #0c0c0e;
  --dpt-text: #fff;
  --dpt-muted: rgba(255, 255, 255, .55);
  --dpt-accent: var(--dp-g-accent, #2c59fa);
  --dpt-track: rgba(255, 255, 255, .14);
  --dpt-avatar: 44px;
  --dpt-blur: 10px;
  --dpt-stagger: .08s;
  --dpt-interval: 6s;
  display: flex;
  flex-direction: column;
  max-width: var(--dpt-max-w);
  margin: 0 auto;
  padding: var(--dpt-pad);
  border-radius: var(--dpt-radius);
  background: var(--dpt-panel);
  touch-action: pan-y;
}
[data-dpt-style="rotation"] .dp-t-head { order: 0; margin: 0 0 32px; padding: 0; max-width: none; text-align: left; }
/* Rotation draws its own panel around the intro, so the intro follows the panel text colour. */
:where([data-dpt-style="rotation"]) .dp-t-headline { font-size: clamp(18px, 2vw, 22px); font-weight: 500; line-height: 1.35; color: var(--dpt-muted); }
:where([data-dpt-style="rotation"]) .dp-t-topic { color: var(--dpt-text); }
[data-dpt-style="rotation"] .dp-t-ui { order: 1; display: flex; align-items: center; gap: 24px; margin-bottom: 34px; }
[data-dpt-style="rotation"] .dp-t-stage { order: 2; display: grid; }
.dp-t-bars { display: flex; flex: 1; gap: 6px; }
.dp-t-bar { position: relative; flex: 1; height: 14px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.dp-t-bar::before, .dp-t-bar-fill { content: ""; position: absolute; left: 0; top: 6px; height: 2px; border-radius: 2px; }
.dp-t-bar::before { right: 0; background: var(--dpt-track); }
.dp-t-bar-fill { width: 0; background: var(--dpt-accent); }
.dp-t-bar.is-active .dp-t-bar-fill { width: 100%; }
.dp-t-bars.is-timed .dp-t-bar.is-active .dp-t-bar-fill { animation: dpt-fill var(--dpt-interval) linear forwards; }
.dp-testi.is-paused .dp-t-bar-fill { animation-play-state: paused !important; }
@keyframes dpt-fill { from { width: 0; } to { width: 100%; } }
[data-dpt-style="rotation"] .dp-t-nav { gap: 4px; }
[data-dpt-style="rotation"] .dp-t-arrow { width: 28px; height: 28px; background: transparent; color: var(--dpt-muted); }
[data-dpt-style="rotation"] .dp-t-arrow:hover { color: var(--dpt-text); }
[data-dpt-style="rotation"] .dp-t-arrow svg { width: 16px; height: 16px; }
:where([data-dpt-style="rotation"]) .dp-t-quote { font-size: clamp(20px, 2.6vw, 30px); line-height: 1.32; font-weight: 500; letter-spacing: -.01em; }
[data-dpt-style="rotation"] .dp-t-quote::before { content: "\201C"; }
[data-dpt-style="rotation"] .dp-t-quote::after { content: "\201D"; }
.dp-t-w { display: inline-block; }
[data-dpt-style="rotation"] .is-active .dp-t-w { animation: dpt-line .8s var(--dpt-ease) both; animation-delay: calc(var(--dpt-line, 0) * var(--dpt-stagger)); }
@keyframes dpt-line { from { opacity: 0; transform: translateY(.55em); filter: blur(var(--dpt-blur)); } to { opacity: 1; transform: none; filter: blur(0); } }
[data-dpt-style="rotation"] .dp-t-author { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
[data-dpt-style="rotation"] .dp-t-avatar { display: block; flex: none; width: var(--dpt-avatar); height: var(--dpt-avatar); border-radius: 50%; object-fit: cover; }
[data-dpt-style="rotation"] .is-active .dp-t-avatar { animation: dpt-pop .7s var(--dpt-ease) both; animation-delay: calc(var(--dpt-lines, 3) * var(--dpt-stagger) + .1s); }
[data-dpt-style="rotation"] .is-active .dp-t-who { animation: dpt-rise .7s var(--dpt-ease) both; animation-delay: calc(var(--dpt-lines, 3) * var(--dpt-stagger) + .2s); }
@keyframes dpt-pop { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
:where([data-dpt-style="rotation"]) .dp-t-name { font-size: 15px; font-style: italic; font-weight: 500; color: var(--dpt-accent); }
:where([data-dpt-style="rotation"]) .dp-t-role { font-size: 12px; }
[data-dpt-style="rotation"] .is-leaving .dp-t-body { animation: dpt-out calc(var(--dpt-speed) * .5) ease both; }
@keyframes dpt-out { to { opacity: 0; filter: blur(6px); } }
@media (max-width: 767px) {
  [data-dpt-style="rotation"] .dp-t-ui { gap: 12px; margin-bottom: 24px; }
}

/* ================================================================ Photo Shrink */
.dp-testi[data-dpt-style="shrink"] {
  --dpt-card-w: 300px;
  --dpt-card-h: 320px;
  --dpt-radius: 14px;
  --dpt-gap: 20px;
  --dpt-thumb: 30%;
  --dpt-back: #0c0c0e;
  --dpt-text: #fff;
  --dpt-muted: rgba(255, 255, 255, .7);
  --dpt-shade: rgba(0, 0, 0, .6);
}
[data-dpt-style="shrink"] .dp-t-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--dpt-gap); }
[data-dpt-style="shrink"] .dp-testimonial { width: var(--dpt-card-w); max-width: 100%; height: var(--dpt-card-h); cursor: pointer; }
:where([data-dpt-style="shrink"]) .dp-t-inner { height: 100%; overflow: hidden; border-radius: var(--dpt-radius); background: var(--dpt-back); color: var(--dpt-text); }
[data-dpt-style="shrink"] .dp-t-photo {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  transition: top var(--dpt-speed) var(--dpt-ease), right var(--dpt-speed) var(--dpt-ease), width var(--dpt-speed) var(--dpt-ease), height var(--dpt-speed) var(--dpt-ease), border-radius var(--dpt-speed) var(--dpt-ease);
}
[data-dpt-style="shrink"] .dp-t-photo::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, var(--dpt-shade), transparent);
  transition: opacity var(--dpt-speed);
}
[data-dpt-style="shrink"] .is-open .dp-t-photo { top: 14px; right: 14px; width: var(--dpt-thumb); height: calc(var(--dpt-thumb) * .95); border-radius: 8px; }
[data-dpt-style="shrink"] .is-open .dp-t-photo::after { opacity: 0; }
[data-dpt-style="shrink"] .dp-t-body { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; }
[data-dpt-style="shrink"] .dp-t-logo { display: block; position: absolute; top: 18px; left: 18px; max-width: 45%; height: 24px; width: auto; object-fit: contain; object-position: left center; }
[data-dpt-style="shrink"] .dp-t-mark { display: block; height: 22px; font: 700 40px/1 Georgia, serif; color: var(--dpt-muted); }
[data-dpt-style="shrink"] .dp-t-mark::before { content: "\201C"; }
:where([data-dpt-style="shrink"]) .dp-t-quote { margin: 4px 0 14px; font-size: 15px; line-height: 1.4; font-weight: 500; }
[data-dpt-style="shrink"] .dp-t-logo, [data-dpt-style="shrink"] .dp-t-mark, [data-dpt-style="shrink"] .dp-t-quote {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity calc(var(--dpt-speed) * .5) ease, transform calc(var(--dpt-speed) * .5) ease;
}
[data-dpt-style="shrink"] .is-open :is(.dp-t-logo, .dp-t-mark, .dp-t-quote) { opacity: 1; transform: none; transition-delay: calc(var(--dpt-speed) * .45); }
:where([data-dpt-style="shrink"]) .dp-t-name { font-size: 13px; color: var(--dpt-text); }
:where([data-dpt-style="shrink"]) .dp-t-role { font-size: 12px; }

/* ================================================================ Scrolling Columns */
.dp-testi[data-dpt-style="scroll"] {
  --dpt-col-w: 340px;
  --dpt-h: 620px;
  --dpt-gap: 16px;
  --dpt-radius: 14px;
  --dpt-card: #0c0c0e;
  --dpt-border: rgba(255, 255, 255, .08);
  --dpt-text: #fff;
  --dpt-muted: rgba(255, 255, 255, .65);
  --dpt-star: var(--dp-g-accent, #2c59fa);
}
[data-dpt-style="scroll"] .dp-t-stage { position: relative; height: var(--dpt-h); overflow: hidden; }
[data-dpt-style="scroll"][data-dpt-fade="on"] .dp-t-stage {
  -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
[data-dpt-style="scroll"] .dp-testimonial { position: absolute; top: 0; left: 0; width: var(--dpt-col-w); max-width: calc(100% - 32px); will-change: transform; }
:where([data-dpt-style="scroll"]) .dp-t-inner { padding: 24px 22px; border-radius: var(--dpt-radius); background: var(--dpt-card); box-shadow: inset 0 0 0 1px var(--dpt-border); color: var(--dpt-text); text-align: center; }
[data-dpt-style="scroll"] .dp-t-body { display: flex; flex-direction: column; align-items: center; }
[data-dpt-style="scroll"] .dp-t-author { order: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
[data-dpt-style="scroll"] .dp-t-top { order: 2; display: block; margin: 10px 0 12px; }
[data-dpt-style="scroll"] .dp-t-rating { display: inline-block; }
[data-dpt-style="scroll"] .dp-t-score { display: none; }
[data-dpt-style="scroll"] .dp-t-quote { order: 3; }
[data-dpt-style="scroll"] .dp-t-avatar { display: block; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
[data-dpt-style="scroll"] .dp-t-who { align-items: center; }
:where([data-dpt-style="scroll"]) .dp-t-name { font-size: 15px; }
:where([data-dpt-style="scroll"]) .dp-t-role { font-size: 12px; }
:where([data-dpt-style="scroll"]) .dp-t-quote { font-size: 14px; line-height: 1.55; color: var(--dpt-muted); }

/* ================================================================ Hover Expand */
.dp-testi[data-dpt-style="expand"] {
  --dpt-h: 300px;
  --dpt-collapsed: 150px;
  --dpt-expanded: 380px;
  --dpt-gap: 12px;
  --dpt-radius: 16px;
  --dpt-active: #fff;
  --dpt-card: #f1f1f0;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, 0.6));
  --dpt-star: var(--dp-g-accent, #2c59fa);
}
[data-dpt-style="expand"] .dp-t-stage { display: flex; justify-content: center; gap: var(--dpt-gap); }
[data-dpt-style="expand"] .dp-testimonial {
  flex: 0 1 var(--dpt-collapsed);
  min-width: 0;
  height: var(--dpt-h);
  cursor: pointer;
  transition: flex-basis var(--dpt-speed) var(--dpt-ease);
}
[data-dpt-style="expand"] .dp-testimonial.is-open { flex-basis: var(--dpt-expanded); cursor: default; }
:where([data-dpt-style="expand"]) .dp-t-inner {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: var(--dpt-radius);
  background: var(--dpt-card);
  transition: background-color var(--dpt-speed) ease;
}
[data-dpt-style="expand"] .is-open .dp-t-inner { background: var(--dpt-active); box-shadow: var(--dp-sh, 0 20px 40px -24px rgba(0, 0, 0, .35)); }
[data-dpt-style="expand"] .dp-t-body { display: flex; flex-direction: column; width: 100%; min-width: 0; padding: 18px; }
[data-dpt-style="expand"] .dp-t-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
[data-dpt-style="expand"] .dp-t-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
[data-dpt-style="expand"] .dp-t-stars { display: none; }
[data-dpt-style="expand"] .dp-t-score::before { content: "\2605"; margin-right: 6px; font-size: 16px; color: var(--dpt-star); }
[data-dpt-style="expand"] .dp-t-plus {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border-radius: 50%;
  background: rgba(0, 0, 0, .07);
  font-size: 13px;
  line-height: 1;
}
[data-dpt-style="expand"] .dp-t-plus::before { content: "\2197"; transition: transform var(--dpt-speed) var(--dpt-ease); }
[data-dpt-style="expand"] .is-open .dp-t-plus::before { transform: rotate(180deg); }
:where([data-dpt-style="expand"]) .dp-t-quote { font-size: 15px; line-height: 1.4; font-weight: 500; }
[data-dpt-style="expand"] .dp-t-quote {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
[data-dpt-style="expand"] .is-open .dp-t-quote { -webkit-mask-image: none; mask-image: none; }
[data-dpt-style="expand"] .dp-t-quote::before { content: "\201C"; }
[data-dpt-style="expand"] .dp-t-quote::after { content: "\201D"; }
[data-dpt-style="expand"] .dp-t-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-right: 0; transition: padding var(--dpt-speed); }
[data-dpt-style="expand"] .dp-t-avatar { display: block; flex: none; width: 0; height: 34px; border-radius: 50%; object-fit: cover; opacity: 0; transition: width var(--dpt-speed) var(--dpt-ease), opacity var(--dpt-speed); }
[data-dpt-style="expand"] .is-open .dp-t-avatar { width: 34px; opacity: 1; }
[data-dpt-style="expand"] .dp-t-who { white-space: nowrap; }
:where([data-dpt-style="expand"]) .dp-t-name { font-size: 12px; }
:where([data-dpt-style="expand"]) .dp-t-role { font-size: 11px; }
[data-dpt-style="expand"] .dp-t-logo { display: block; position: absolute; right: 18px; bottom: 20px; height: 26px; width: auto; max-width: 30%; object-fit: contain; opacity: 0; transition: opacity .3s; }
[data-dpt-style="expand"] .is-open .dp-t-logo { opacity: 1; transition-delay: calc(var(--dpt-speed) * .6); }
[data-dpt-style="expand"] .is-open .dp-t-logo + .dp-t-mark ~ .dp-t-author { padding-right: 32%; }
@media (max-width: 767px) {
  [data-dpt-style="expand"] .dp-t-stage { flex-direction: column; align-items: stretch; }
  [data-dpt-style="expand"] .dp-testimonial, [data-dpt-style="expand"] .dp-testimonial.is-open { flex: none; height: auto; }
  [data-dpt-style="expand"] .dp-t-quote { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  [data-dpt-style="expand"] .is-open .dp-t-quote { display: block; }
}

/* ================================================================ Quote Stepper */
.dp-testi[data-dpt-style="stepper"] {
  --dpt-max-w: 760px;
  --dpt-pad: 48px;
  --dpt-radius: 16px;
  --dpt-avatar: 46px;
  --dpt-avatar-r: 10px;
  --dpt-panel: #f1f1f0;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, 0.55));
  --dpt-star: var(--dp-g-accent, #2c59fa);
  max-width: var(--dpt-max-w);
  margin: 0 auto;
  padding: var(--dpt-pad);
  border-radius: var(--dpt-radius);
  background: var(--dpt-panel);
  text-align: center;
  touch-action: pan-y;
}
[data-dpt-style="stepper"] .dp-t-head { margin-bottom: 28px; padding: 0; }
:where([data-dpt-style="stepper"]) .dp-t-headline { font-size: clamp(20px, 2.4vw, 28px); }
[data-dpt-style="stepper"] .dp-t-stage { display: grid; }
[data-dpt-style="stepper"] .dp-testimonial { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
[data-dpt-style="stepper"] .dp-testimonial.is-active { visibility: visible; opacity: 1; z-index: 2; }
[data-dpt-style="stepper"] .dp-testimonial.is-leaving { visibility: visible; z-index: 1; animation: dpt-fade-out calc(var(--dpt-speed) * .4) ease both; }
[data-dpt-style="stepper"] .dp-t-body { display: flex; flex-direction: column; align-items: center; }
[data-dpt-style="stepper"] .dp-t-top { display: block; margin-bottom: 18px; }
[data-dpt-style="stepper"] .dp-t-rating { display: inline-block; }
[data-dpt-style="stepper"] .dp-t-stars { font-size: 13px; letter-spacing: 4px; }
[data-dpt-style="stepper"] .dp-t-score { display: none; }
:where([data-dpt-style="stepper"]) .dp-t-quote { max-width: 34ch; font-size: clamp(19px, 2.3vw, 26px); line-height: 1.35; font-weight: 500; }
[data-dpt-style="stepper"] .dp-t-quote::before { content: "\201C"; }
[data-dpt-style="stepper"] .dp-t-quote::after { content: "\201D"; }
[data-dpt-style="stepper"] .dp-t-author { margin-top: 22px; }
[data-dpt-style="stepper"] .dp-t-who { align-items: center; gap: 3px; }
:where([data-dpt-style="stepper"]) .dp-t-name { font-size: 14px; }
:where([data-dpt-style="stepper"]) .dp-t-role { font-size: 12px; }
[data-dpt-style="stepper"] .is-active .dp-t-body > * { animation: dpt-rise var(--dpt-speed) var(--dpt-ease) both; }
[data-dpt-style="stepper"] .is-active .dp-t-quote { animation-delay: calc(var(--dpt-speed) * .06); }
[data-dpt-style="stepper"] .is-active .dp-t-author { animation-delay: calc(var(--dpt-speed) * .14); }
@keyframes dpt-fade-out { to { opacity: 0; } }
[data-dpt-style="stepper"] .dp-t-ui { margin-top: 30px; }
.dp-t-avatars { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 8px; }
.dp-t-pick {
  width: var(--dpt-avatar);
  height: var(--dpt-avatar);
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--dpt-avatar-r);
  background: rgba(0, 0, 0, .08);
  color: var(--dpt-text);
  font-weight: 600;
  cursor: pointer;
  filter: grayscale(1);
  opacity: .5;
  transition: transform .45s var(--dpt-ease), filter .45s, opacity .45s, box-shadow .45s;
}
.dp-t-pick img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.dp-t-pick:hover { opacity: .8; }
.dp-t-pick.is-active { filter: none; opacity: 1; transform: translateY(-6px); box-shadow: var(--dp-sh, 0 10px 18px -8px rgba(0, 0, 0, .35)); }

/* ================================================================ Expanding Tabs */
.dp-testi[data-dpt-style="tabs"] {
  --dpt-h: 380px;
  --dpt-expanded: 460px;
  --dpt-tab: 56px;
  --dpt-gap: 8px;
  --dpt-radius: 18px;
  --dpt-card: #f1f1f0;
  --dpt-text: var(--dp-g-heading, #060606);
}
/* Built-in palette: each panel gets its own colour (a testimonial's Card Color still wins). */
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+1) { --dpt-auto-bg: var(--dp-g-accent, #2c59fa); --dpt-auto-ink: #fff; }
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+2) { --dpt-auto-bg: #f1f1f0; --dpt-auto-ink: var(--dp-g-heading, #060606); }
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+3) { --dpt-auto-bg: #0c0c0e; --dpt-auto-ink: #fff; }
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+4) { --dpt-auto-bg: #f1f1f0; --dpt-auto-ink: var(--dp-g-heading, #060606); }
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+5) { --dpt-auto-bg: var(--dp-g-accent, #2c59fa); --dpt-auto-ink: #fff; }
[data-dpt-style="tabs"][data-dpt-palette="on"] .dp-testimonial:nth-child(6n+6) { --dpt-auto-bg: #0c0c0e; --dpt-auto-ink: #fff; }
[data-dpt-style="tabs"] .dp-t-stage { display: flex; justify-content: center; gap: var(--dpt-gap); height: var(--dpt-h); }
[data-dpt-style="tabs"] .dp-testimonial {
  flex: 0 0 var(--dpt-tab);
  min-width: 0;
  height: 100%;
  cursor: pointer;
  transition: flex-basis var(--dpt-speed) var(--dpt-ease);
}
[data-dpt-style="tabs"] .dp-testimonial.is-open { flex-basis: var(--dpt-expanded); cursor: default; }
:where([data-dpt-style="tabs"]) .dp-t-inner {
  height: 100%;
  overflow: hidden;
  border-radius: var(--dpt-radius);
  background: var(--dpt-item-color, var(--dpt-auto-bg, var(--dpt-card)));
  color: var(--dpt-item-text, var(--dpt-auto-ink, var(--dpt-text)));
}
/* Closed tab: the name runs up the tab, with a round photo at the bottom. */
[data-dpt-style="tabs"] .dp-t-inner::after {
  content: attr(data-dpt-name);
  position: absolute;
  top: 18px;
  bottom: 60px;
  left: 50%;
  overflow: hidden;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: opacity .25s;
}
[data-dpt-style="tabs"] .dp-t-photo {
  display: block;
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: min(32px, calc(var(--dpt-tab) - 16px));
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: opacity .25s;
}
[data-dpt-style="tabs"] .is-open .dp-t-inner::after, [data-dpt-style="tabs"] .is-open .dp-t-photo { opacity: 0; }
/* Open panel */
[data-dpt-style="tabs"][data-dpt-counter="on"] .dp-t-inner::before {
  content: attr(data-dpt-count);
  position: absolute;
  z-index: 1;
  top: 24px;
  right: 24px;
  font-size: 11px;
  letter-spacing: .06em;
  opacity: 0;
  transition: opacity .3s;
}
[data-dpt-style="tabs"][data-dpt-counter="on"] .is-open .dp-t-inner::before { opacity: .6; transition-delay: calc(var(--dpt-speed) * .45); }
[data-dpt-style="tabs"] .dp-t-body {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: var(--dpt-expanded);
  padding: 22px 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility 0s .2s;
}
[data-dpt-style="tabs"] .is-open .dp-t-body { opacity: 1; visibility: visible; transition: opacity .4s calc(var(--dpt-speed) * .45), visibility 0s; }
[data-dpt-style="tabs"] .dp-t-mark { display: block; height: 30px; font: 700 46px/1 Georgia, serif; }
[data-dpt-style="tabs"] .dp-t-mark::before { content: "\201C"; }
:where([data-dpt-style="tabs"]) .dp-t-quote { margin-top: 14px; font-size: clamp(18px, 2vw, 24px); line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
[data-dpt-style="tabs"] .dp-t-top { display: block; position: absolute; right: 24px; bottom: 32px; --dpt-star: currentColor; }
[data-dpt-style="tabs"] .dp-t-rating { display: inline-block; }
[data-dpt-style="tabs"] .dp-t-score { display: none; }
[data-dpt-style="tabs"] .dp-t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 16px 110px 0 0;
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
[data-dpt-style="tabs"] .dp-t-avatar { display: block; flex: none; width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
:where([data-dpt-style="tabs"]) .dp-t-name { font-size: 13px; }
:where([data-dpt-style="tabs"]) .dp-t-role { font-size: 12px; color: inherit; opacity: .7; }
@media (max-width: 767px) {
  [data-dpt-style="tabs"] .dp-t-stage { flex-direction: column; height: auto; }
  [data-dpt-style="tabs"] .dp-testimonial { height: auto; }
  [data-dpt-style="tabs"] .dp-testimonial.is-open { flex-basis: var(--dpt-h); }
  [data-dpt-style="tabs"] .dp-t-inner::after { top: 50%; bottom: auto; left: 60px; right: 16px; writing-mode: horizontal-tb; transform: translateY(-50%); text-align: left; }
  [data-dpt-style="tabs"] .dp-t-photo { top: 50%; bottom: auto; left: 14px; width: 32px; transform: translateY(-50%); }
  [data-dpt-style="tabs"] .dp-t-body { width: 100%; padding: 20px; }
}

/* ================================================================ Layered Stack */
/* The photos lie in a pile in the left column (--o: 0 in front, 1-3 behind); the quote column on the right sits
 * between the intro and the controls (the engine measures them into --dpt-head-h and --dpt-ui-h). */
.dp-testi[data-dpt-style="stack"] {
  --dpt-max-w: 1080px;
  --dpt-photo-w: 44%;
  --dpt-h: 460px;
  --dpt-gap: 64px;
  --dpt-spread: 22px;
  --dpt-radius: 20px;
  --dpt-text: var(--dp-g-heading, #060606);
  --dpt-muted: var(--dp-g-body, rgba(6, 6, 6, .6));
  --dpt-accent: var(--dp-g-accent, #2c59fa);
  --dpt-track: rgba(6, 6, 6, .12);
  --dpt-interval: 6s;
  display: grid;
  grid-template-columns: var(--dpt-photo-w) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  column-gap: var(--dpt-gap);
  max-width: var(--dpt-max-w);
  margin: 0 auto;
  touch-action: pan-y;
}
[data-dpt-style="stack"] .dp-t-head { position: relative; z-index: 30; grid-column: 2; grid-row: 1; margin: 0; padding: 0 0 8px; max-width: none; text-align: left; pointer-events: none; }
[data-dpt-style="stack"] .dp-t-head > * { pointer-events: auto; }
:where([data-dpt-style="stack"]) .dp-t-headline { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.25; }
[data-dpt-style="stack"] .dp-t-ui { position: relative; z-index: 30; grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 24px; padding-top: 8px; }
[data-dpt-style="stack"] .dp-t-arrow { width: 40px; height: 40px; background: transparent; color: var(--dpt-text); box-shadow: inset 0 0 0 1px var(--dpt-track); }
[data-dpt-style="stack"] .dp-t-arrow:hover { background: var(--dpt-accent); color: #fff; box-shadow: none; }
[data-dpt-style="stack"] .dp-t-arrow svg { width: 16px; height: 16px; }
[data-dpt-style="stack"] .dp-t-stage { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; }
[data-dpt-style="stack"] .dp-testimonial { --o: 0; position: relative; grid-area: 1 / 1; pointer-events: none; }
[data-dpt-style="stack"] .dp-t-inner {
  display: grid;
  grid-template-columns: var(--dpt-photo-w) minmax(0, 1fr);
  column-gap: var(--dpt-gap);
  height: 100%;
}
[data-dpt-style="stack"] .dp-t-photo {
  display: block;
  position: relative;
  grid-column: 1;
  align-self: center;
  height: var(--dpt-h);
  /* Room on the right and top for the photos behind to peek out, so the pile stays in its column. */
  margin: calc(var(--dpt-spread) * 2) calc(var(--dpt-spread) * 3 + 8px) 0 0;
  overflow: hidden;
  border-radius: var(--dpt-radius);
  pointer-events: auto;
  cursor: pointer;
  transform-origin: 50% 100%;
  transform: translate(calc(var(--o) * var(--dpt-spread)), calc(var(--o) * var(--dpt-spread) * -.6)) rotate(calc(var(--o) * 2deg)) scale(calc(1 - var(--o) * .04));
  /* Smooth edges and a sharp image when tilted: its own layer, a transparent outline for anti-aliasing, and the
     darkening as an overlay (a filter on a rotated card renders it at low resolution). */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  outline: 1px solid transparent;
  box-shadow: var(--dp-sh, 0 30px 50px -30px rgba(0, 0, 0, .45));
  transition: transform var(--dpt-speed) var(--dpt-ease), opacity var(--dpt-speed);
}
[data-dpt-style="stack"] .dp-t-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
  background: #060606; opacity: calc(var(--o) * .1); transition: opacity var(--dpt-speed);
}
[data-dpt-style="stack"] .dp-t-photo img { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
[data-dpt-style="stack"] .is-active .dp-t-photo { cursor: default; }
[data-dpt-style="stack"] .is-far .dp-t-photo { opacity: 0; pointer-events: none; }
[data-dpt-style="stack"] .is-leaving .dp-t-photo { animation: dpt-stack-out var(--dpt-speed) var(--dpt-ease) both; }
[data-dpt-style="stack"] .is-arriving .dp-t-photo { animation: dpt-stack-in var(--dpt-speed) var(--dpt-ease) both; }
@keyframes dpt-stack-out { to { opacity: 0; transform: translate(-28%, 8%) rotate(-12deg) scale(.96); } }
@keyframes dpt-stack-in { from { opacity: 0; transform: translate(-28%, 8%) rotate(-12deg) scale(.96); } }
[data-dpt-style="stack"] .dp-t-label { display: block; position: absolute; z-index: 2; left: 14px; top: 14px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: #060606; font-size: 12px; font-weight: 600; }
[data-dpt-style="stack"] .dp-t-body {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--dpt-head-h, 0px) + 24px) 0 calc(var(--dpt-ui-h, 0px) + 24px);
  visibility: hidden;
  opacity: 0;
}
[data-dpt-style="stack"] .is-active .dp-t-body { visibility: visible; opacity: 1; pointer-events: auto; }
[data-dpt-style="stack"] .dp-t-mark { display: block; height: 34px; color: var(--dpt-accent); font: 700 64px/1 Georgia, serif; }
[data-dpt-style="stack"] .dp-t-mark::before { content: "\201C"; }
:where([data-dpt-style="stack"]) .dp-t-title { display: block; margin: 8px 0 0; font-size: 20px; font-weight: 600; line-height: 1.25; }
:where([data-dpt-style="stack"]) .dp-t-quote { margin-top: 14px; font-size: clamp(20px, 2.4vw, 30px); line-height: 1.32; font-weight: 500; letter-spacing: -.01em; }
[data-dpt-style="stack"] .dp-t-author { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
[data-dpt-style="stack"] .dp-t-author::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--dpt-accent); }
:where([data-dpt-style="stack"]) .dp-t-name { font-size: 15px; color: var(--dpt-accent); }
:where([data-dpt-style="stack"]) .dp-t-role { font-size: 13px; }
[data-dpt-style="stack"] .dp-t-more { display: inline-block; align-self: flex-start; margin-top: 18px; color: var(--dpt-text); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-dpt-style="stack"] .is-active .dp-t-body > * { animation: dpt-rise var(--dpt-speed) var(--dpt-ease) both; }
[data-dpt-style="stack"] .is-active .dp-t-body > :nth-child(n+4) { animation-delay: calc(var(--dpt-speed) * .08); }
[data-dpt-style="stack"] .is-active .dp-t-body > :nth-child(n+6) { animation-delay: calc(var(--dpt-speed) * .16); }
@media (max-width: 767px) {
  .dp-testi[data-dpt-style="stack"] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; }
  [data-dpt-style="stack"] .dp-t-head { grid-column: 1; grid-row: 1; padding-bottom: 24px; }
  [data-dpt-style="stack"] .dp-t-stage { grid-column: 1; grid-row: 2; }
  [data-dpt-style="stack"] .dp-t-ui { grid-column: 1; grid-row: 3; padding-top: 20px; }
  [data-dpt-style="stack"] .dp-t-inner { grid-template-columns: minmax(0, 1fr); row-gap: var(--dpt-gap); }
  [data-dpt-style="stack"] .dp-t-photo { grid-column: 1; grid-row: 1; margin-right: calc(var(--dpt-spread) * 3 + 18px); }
  [data-dpt-style="stack"] .dp-t-body { grid-column: 1; grid-row: 2; padding: 0; }
}

/* Builder: an empty module still shows something to click. */
.dp-t-empty { padding: 40px 16px; text-align: center; opacity: .6; }

@media (prefers-reduced-motion: reduce) {
  .dp-testi *, .dp-testi *::before, .dp-testi *::after { transition-duration: .01s !important; animation-duration: .01s !important; animation-delay: 0s !important; }
  .dp-t-bars.is-timed .dp-t-bar.is-active .dp-t-bar-fill { animation-duration: var(--dpt-interval) !important; }
}

/* Built-In Shadows off (the module's dp-noshadow class): the blurred shadows above use these. */
.dp-noshadow { --dp-sh: none; --dp-sh-o: 0 0 #0000; }

/* A Box Shadow chosen for this element in the Design tab (None included) replaces its built-in shadow. */
.dp-sh-tscard .dp-t-inner, .dp-sh-tsphoto .dp-t-photo, .dp-testimonial.dp-sh-module .dp-t-inner { --dp-sh: none; --dp-sh-o: 0 0 #0000; }

/* Background defaults for the elements with a Background setting in the Design tab, as Divi gives its own
   modules (Cover, centred, no repeat): Divi only prints these when they are changed. Low priority, so any value set wins. */
:where(.dp-t-inner, .dp-t-label, .dp-t-arrow):not(#dp) { background-size: cover; background-position: 50%; background-repeat: no-repeat; }

/* Card Design set to a Library layout or canvas: the user's own design fills each testimonial's card. The style
   still places and sizes the cards; the built-in card's layout and colour step aside (one class, low priority, so a
   Background or Spacing set under Design > Cards still wins). */
.dp-testi .dp-t-inner.dp-entry-custom { display: block; grid-template-columns: none; }
.dp-t-inner:where(.dp-entry-custom) { padding: 0; background: transparent; color: inherit; overflow: hidden; }
.dp-testi .dp-entry-custom .dp-entry-wrap.dp-entry-wrap.dp-entry-wrap { all: unset; }
/* Nor the styles' added marks (the quote's curly quotes, Reel's comma before the role). */
.dp-testi .dp-entry-custom .dp-entry-wrap.dp-entry-wrap::before,
.dp-testi .dp-entry-custom .dp-entry-wrap.dp-entry-wrap::after { content: none; }
.dp-t-inner.dp-entry-custom > .et_pb_section,
.dp-t-inner.dp-entry-custom > div:not(.dp-entry-ghost) { height: 100%; }

/* Card Design: a background set under Design > Cards (dp-bg-tscard) or in a testimonial's own Background
   (dp-bg-module) replaces the backgrounds of the design's sections and rows, which would otherwise cover it. */
:is(.dp-bg-tscard .dp-testimonial, .dp-testimonial.dp-bg-module) .dp-entry-custom :is(.et_pb_section, .et_pb_row):not(#dp#dp) { background: none !important; background-color: transparent !important; background-image: none !important; }
:is(.dp-bg-tscard .dp-testimonial, .dp-testimonial.dp-bg-module) .dp-entry-custom :is(.et_pb_section, .et_pb_row) > :is(.et_parallax_bg_wrap, .et_pb_section_video_bg, .et_pb_background_pattern, .et_pb_background_mask) { display: none !important; }
