.customer-testimonials {
  overflow: hidden;
  color: #202020;
  background: var(--testimonials-background);
}

.customer-testimonials__inner {
  padding: 72px 0 84px;
}

.customer-testimonials__heading {
  padding-inline: 24px;
  margin: 0 0 50px;
  font-size: clamp(30px, 3vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-align: center;
}

.customer-testimonials__carousel {
  position: relative;
  display: block;
  width: 100%;
}

.customer-testimonials__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.customer-testimonials__track {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 30px 2.5vw;
  margin: 0;
  will-change: transform;
}

.customer-testimonials__track.is-animating {
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.customer-testimonials__viewport:has(.customer-testimonials__track.is-dragging) {
  cursor: grabbing;
}

.customer-testimonials__track img,
.customer-testimonials__track a {
  -webkit-user-drag: none;
}

.customer-testimonials__slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.customer-testimonials__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 380px;
  padding: 32px 36px 28px;
  text-align: center;
  background: var(--testimonials-card-background);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.customer-testimonials__slide.is-active {
  position: relative;
  z-index: 2;
  transform: scale(1.08);
}

.customer-testimonials__slide.is-active .customer-testimonials__card {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.customer-testimonials__stars {
  margin-bottom: 22px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.08em;
}

.customer-testimonials__product-title {
  display: inline-block;
  margin-bottom: 14px;
  color: inherit;
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 8px;
}

.customer-testimonials__review {
  min-height: 66px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.55;
}

.customer-testimonials__product-image {
  width: 150px;
  height: 100px;
  margin: auto 0 18px;
}

.customer-testimonials__product-image picture,
.customer-testimonials__product-image img,
.customer-testimonials__product-image svg {
  width: 100%;
  height: 100%;
}

.customer-testimonials__product-image img {
  object-fit: contain;
}

.customer-testimonials__author {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.customer-testimonials__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  height: 10px;
  margin-top: 4px;
}

.customer-testimonials__dots .theme-carousel-indicator__dot-item-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.customer-testimonials__dots .theme-carousel-indicator__dot-item {
  width: 6px;
  height: 6px;
  padding: 0;
  background-color: rgba(32, 32, 32, 0.28);
  border: 0;
  border-radius: 50%;
  outline: none;
  transition: 0.25s ease;
}

.customer-testimonials__dots .theme-carousel-indicator__dot-item.is-active {
  width: 10px;
  height: 10px;
  background-color: #d8ad45;
}

.customer-testimonials__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: flex;
  width: 44px;
  height: 44px;
  padding: 0;
  color: #202020;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(32, 32, 32, 0.18);
  border-radius: 50%;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-50%);
}

.customer-testimonials__arrow svg {
  width: 18px;
  height: 18px;
  margin: auto;
}

.customer-testimonials__arrow--previous {
  left: 18px;
}

.customer-testimonials__arrow--previous svg {
  transform: rotate(90deg);
}

.customer-testimonials__arrow--next {
  right: 18px;
}

.customer-testimonials__arrow--next svg {
  transform: rotate(-90deg);
}

@media (max-width: 959px) {
  .customer-testimonials__inner {
    padding: 48px 0 56px;
  }

  .customer-testimonials__heading {
    margin-bottom: 24px;
    font-size: 30px;
  }

  .customer-testimonials__track {
    gap: 16px;
    padding: 18px 7vw 26px;
  }

  .customer-testimonials__slide {
    flex-basis: 86vw;
  }

  .customer-testimonials__slide.is-active {
    transform: none;
  }

  .customer-testimonials__card {
    min-height: 390px;
    padding: 28px 24px 24px;
  }

  .customer-testimonials__arrow {
    display: none;
  }
}
