/*
 * Bento layout: one featured testimonial on the left, two vertical marquee
 * columns on the right. Compact, light, fixed height on desktop.
 */
.cc_il0xsd7y_LUjsYXMdUq .testimonials {
  box-sizing: border-box;
  width: 100%;
  overflow-x: clip;
  color: var(--tm-text, var(--gr-color-text-primary));
  background: var(--gr-color-bg-page);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-header {
  display: flex;
  flex-direction: column;
  gap: var(--gr-space-sm);
  margin-bottom: var(--gr-space-lg);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-title {
  margin: 0;
  color: var(--tm-text, var(--gr-color-heading));
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--t-gap, 14px);
  /* Grows with the featured quote (long text, large font); 380px is the minimum. */
  min-height: 380px;
}

/* The featured card fills its cell; the cell is positioned so the card can stretch to it. */
.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature {
  position: relative;
  min-width: 0;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial {
  position: relative;
  box-sizing: border-box;
  height: 100%;
  gap: var(--gr-space-md);
  padding: 28px 32px;
  border-radius: 20px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--gr-color-text-inverse) 38%, var(--gr-color-bg-dark)), var(--gr-color-bg-dark) 100%);
  color: var(--gr-color-text-inverse);
  overflow: hidden;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-rating {
  color: #ffb400;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--gr-color-text-inverse);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-name {
  color: var(--gr-color-text-inverse);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-role, .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-verified {
  color: color-mix(in srgb, var(--gr-color-text-inverse) 70%, transparent);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-product {
  background: color-mix(in srgb, var(--gr-color-text-inverse) 14%, transparent);
  color: var(--gr-color-text-inverse);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-author {
  padding-top: var(--gr-space-md);
  border-top: 1px solid color-mix(in srgb, var(--gr-color-text-inverse) 18%, transparent);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-avatar {
  width: 44px;
  height: 44px;
  font-size: 14px;
}

/* Two columns that scroll vertically, opposite directions. Edges fade out. */
.cc_il0xsd7y_LUjsYXMdUq .testimonials-marquee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--t-gap, 14px);
  overflow: hidden;
  /* Takes its height from the row (the featured card), never from the scrolling columns. */
  contain: size;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: cc_il0xsd7y_LUjsYXMdUq_testimonials-up 22s linear infinite;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-col--reverse {
  animation-name: cc_il0xsd7y_LUjsYXMdUq_testimonials-down;
  animation-duration: 28s;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-marquee:hover .testimonials-col {
  animation-play-state: paused;
}

/* Spacing lives on the cards themselves, because the renderer may wrap each card in its own element.
   Every card (last one included) carries a bottom margin so the -50% loop lands exactly on the second copy. */
.cc_il0xsd7y_LUjsYXMdUq .testimonials-col-group {
  display: flex;
  flex-direction: column;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial {
  margin-bottom: var(--t-gap, 14px);
  gap: 10px;
  padding: 18px 20px;
  border: 1px solid var(--gr-color-border-default);
  border-radius: 18px;
  background: var(--gr-color-bg-surface);
  box-shadow: var(--gr-shadow-sm);
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-text {
  font-size: 14px;
  line-height: 1.5;
}

.cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-avatar {
  width: 36px;
  height: 36px;
}

/* Small cards: the verified badge would crowd the author line. */
.cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-verified {
  display: none;
}

@keyframes cc_il0xsd7y_LUjsYXMdUq_testimonials-up {
  to {
    transform: translateY(-50%);
  }
}

@keyframes cc_il0xsd7y_LUjsYXMdUq_testimonials-down {
  from {
    transform: translateY(-50%);
  }
  to {
    transform: translateY(0);
  }
}

/* Tablet and mobile: featured card on top, marquee below as a fixed-height strip. Everything scaled down. */
@media (max-width: 768px) {
  .cc_il0xsd7y_LUjsYXMdUq .testimonials-bento {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature {
    height: auto;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial {
    position: static;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-text {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-author {
    padding-top: 10px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-name, .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-role, .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-verified, .cc_il0xsd7y_LUjsYXMdUq .testimonials-feature .testimonial-product {
    font-size: 12px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-marquee {
    height: 340px;
    gap: 10px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial {
    margin-bottom: 10px;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-rating svg {
    width: 12px;
    height: 12px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-product {
    padding: 2px 8px;
    font-size: 12px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-name, .cc_il0xsd7y_LUjsYXMdUq .testimonials-col .testimonial-role {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc_il0xsd7y_LUjsYXMdUq .testimonials-col {
    animation: none;
  }

  .cc_il0xsd7y_LUjsYXMdUq .testimonials-marquee {
    overflow-y: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
