.tms-slider {
  --tms-gap: 36px;
  --tms-per-view: 4.5;
  --tms-duration: 500ms;
  position: relative;
  width: 100%;
  overflow: visible;
  font-family: inherit;
  box-sizing: border-box;
}

.tms-slider *,
.tms-slider *::before,
.tms-slider *::after {
  box-sizing: border-box;
}

.tms-viewport {
  overflow: hidden;
  width: 100%;
  padding-block: 2px calc(var(--tms-tail, 43px) + 2px);
  touch-action: pan-y;
  cursor: grab;
}

.tms-viewport.is-dragging {
  cursor: grabbing;
}

.tms-track {
  display: flex;
  align-items: flex-start;
  gap: var(--tms-gap);
  will-change: transform;
  transition: transform var(--tms-duration) cubic-bezier(.22,.61,.36,1);
}

.tms-viewport.is-dragging .tms-track {
  transition: none;
  user-select: none;
}

.tms-slide {
  position: relative;
  flex: 0 0 calc((100% - (var(--tms-per-view) - 1) * var(--tms-gap)) / var(--tms-per-view));
  min-width: 0;
}

.tms-slide__surface {
  position: relative;
  width: 100%;
  height: 388px;
  overflow: hidden;
  border-radius: 38px;
}

.tms-slide--image .tms-slide__surface {
  background: #f3f3f3;
}

.tms-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.tms-slide--review {
  --tms-card-color: #fff0da;
  --tms-tail: 43px;
}

.tms-slide--review .tms-slide__surface {
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 48px 44px 78px;
  text-align: center;
  background: var(--tms-card-color);
}

.tms-slide--review .tms-slide__surface::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 16%;
  bottom: calc(var(--tms-tail) * -0.9);
  width: calc(var(--tms-tail) * 1.2);
  height: var(--tms-tail);
  background: var(--tms-card-color);
  clip-path: polygon(0 0, 100% 0, 58% 78%, 12% 100%, 24% 44%);
}

.tms-stars,
.tms-review-title,
.tms-review-text,
.tms-author {
  position: relative;
  z-index: 1;
}

.tms-stars {
  display: flex;
  justify-content: center;
  gap: .08em;
  margin: 0 0 5px;
  color: #ff7a00;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 0;
}

.tms-stars .is-empty {
  opacity: .25;
}

.tms-review-title {
  margin: 0 0 20px;
  color: #171522;
  font-size: clamp(23px, 1.65vw, 31px);
  font-weight: 800;
  line-height: 1.15;
}

.tms-review-text {
  margin: 0;
  color: #535365;
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 500;
  line-height: 1.35;
}

.tms-author {
  position: absolute;
  left: 50%;
  bottom: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100% - 38px);
  padding: 12px 26px;
  border-radius: 999px;
  background: #fff;
  color: #535365;
  font-size: 16px;
  line-height: 1.25;
  white-space: nowrap;
  transform: translate(-50%, 50%);
}

.tms-author strong {
  font-weight: 800;
}

.tms-verified-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  color: #82c94c;
}

.tms-verified-icon svg {
  width: 100%;
  height: 100%;
}

.tms-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 3.3vw, 64px);
  margin-top: 62px;
}

.tms-arrow,
.tms-all-reviews {
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease;
}

.tms-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #29235c;
  color: #fff;
  cursor: pointer;
}

.tms-arrow svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tms-arrow:hover,
.tms-arrow:focus-visible,
.tms-all-reviews:hover,
.tms-all-reviews:focus-visible {
  transform: translateY(-2px);
}

.tms-arrow:focus-visible,
.tms-all-reviews:focus-visible {
  outline: 3px solid rgba(41,35,92,.28);
  outline-offset: 3px;
}

.tms-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.tms-all-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 313px;
  min-height: 60px;
  padding: 12px 24px;
  border: 2px solid #e1e0ee;
  border-radius: 9px;
  background: #fff;
  color: #17124f;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.tms-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 767px) {
  .tms-slide--review .tms-slide__surface {
    padding: 38px 26px 70px;
  }

  .tms-author {
    max-width: calc(100% - 24px);
    padding-inline: 18px;
    font-size: 14px;
  }

  .tms-navigation {
    gap: 12px;
  }

  .tms-all-reviews {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 270px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tms-track,
  .tms-arrow,
  .tms-all-reviews {
    transition-duration: 1ms !important;
  }
}

