/* Dana testimonials - what the six designs share (sections/testimonials.jinja):
   the section's default spacing, the head, the stars, the verified badge and
   the review card of designs 1, 3 and 4 (Vineta's .wg-testimonial,
   styles.css 13549-13646, 19538-19553). Each design's own sheet
   (testimonials-<n>.css) is scoped to .dana-testimonials--d<n>. */

/* The template's .flat-spacing-3: 120, 75 from 1024 down, 60 on phones.
   A merchant's value wins (section-vars.jinja); design 2 has its own. */
.mt-section.dana-testimonials { padding-block: var(--mt-space-top, 120px) var(--mt-space-bottom, 120px); }
@media (max-width: 1024px) {
  .mt-section.dana-testimonials { padding-block: var(--mt-space-top, 75px) var(--mt-space-bottom, 75px); }
}
@media (max-width: 767px) {
  .mt-section.dana-testimonials { padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 60px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 60px)); }
}
/* A background picture that stays still while the page scrolls (home-pod's
   parallax picture behind the cards). */
.dana-testimonials--fixed { background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; }
/* The section as a panel (bg_shape, product-carousel's): 15px in from the
   page's edges on phones, 24px from 768, 40px from 1200 (.mx_40); square,
   16px corners (home-phonecase .radius-16) or 80px corners from 768. The
   picture, the overlay and design 4's row stay inside the corners. */
.mt-section.dana-testimonials:is(.dana-testimonials--shape-inset, .dana-testimonials--shape-rounded, .dana-testimonials--shape-round) {
  margin-inline: 15px;
  overflow: hidden;
}
.mt-section.dana-testimonials--shape-rounded { border-radius: 16px; }
@media (min-width: 768px) {
  .mt-section.dana-testimonials:is(.dana-testimonials--shape-inset, .dana-testimonials--shape-rounded, .dana-testimonials--shape-round) { margin-inline: 24px; }
  .mt-section.dana-testimonials--shape-round { border-radius: 80px; }
}
@media (min-width: 1200px) {
  .mt-section.dana-testimonials:is(.dana-testimonials--shape-inset, .dana-testimonials--shape-rounded, .dana-testimonials--shape-round) { margin-inline: 40px; }
}

.dana-testimonials p, .dana-testimonials figure, .dana-testimonials blockquote { margin: 0; }
/* Colours on a panel or a card: the area takes the ink as its own tokens, so
   every text, line and empty star in it follows; a card inside a panel
   goes back to the page's (the section keeps them as --dana-t-base-*). */
.dana-testimonials { --dana-t-base-heading: var(--dana-heading); --dana-t-base-text: var(--dana-text); --dana-t-base-muted: var(--dana-muted); --dana-t-base-line: var(--dana-line); }
.dana-testimonials--inked:is(.dana-testimonials--d1, .dana-testimonials--d3, .dana-testimonials--d4) .dana-testimonials__body,
.dana-testimonials--inked.dana-testimonials--d2 .dana-testimonials__duo,
.dana-testimonials--inked:is(.dana-testimonials--d5, .dana-testimonials--d6) .dana-testimonials__stage {
  --dana-heading: var(--dana-t-panel-ink);
  --dana-text: var(--dana-t-panel-ink);
  --dana-muted: color-mix(in srgb, var(--dana-t-panel-ink) 80%, transparent);
  --dana-line: color-mix(in srgb, var(--dana-t-panel-ink) 25%, transparent);
  color: var(--dana-text);
}
.dana-testimonials--card:is(.dana-testimonials--d1, .dana-testimonials--d3, .dana-testimonials--d4) .dana-testimonials__card,
.dana-testimonials--card.dana-testimonials--d2:not(.dana-testimonials--panel) .dana-testimonials__quotes,
.dana-testimonials--card:is(.dana-testimonials--d5, .dana-testimonials--d6) .dana-testimonials__one {
  --dana-heading: var(--dana-t-card-ink, var(--dana-t-base-heading));
  --dana-text: var(--dana-t-card-ink, var(--dana-t-base-text));
  --dana-muted: var(--dana-t-card-muted, var(--dana-t-base-muted));
  --dana-line: var(--dana-t-card-line, var(--dana-t-base-line));
  color: var(--dana-text);
}
.dana-testimonials a { color: inherit; text-decoration: none; transition: color .3s var(--dana-ease); }
.dana-testimonials a:hover, .dana-testimonials a:focus-visible { color: var(--dana-accent-ink); text-decoration: none; }
.dana-testimonials__body, .dana-testimonials__stage, .dana-testimonials__rail { min-inline-size: 0; }
.dana-testimonials__rail { position: relative; }

