.reviews-tps {
  --reviews-tps-accent: #cda24f;
  --reviews-tps-heading: #0d2a52;
  --reviews-tps-body: #24364d;
  --reviews-tps-card-bg: rgba(255, 255, 255, 0.76);
  --reviews-tps-arrow-bg: #ffffff;
  --reviews-tps-arrow-color: #cda24f;
  --reviews-tps-shadow: 0 18px 42px rgba(24, 35, 56, 0.12);
  --reviews-tps-image-width: 420px;
  --reviews-tps-image-height: 477px;
  --reviews-tps-card-width: 420px;
  --reviews-tps-card-height: 357px;
  --reviews-tps-card-overlap: 56px;
  position: relative;
  width: 100%;
  padding: 0 72px;
}

.reviews-tps__viewport {
  overflow: hidden;
  width: 100%;
}

.reviews-tps__track {
  display: flex;
  transition: transform 420ms ease;
  will-change: transform;
}

.reviews-tps__slide {
  box-sizing: border-box;
  flex: 0 0 100%;
  min-width: 100%;
}

.reviews-tps__empty-state {
  padding: 24px;
  border: 1px dashed rgba(13, 42, 82, 0.2);
  border-radius: 20px;
  color: var(--reviews-tps-heading);
  text-align: center;
}

.reviews-tps__content {
  display: grid;
  align-items: center;
  grid-template-columns: var(--reviews-tps-image-width) var(--reviews-tps-card-width);
  justify-content: center;
  min-height: calc(var(--reviews-tps-image-height) + 24px);
  padding: 12px 18px;
  transform: translateX(calc(var(--reviews-tps-card-overlap) / 2));
}

.reviews-tps__media {
  position: relative;
  z-index: 1;
  width: var(--reviews-tps-image-width);
}

.reviews-tps__image {
  display: block;
  width: var(--reviews-tps-image-width);
  height: var(--reviews-tps-image-height) !important;
  object-fit: cover;
  border-radius: 25px !important;
  box-shadow: 0 12px 30px rgba(26, 36, 56, 0.1);
}

.reviews-tps__card {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: var(--reviews-tps-card-width);
  height: var(--reviews-tps-card-height);
  margin-left: calc(var(--reviews-tps-card-overlap) * -1);
  padding: 37px 26px;
  border-radius: 25px;
  background: rgba(249, 248, 244, 0.75);
  box-shadow: 0px 4px 18.6px 1px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.reviews-tps__stars {
  display: flex;
  gap: 3px;
  color: rgba(205, 162, 79, 0.35);
  font-size: 24px;
  line-height: 1;
}

.reviews-tps__star.is-filled {
  color: rgba(196, 159, 88, 1);
}

.reviews-tps__title {
  margin: 0 0 5px;
  color: rgba(4, 32, 62, 1);
  font-family: "Times New Roman", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
}

.reviews-tps__subtitle {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 20px;
  color: rgba(196, 159, 88, 1);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.reviews-tps__message {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 15px;
  color: rgba(4, 32, 62, 1);
  font-size: 15px;
  line-height: 22px;
}

.reviews-tps__name {
  font-family: "Montserrat", sans-serif;
  color: rgba(4, 32, 62, 1);
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
}

.reviews-tps__address {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  color: rgba(4, 32, 62, 1);
  font-size: 15px;
  line-height: 22px;
}


.reviews-tps__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0 !important;
  border-radius: 16px;
  color: var(--reviews-tps-arrow-color) !important;
  box-shadow: 0 10px 24px rgba(24, 35, 56, 0.12);
  cursor: pointer;
  outline: none !important;
  appearance: none;
  -webkit-appearance: none;
  transform: translateY(-50%);
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.reviews-tps__arrow:hover,
.reviews-tps__arrow:active,
.reviews-tps__arrow:focus {
  border: 0 !important;
  outline: none !important;
  background: var(--reviews-tps-arrow-bg) !important;
  color: var(--reviews-tps-arrow-color) !important;
}

.reviews-tps__arrow:hover {
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 14px 30px rgba(24, 35, 56, 0.16);
}

.reviews-tps__arrow:focus-visible {
  border: 0 !important;
  outline: none !important;
}

.reviews-tps__arrow--prev {
  left: 0;
}

.reviews-tps__arrow--next {
  right: 0;
}

.reviews-tps__arrow svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 1024px) {
  .reviews-tps {
    padding: 0 56px;
  }

  .reviews-tps__content {
    grid-template-columns: minmax(220px, 420px) minmax(260px, 420px);
    gap: 0;
  }

  .reviews-tps__media {
    width: 100%;
    max-width: var(--reviews-tps-image-width);
  }

  .reviews-tps__image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 420 / 477;
  }

  .reviews-tps__card {
    width: 100%;
    max-width: var(--reviews-tps-card-width);
    height: auto;
    min-height: var(--reviews-tps-card-height);
    margin-left: calc(var(--reviews-tps-card-overlap) * -0.64);
    padding: 28px 28px;
  }
}

@media (max-width: 767px) {
  .reviews-tps {
    padding: 0 18px 72px;
  }

  .reviews-tps__content {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 8px 0;
    transform: none;
  }

  .reviews-tps__image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 420 / 477;
  }

  .reviews-tps__card {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin-left: 0;
  }

  .reviews-tps__arrow {
    top: auto;
    bottom: 0;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .reviews-tps__arrow:hover {
    transform: scale(1.03);
  }

  .reviews-tps__arrow--prev {
    left: calc(50% - 58px);
  }

  .reviews-tps__arrow--next {
    right: calc(50% - 58px);
  }
}
