.lm-customer-testimonials {
  background: #f5f1ed;
  padding: 52px 0 56px;
  width: 100%;
  margin-top: 0;
  --lm-testimonials-per-view: 4;
  --lm-testimonial-gap: 26px;
}

.lm-customer-testimonials.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
}

.lm-customer-testimonials__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.lm-customer-testimonials__header {
  text-align: center;
  margin-bottom: 36px;
}

.lm-customer-testimonials__title {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  color: #2c1810;
}

.lm-customer-testimonials__subtitle {
  margin: 0;
  font-size: 16px;
  color: #7b6f66;
}

.lm-customer-testimonials__slider {
  position: relative;
}

.lm-customer-testimonials__track {
  display: flex;
  gap: var(--lm-testimonial-gap, 26px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  margin-bottom: -6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.lm-customer-testimonials__track::-webkit-scrollbar {
  display: none;
}

.lm-customer-testimonials__track.is-dragging {
  cursor: grabbing;
}

.lm-customer-testimonial {
  flex: 0 0 calc((100% - (var(--lm-testimonials-per-view, 4) - 1) * var(--lm-testimonial-gap, 26px)) / var(--lm-testimonials-per-view, 4));
  max-width: calc((100% - (var(--lm-testimonials-per-view, 4) - 1) * var(--lm-testimonial-gap, 26px)) / var(--lm-testimonials-per-view, 4));
  background: #f9f5f1;
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lm-customer-testimonial__media {
  position: relative;
  padding-top: 56%;
  background: #efe8e2;
  overflow: hidden;
}

.lm-customer-testimonial__image,
.lm-customer-testimonial__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-customer-testimonial__content {
  padding: 28px 26px 26px;
  text-align: center;
}

.lm-customer-testimonial__stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
  color: #b8956a;
}

.lm-customer-testimonial__star {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.lm-customer-testimonial__quote {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #5b4f46;
  min-height: 72px;
}

.lm-customer-testimonial__name {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2c1810;
}

.lm-customer-testimonials__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
}

.lm-customer-testimonials__dot {
  all: unset !important;
  box-sizing: border-box !important;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  border-radius: 999px !important;
  border: 0 !important;
  background: rgba(184, 149, 106, 0.3) !important;
  background-image: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  display: inline-block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: none !important;
  outline: none !important;
  line-height: 1 !important;
  font-size: 0 !important;
  transform: none !important;
  transition: width 200ms ease, background-color 200ms ease;
}

.lm-customer-testimonials__dot.is-active {
  width: 46px !important;
  height: 10px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  border-radius: 999px !important;
  background: #b8956a !important;
}

.lm-customer-testimonials:not(.is-slider) .lm-customer-testimonials__dots {
  display: none;
}

@media (max-width: 1024px) {
  .lm-customer-testimonials {
    padding: 46px 0 48px;
  }

  .lm-customer-testimonials__title {
    font-size: 34px;
  }

  .lm-customer-testimonials {
    --lm-testimonials-per-view: 2;
  }
}

@media (max-width: 640px) {
  .lm-customer-testimonials {
    padding: 40px 0 42px;
    --lm-testimonials-per-view: 1;
    --lm-testimonial-gap: 18px;
  }

  .lm-customer-testimonials__title {
    font-size: 28px;
  }

  .lm-customer-testimonial__content {
    padding: 22px 20px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lm-customer-testimonials__track {
    scroll-behavior: auto;
  }

  .lm-customer-testimonials__dot {
    transition: none;
  }
}

.lm-customer-testimonial:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(44, 24, 16, 0.12);
}

@media (max-width: 640px) {
  .lm-customer-testimonial:hover {
    transform: none;
    box-shadow: none;
  }
}