/* ---- Head (.flat-title: 48px under it from 1200; .flat-title-2 for the big
   titles: 20px gaps and 30px under, 30 and 52 from 992) ---------------------- */
.dana-testimonials__head .dana-head__title { color: var(--dana-t-head-ink, var(--dana-heading)); overflow-wrap: anywhere; }
.dana-testimonials__head .dana-head__text { color: var(--dana-t-head-ink, var(--dana-muted)); }
.dana-testimonials .dana-testimonials__eyebrow { margin-block-end: -2px; font-size: var(--dana-fs-md); line-height: var(--dana-lh-md); color: var(--dana-t-head-ink, var(--dana-heading)); }
.dana-testimonials__head.dana-head--between { align-items: flex-end; }
/* Under 768 the split head is a column (core.css), where flex-end put the
   title at the row's end (jewelry2 at 390: x 102-287 of 390 in Arabic); the
   template centres it. */
@media (max-width: 767px) {
  .dana-testimonials__head.dana-head--between { align-items: center; }
}
.dana-testimonials__head-nav { display: none; gap: 12px; }
/* The plain arrows with nowhere to go dim (.nav-swiper.style-1 at .35),
   they take no dark fill. */
.dana-testimonials__head-nav .dana-sw-nav--plain.swiper-button-disabled { background-color: transparent; color: var(--dana-heading); opacity: .35; }
@media (min-width: 1200px) {
  .dana-testimonials__head { margin-block-end: 48px; }
  .dana-testimonials__head-nav { display: flex; }
}
.dana-testimonials__head--large, .dana-testimonials__head--xlarge { gap: 20px; }
.dana-testimonials__head--large .dana-head__title, .dana-testimonials__head--xlarge .dana-head__title { font-size: var(--dana-fs-h3); line-height: var(--dana-lh-h3); letter-spacing: 0; }
@media (min-width: 1025px) {
  .dana-testimonials__head--large .dana-head__title { font-size: 40px; line-height: 48px; }
}
@media (min-width: 992px) {
  .dana-testimonials__head--large, .dana-testimonials__head--xlarge { gap: 30px; margin-block-end: 52px; }
}

/* ---- Stars (.list-star-default: 14px glyphs on a 21.5px pitch) --------------
   A grid or flex item would stretch the row and the filled share with it.
   Pitch and start measured on the ink: 50, 71, 93, 114, 136 at 1440. */
.dana-testimonials__stars { inline-size: max-content; justify-self: start; margin-inline-start: 1px; letter-spacing: 7.5px; }
/* The section's own star colour (stars_color), else the Look's. */
.dana-testimonials--stars .dana-testimonials__stars { --dana-stars: var(--dana-t-stars); }
/* Lighter stars on a dark box (the section's markup decides): the empty
   stars darken the box under them instead of lightening it, so a 4-star
   review still reads (lime on walnut: 6.94:1 against the empty ones). */
.dana-testimonials--stars-dim .dana-testimonials__stars { color: rgb(0 0 0 / .3); }
.dana-testimonials__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; font-style: italic; color: var(--dana-muted); }
.dana-testimonials__verified .di { font-size: 14px; }
/* The customer's photo as a round avatar (d3's 28px .avt; d1 and d6 too). */
.dana-testimonials__avatar { flex: none; inline-size: 28px; block-size: 28px; overflow: hidden; border-radius: 50%; background: var(--dana-surface); }
.dana-testimonials__avatar img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
/* The pager row: the dots, with the head arrows at its ends where a look has
   no head (d2, d5, d6). Hidden when every part of it is (all slides fit). */
.dana-testimonials__pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-block-start: 20px; }
.dana-testimonials__pager:not(:has(> :not(.swiper-pagination-lock, .swiper-button-lock))) { display: none; }
.dana-testimonials .dana-testimonials__dots { position: relative; inset: auto; margin-block-start: 0; }

