/* Review / 10 — Figma */

body:has(.sp-reviews) .page,
body:has(.sp-reviews) .content {
  overflow: visible;
}

.sp-reviews {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 80px 240px 160px;
  background: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.sp-reviews *,
.sp-reviews *::before,
.sp-reviews *::after {
  box-sizing: border-box;
}

.sp-reviews__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.sp-reviews__head {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.sp-reviews__title {
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 48px;
  line-height: 52px;
  color: #000;
}

.sp-reviews__rating {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 10px 16px 10px 12px;
  background: #ecf8ef;
  border-radius: 10px;
  text-decoration: none !important;
  color: #000 !important;
  flex: none;
}

.sp-reviews__rating:hover {
  background: #e0f4e5;
}

.sp-reviews__rating-icon {
  display: block;
  width: 32px;
  height: 32px;
  flex: none;
}

.sp-reviews__rating-value {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #000;
}

.sp-reviews__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  width: 100%;
}

.sp-reviews__swiper {
  width: 100%;
  overflow: hidden;
}

.sp-reviews__swiper .swiper-slide {
  height: auto;
}

.sp-reviews__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  min-height: 344px;
  height: 344px;
  padding: 32px;
  background: #f5f6f8;
  border-radius: 20px;
}

.sp-reviews__card-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.sp-reviews__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.sp-reviews__avatar-wrap {
  position: relative;
  flex: none;
  width: 60px;
  height: 60px;
}

.sp-reviews__avatar {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 32px;
  object-fit: cover;
  background: #d2d5db;
}

.sp-reviews__avatar.is-fallback {
  background: linear-gradient(135deg, #d2d5db, #9ea2ae);
}

.sp-reviews__verified {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #19aa1e;
  border-radius: 9999px;
  border: 2px solid #f5f6f8;
}

.sp-reviews__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.sp-reviews__name {
  font-weight: 500;
  font-size: 20px;
  line-height: 32px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.sp-reviews__date {
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #5a616c;
}

.sp-reviews__stars {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 4px;
  flex: none;
}

.sp-reviews__star {
  display: block;
  width: 24px;
  height: 24px;
}

.sp-reviews__card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.sp-reviews__text {
  margin: 0;
  width: 100%;
  max-height: 140px;
  overflow: hidden;
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #131927;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.sp-reviews__source {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #006ab5 !important;
  text-decoration: none !important;
  transition: opacity 0.15s ease;
}

.sp-reviews__source:hover {
  text-decoration: none !important;
  color: #006ab5 !important;
  opacity: 0.72;
}

.sp-reviews__footer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  width: 100%;
}

.sp-reviews__all {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  min-width: 153px;
  height: 52px;
  padding: 14px 24px;
  border-radius: 10px;
  background: #e6f4ff;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #006ab5 !important;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.sp-reviews__all:hover {
  background: #d6ebff;
}

.sp-reviews__nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sp-reviews__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 2px solid #d2d5db;
  border-radius: 150px;
  background: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}

.sp-reviews__arrow:hover:not(:disabled) {
  opacity: 1;
}

.sp-reviews__arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.sp-reviews__arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.sp-reviews__scrollbar {
  display: none;
}

.sp-reviews__scrollbar.swiper-scrollbar {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  top: auto;
  width: 79px;
  height: 6px;
  margin: 0;
  background: #ebedf0;
  border-radius: 12px;
  overflow: hidden;
}

.sp-reviews__scrollbar .swiper-scrollbar-drag {
  background: #6d717f;
  border-radius: 12px;
  height: 100%;
  left: 0;
  top: 0;
}

@media (max-width: 1599px) {
  .sp-reviews {
    padding: 64px 64px 120px;
  }
}

@media (max-width: 1199px) {
  .sp-reviews {
    padding: 48px 32px 80px;
  }

  .sp-reviews__title {
    font-size: 36px;
    line-height: 40px;
  }

  .sp-reviews__card {
    min-height: 320px;
    height: auto;
    gap: 28px;
    padding: 24px;
  }

  .sp-reviews__name {
    max-width: 160px;
  }
}

/* Mobile — Figma Frame 2043684003 */
@media (max-width: 776px) {
  .sp-reviews {
    padding: 40px 16px;
    overflow: visible;
  }

  .sp-reviews__inner {
    gap: 24px;
    max-width: none;
    overflow: visible;
  }

  .sp-reviews__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
  }

  .sp-reviews__title {
    font-size: 32px;
    line-height: 40px;
  }

  .sp-reviews__title-extra {
    display: none;
  }

  .sp-reviews__rating {
    height: 40px;
    gap: 10px;
    padding: 8px 12px;
  }

  .sp-reviews__rating-icon {
    width: 20px;
    height: 20px;
  }

  .sp-reviews__rating-value {
    font-size: 18px;
    line-height: 24px;
  }

  .sp-reviews__content {
    gap: 24px;
    overflow: visible;
  }

  .sp-reviews__swiper {
    width: calc(100% + 16px);
    margin-right: -16px;
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
  }

  .sp-reviews__swiper:active {
    cursor: grabbing;
  }

  .sp-reviews__swiper .swiper-slide {
    width: 335px;
    height: auto;
  }

  .sp-reviews__card {
    min-height: 338px;
    height: auto;
    gap: 24px;
    padding: 24px;
    border-radius: 16px;
  }

  .sp-reviews__card-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .sp-reviews__author {
    gap: 16px;
  }

  .sp-reviews__avatar-wrap {
    width: 48px;
    height: 48px;
  }

  .sp-reviews__avatar {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
  }

  .sp-reviews__verified {
    right: -2px;
    bottom: -2px;
    width: 20px;
    height: 20px;
    border-width: 0;
  }

  .sp-reviews__verified svg {
    width: 10px;
    height: 10px;
  }

  .sp-reviews__name {
    max-width: 100%;
    font-size: 18px;
    line-height: 24px;
    color: #131927;
  }

  .sp-reviews__date {
    font-size: 14px;
    line-height: 20px;
    color: #4d5461;
  }

  .sp-reviews__star {
    width: 20px;
    height: 20px;
  }

  .sp-reviews__text {
    font-size: 16px;
    line-height: 24px;
    max-height: 144px;
    -webkit-line-clamp: 6;
    line-clamp: 6;
  }

  .sp-reviews__source {
    font-size: 15px;
    line-height: 22px;
  }

  .sp-reviews__footer {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }

  .sp-reviews__all {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
    height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .sp-reviews__nav {
    display: none;
  }

  .sp-reviews__scrollbar,
  .sp-reviews__scrollbar.swiper-scrollbar {
    display: block !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    width: 79px !important;
    height: 6px !important;
    flex: none;
  }
}
