/**
 * SkyPath Andes - Reviews carousel cards.
 */

.skypath-reviews,
.skypath-reviews * {
  box-sizing: border-box;
}

.skypath-reviews {
  --reviews-gap: 12px;
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
  
}

.skypath-reviews__row,
.skypath-reviews__swiper {
  width: 100%;
  overflow: hidden;
}

.skypath-reviews__row + .skypath-reviews__row {
  margin-top: var(--reviews-gap);
}

.skypath-reviews .swiper-wrapper {
  align-items: stretch;
  transition-timing-function: linear !important;
}

.skypath-reviews .swiper-slide {
  height: auto;
}

.skypath-reviews__row--reverse {
  direction: rtl;
}

.skypath-reviews__row--reverse .skypath-review-card {
  direction: ltr;
}

.skypath-review-card {
  position: relative;
  height: 280px;
  min-height: 280px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  contain: layout paint;
  border: 1px solid rgba(23, 35, 43, 0.10);
  border-radius: 14px;
  background: var(--idx-surface, #fff);
 
  color: var(--idx-text, #17232b);
}

.skypath-review-card__rating {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  font-family: var(--idx-font-body, "Manrope"), sans-serif;
  font-size: 14px;
  line-height: 1;
}

.skypath-review-card__rating .is-filled {
  color: var(--idx-primary, #005189);
}

.skypath-review-card__rating .is-empty {
  color: rgba(23, 35, 43, 0.18);
}

.skypath-review-card__review-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.skypath-review-card__quote {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
  font-family: var(--idx-font-body, "Manrope"), sans-serif;
  font-size: 14px;
  font-weight: 450;
  line-height: 1.58;
  color: var(--idx-text, #17232b);
}

.skypath-review-card__fade {
  display: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--idx-surface, #fff) 78%
  );
}

.skypath-review-card.has-overflow:not(.is-expanded) .skypath-review-card__fade {
  display: block;
}

.skypath-review-card:not(.has-overflow) .skypath-review-card__more {
  display: none !important;
}

.skypath-review-card__more {
  align-self: flex-start;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: var(--idx-font-body, "Manrope"), sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--idx-primary, #005189);
  cursor: pointer;
}

.skypath-review-card__more:hover,
.skypath-review-card__more:focus-visible {
  text-decoration: underline;
}

.skypath-review-card__more[hidden] {
  display: none;
}

.skypath-review-card.is-expanded .skypath-review-card__review-wrap {
  overflow-y: auto;
  padding-right: 4px;
}

.skypath-review-card.is-expanded .skypath-review-card__quote {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.skypath-review-card.is-expanded .skypath-review-card__fade {
  display: none;
}

.skypath-review-card__author {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.skypath-review-card__avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--idx-font-heading, "Manrope"), sans-serif;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  color: #fff;
}

.skypath-review-card__avatar--0 { background: #005189; }
.skypath-review-card__avatar--1 { background: #6a8c26; }
.skypath-review-card__avatar--2 { background: #8a4f3d; }
.skypath-review-card__avatar--3 { background: #556b7a; }
.skypath-review-card__avatar--4 { background: #7a5b8f; }
.skypath-review-card__avatar--5 { background: #3f7c74; }
.skypath-review-card__avatar--6 { background: #a0643b; }
.skypath-review-card__avatar--7 { background: #4f628a; }

.skypath-review-card__identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.skypath-review-card__name,
.skypath-review-card__subtitle {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skypath-review-card__name {
  font-family: var(--idx-font-heading, "Manrope"), sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--idx-text, #17232b);
}

.skypath-review-card__subtitle {
  font-family: var(--idx-font-body, "Manrope"), sans-serif;
  font-size: 10px;
  font-weight: 450;
  line-height: 1.25;
  color: var(--idx-text-muted, #66737a);
}

@media (max-width: 1024px) {
  .skypath-review-card {
    height: 270px;
    min-height: 270px;
    max-height: 270px;
    padding: 20px;
  }
}

@media (max-width: 767px) {
  .skypath-reviews {
    --reviews-gap: 10px;
  }

  .skypath-reviews [data-mobile-hidden] {
    display: none !important;
  }

  .skypath-review-card {
    height: 285px;
    min-height: 285px;
    max-height: 285px;
    padding: 20px;
  }

  .skypath-review-card__quote {
    font-size: 13px;
  }
}