/* ---- The review card (designs 1, 3, 4) -------------------------------------- */
.dana-testimonials .swiper-slide { block-size: auto; }
.dana-testimonials__card {
  display: flex;
  block-size: 100%;
  overflow: hidden;
  border: 1px solid var(--dana-line);
  /* card_radius: the section's own corners (home-watch .rounded-0), else the
     Style group's card corners. */
  border-radius: var(--dana-t-card-r, var(--dana-radius-card));
  background: var(--dana-t-card, transparent);
  color: var(--dana-text);
}
.dana-testimonials__main { display: flex; flex-direction: column; flex: 1 1 auto; min-inline-size: 0; }
.dana-testimonials__top { display: grid; align-content: start; flex: 1 0 auto; gap: 10px; padding: 12px; }
.dana-testimonials__author { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dana-testimonials__card .dana-testimonials__mark { font-size: 32px; line-height: 1; color: var(--dana-t-icon, var(--dana-heading)); }
.dana-testimonials__card .dana-testimonials__mark--image img { display: block; inline-size: 1em; block-size: 1em; object-fit: contain; }
.dana-testimonials__card .dana-testimonials__rtitle { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--dana-heading); overflow-wrap: anywhere; }
.dana-testimonials__name { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--dana-heading); overflow-wrap: anywhere; }
.dana-testimonials__card .dana-testimonials__text { font-size: 14px; line-height: 20px; color: var(--dana-muted); overflow-wrap: anywhere; }
.dana-testimonials__line { display: block; flex: none; block-size: 1px; background: var(--dana-line); }
.dana-testimonials__product { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.dana-testimonials__buy { display: flex; align-items: center; gap: 6px; min-inline-size: 0; }
.dana-testimonials__pimg { flex: none; inline-size: 64px; block-size: 64px; overflow: hidden; border-radius: 50%; background: var(--dana-surface); }
.dana-testimonials__pimg img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
.dana-testimonials__pinfo { display: grid; gap: 3px; min-inline-size: 0; }
.dana-testimonials__item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; line-height: 18px; color: var(--dana-heading); }
.dana-testimonials__plink {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--dana-heading);
}
.dana-testimonials .dana-testimonials__plink { color: var(--dana-heading); }
.dana-testimonials .dana-testimonials__plink:hover, .dana-testimonials .dana-testimonials__plink:focus-visible { color: var(--dana-accent-ink); }
@media (min-width: 992px) {
  .dana-testimonials__top { gap: 20px; padding: 40px 24px 22px; }
  .dana-testimonials__product { padding: 24px; }
  .dana-testimonials__buy { gap: 12px; }
  .dana-testimonials__pinfo { gap: 6px; }
}

/* The panel of the card looks (home-pickleball: the head and the cards on a
   rounded colour panel, .bg-gradient-7.xl-radius-50.flat-spacing-30: 100/58
   from 1200 and 60 below, radius 50 from 1200, 40px from the window's edges
   when full width). */
.dana-testimonials--panel:is(.dana-testimonials--d1, .dana-testimonials--d3, .dana-testimonials--d4) .dana-testimonials__body {
  padding: 60px var(--dana-gutter);
  border-radius: var(--dana-radius-card);
  /* --dana-t-panel-fill: the top-to-bottom gradient when panel_color_2 is
     set (every look's panel reads it the same way). */
  background: var(--dana-t-panel-fill, var(--dana-t-panel));
}
@media (min-width: 1200px) {
  .dana-testimonials--panel:is(.dana-testimonials--d1, .dana-testimonials--d3, .dana-testimonials--d4) .dana-testimonials__body { padding-block: 100px 58px; border-radius: calc(var(--dana-radius-card) * 3.125); }
  .dana-testimonials--panel:is(.dana-testimonials--d1, .dana-testimonials--d3, .dana-testimonials--d4).mt-section--full > .mt-section__content { padding-inline: 40px; }
}

/* Side arrows, from 1200 (the template's .wrap-pos-nav): centred on the edges
   of the row of cards. */
.dana-testimonials__side { position: absolute; z-index: 2; inset-block-start: 50%; translate: 0 -50%; display: none; }
.dana-testimonials__side--prev { inset-inline-start: -22px; }
.dana-testimonials__side--next { inset-inline-end: -22px; }
@media (min-width: 1200px) { .dana-testimonials__side { display: inline-flex; } }

/* Before the script: one review, the others wait (designs 2, 5). */
.dana-testimonials .swiper[data-dana-t-swiper]:not(.swiper-initialized) > .swiper-wrapper { display: flex; }
.dana-testimonials .swiper[data-dana-t-swiper]:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide { flex: none; inline-size: 100%; }
.dana-testimonials .swiper[data-dana-t-swiper]:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide:not(:first-child) { display: none; }
