.cc_bflwfvqd_pfnPfqh7rs .testimonials {
  --kv-testimonials-cols: var(--kv-testimonials-cols-d, 3);
  --kv-testimonials-peek: 0;
  width: 100%;
  background: var(--kv-color-bg-warm);
  color: var(--kv-testimonials-text, var(--kv-color-text-primary));
  /* clip, not hidden: hidden would turn the section into a scroll box. */
  overflow: clip;
}

/* Header row: title, subtitle and rating summary on the left, the arrows and progress on the right. */
.cc_bflwfvqd_pfnPfqh7rs .testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__title {
  margin: 0;
  color: inherit;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__subtitle {
  margin: 8px 0 0;
  color: var(--kv-color-text-secondary);
}

/* Rating summary: an orange score chip with the star, then the caption. */
.cc_bflwfvqd_pfnPfqh7rs .testimonials__rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 16px 4px 12px;
  border-radius: 1000px;
  background: var(--kv-testimonial-accent, var(--kv-color-primary));
  color: var(--kv-color-on-primary);
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__score-star {
  fill: currentColor;
  stroke: currentColor;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__score-caption {
  color: var(--kv-color-text-secondary);
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__nav {
  flex: none;
}

/* Track: scroll-snap row; the column props say how many cards fit in view. */
.cc_bflwfvqd_pfnPfqh7rs .testimonials__track {
  display: flex;
  gap: var(--kv-testimonials-gap, 24px);
  /* Vertical room for the card shadow, cancelled by the negative margin so layout stays put. */
  margin: -16px 0;
  padding: 16px 0;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__track::-webkit-scrollbar {
  display: none;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials__item {
  flex: 0 0 calc((100% - (var(--kv-testimonials-cols) - 1) * var(--kv-testimonials-gap, 24px)) / (var(--kv-testimonials-cols) + var(--kv-testimonials-peek)));
  min-width: 0;
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .cc_bflwfvqd_pfnPfqh7rs .testimonials {
    --kv-testimonials-cols: var(--kv-testimonials-cols-t, 2);
  }
}

/* Mobile: swipe is the natural gesture, so the arrows go away and the cards bleed to the screen edge with a peek of the next one. */
@media (max-width: 768px) {
  .cc_bflwfvqd_pfnPfqh7rs .testimonials {
    --kv-testimonials-cols: var(--kv-testimonials-cols-m, 1);
    --kv-testimonials-peek: 0.15;
  }

  .cc_bflwfvqd_pfnPfqh7rs .testimonials__nav {
    display: none;
  }

  .cc_bflwfvqd_pfnPfqh7rs .testimonials__head {
    margin-bottom: 24px;
  }

  .cc_bflwfvqd_pfnPfqh7rs .testimonials__track {
    margin-inline: calc(var(--kv-page-padding, 16px) * -1);
    padding-inline: var(--kv-page-padding, 16px);
    scroll-padding-inline: var(--kv-page-padding, 16px);
  }
}

/* Entrance motion (armed by the client, see index.tsx). The head rises first, then the cards follow one by one,
   then each card's stars pop in left to right. */
.cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__heading > *, .cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__nav, .cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__item {
  opacity: 0;
  transform: translateY(24px);
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__heading > *, .cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__nav, .cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__heading > :nth-child(2) {
  transition-delay: 0.08s;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__heading > :nth-child(3) {
  transition-delay: 0.16s;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__nav {
  transition-delay: 0.2s;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__item {
  transition-delay: calc(0.25s + var(--kv-i, 0) * 0.1s);
}

/* Score chip: the star spins in once the head has landed. */
.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__score-star {
  animation: cc_bflwfvqd_pfnPfqh7rs_testimonials-star-spin 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s both;
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__star--on {
  animation: cc_bflwfvqd_pfnPfqh7rs_testimonials-star-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.6s + var(--kv-i, 0) * 0.1s);
}

.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__stars > :nth-child(2) { animation-delay: calc(0.68s + var(--kv-i, 0) * 0.1s); }
.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__stars > :nth-child(3) { animation-delay: calc(0.76s + var(--kv-i, 0) * 0.1s); }
.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__stars > :nth-child(4) { animation-delay: calc(0.84s + var(--kv-i, 0) * 0.1s); }
.cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__stars > :nth-child(5) { animation-delay: calc(0.92s + var(--kv-i, 0) * 0.1s); }

@keyframes cc_bflwfvqd_pfnPfqh7rs_testimonials-star-pop {
  from {
    opacity: 0;
    transform: scale(0) rotate(-45deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes cc_bflwfvqd_pfnPfqh7rs_testimonials-star-spin {
  from {
    transform: scale(0) rotate(-180deg);
  }
  to {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__heading > *, .cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__nav, .cc_bflwfvqd_pfnPfqh7rs .testimonials--armed .testimonials__item {
    opacity: 1;
    transform: none;
  }

  .cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonials__score-star, .cc_bflwfvqd_pfnPfqh7rs .testimonials--in .testimonial__star--on {
    animation: none;
  }
}
