.glow-testimonials {
  display: block;
  padding-top: var(--glow-review-padding-top);
  padding-bottom: var(--glow-review-padding-bottom);
  overflow: hidden;
  background: rgb(var(--color-background));
}

.glow-testimonials__inner {
  padding-inline: min(3rem, 5%);
}

.glow-testimonials__header {
  margin: 0 auto 38px;
  text-align: center;
}

.glow-testimonials__eyebrow {
  margin: 0 0 10px;
  font-size: var(--glow-global-label-size);
  font-weight: 700;
  letter-spacing: var(--glow-label-tracking);
  text-transform: uppercase;
}

.glow-testimonials__heading {
  margin: 0;
  font-family: var(--sort-title-font);
  font-size: var(--glow-review-heading-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.glow-testimonials__summary {
  margin: 14px 0 0;
  font-size: var(--glow-review-summary-size);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.glow-testimonials__viewport {
  overflow: hidden;
}

.glow-testimonials__track {
  display: grid;
  grid-auto-columns: calc((100% - (var(--glow-review-columns) - 1) * 16px) / var(--glow-review-columns));
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.glow-testimonial {
  position: relative;
  display: flex;
  min-height: 320px;
  padding: 32px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  scroll-snap-align: center;
  color: #202125;
  background: #eeeeee;
  border: 0;
  border-radius: var(--glow-review-radius);
  box-shadow: none;
}

.glow-testimonial::before {
  margin-bottom: 12px;
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 0.7;
  content: "“";
}

.glow-testimonial__rating {
  position: relative;
  display: inline-block;
  width: fit-content;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.13em;
}

.glow-testimonial__rating span:first-child {
  color: #cfcfcf;
}

.glow-testimonial__rating span:last-child {
  position: absolute;
  inset: 0 auto auto 0;
  width: calc(var(--glow-rating) / 5 * 100%);
  overflow: hidden;
  color: #ffc107;
}

.glow-testimonial__heading {
  margin: 20px 0 0;
  font-family: var(--sort-title-font);
  font-size: var(--glow-review-card-heading-size);
  font-weight: 700;
  line-height: 1.25;
}

.glow-testimonial__quote {
  margin: 16px 0 28px;
  font-size: var(--glow-review-quote-size);
  line-height: 1.5;
  color: #202125;
}

.glow-testimonial__customer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.glow-testimonial__avatar {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.glow-testimonial__name,
.glow-testimonial__location {
  margin: 0;
}

.glow-testimonial__name {
  font-size: 18px;
  font-weight: 700;
}

.glow-testimonial__location {
  margin-top: 3px;
  font-size: 13px;
  color: #66676b;
}

.glow-testimonials__controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.glow-testimonials__control {
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  color: rgb(var(--color-text));
  cursor: pointer;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
}

.glow-testimonials__control svg {
  width: 22px;
}

@media (max-width: 991px) {
  .glow-testimonials {
    padding-top: min(var(--glow-review-padding-top), 56px);
    padding-bottom: min(var(--glow-review-padding-bottom), 56px);
  }

  .glow-testimonials__inner {
    padding-inline: 20px;
  }

  .glow-testimonials__header {
    margin-bottom: 28px;
  }

  .glow-testimonials__heading {
    font-size: var(--glow-review-heading-size-mobile);
  }

  .glow-testimonials__track {
    grid-auto-columns: var(--glow-review-mobile-width);
    gap: 16px;
    padding-bottom: 15px;
    overflow-x: auto;
    scrollbar-color: currentColor transparent;
    scrollbar-width: thin;
  }

  .glow-testimonials__track::-webkit-scrollbar {
    display: block;
    height: 6px;
  }

  .glow-testimonials__track::-webkit-scrollbar-thumb {
    background: currentColor;
  }

  .glow-testimonial {
    min-height: 300px;
    padding: 28px 24px;
  }
}
