/*
  Reviews panel custom CSS.
  Keep all reviews/testimonials panel modifications in this file for easier final merge.
*/


.reviews .be-container {
    width: min(calc(100% - 160px), 1340px);
}

@media (max-width: 1500px) and (min-width: 1201px) {
.reviews .be-container {
    width: min(calc(100% - 120px), 1340px);
}
}

@media (max-width: 1200px) and (min-width: 1025px) {
.reviews .be-container {
    width: min(calc(100% - 120px), 1340px);

}
}

@media (max-width: 1024px) and (min-width: 768px) {
.reviews .be-container {
    width: min(calc(100% - 80px), 1340px);
}
}

@media (max-width: 767px) { 
.reviews .be-container {
    width: min(calc(100% - 40px), 1340px);
}
}



.reviews {
    padding: 0 0 70px;
    background: linear-gradient(to bottom, var(--be-white) 0 75%, var(--be-blush) 75% 100%);
}

.reviews__panel {
  --reviews-panel-plum: #4a1c37;
  --reviews-panel-coral: #fb7f59;
  --reviews-panel-logo: #8f5a88;
  --reviews-panel-line: rgba(143, 44, 75, 0.28);
  --reviews-inner-inset: clamp(50px, 7.2vw, 104px);
  padding: 78px var(--reviews-inner-inset) 52px;
  border-radius: 18px;
  background: #f0e2f0;
  overflow: hidden;
  isolation: isolate;
}

.reviews__panel::before {
  inset: 0 auto 0 -90px;
  width: calc(100% + 120px);
  height: 100%;
  min-width: 0;
  min-height: 0;
  background: url("../assets/reviews-panel/icon-box-shape.svg") center top / cover no-repeat;
  opacity: 1;
  transform: none;
}

.reviews__panel::after {
  display: none;
}

.reviews__head .be-heading {
    color: var(--reviews-panel-plum);
    font-size: 32px;
    line-height: 1.1;
}

.reviews__head .be-heading span {
    color: var(--reviews-panel-coral);
    background: linear-gradient(90deg, #ff965e 0%, #ff5b62 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.reviews__head .be-heading em {
  color: var(--reviews-panel-plum);
}

.reviews__head h2 {
  margin-top: 5px;
  color: var(--reviews-panel-plum);
  font-size: 18px;
  font-weight: 300;
}

.reviews__slider {
  position: relative; margin-top: 54px;
}

.reviews__grid {
  grid-auto-columns: calc((100% - 66px) / 3);
  gap: 33px;
  padding: 0 0 28px;
  cursor: grab;
  scroll-snap-type: x mandatory;
  touch-action: pan-y pinch-zoom;
}

.reviews__arrow { position: absolute; top: calc(50% - 14px); z-index: 4; width: 37px; height: 37px; border: 1px solid rgba(143, 44, 75, 0.18); border-radius: 50%; background-color: var(--be-white); background-position: center; background-repeat: no-repeat; background-size: 18px auto; box-shadow: 0 7px 16px rgba(80, 31, 58, 0.12); color: transparent; cursor: pointer; font-size: 0; transform: translateY(-50%); transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; } .reviews__arrow--prev { left: calc(var(--reviews-inner-inset) * -0.66); background-image: url("../assets/product-zone/carousel-arrow-left-active.svg"); } .reviews__arrow--next { right: calc(var(--reviews-inner-inset) * -0.66); background-image: url("../assets/product-zone/carousel-arrow-right-active.svg"); } .reviews__arrow:hover:not(:disabled), .reviews__arrow:focus-visible:not(:disabled) { border-color: rgba(143, 44, 75, 0.32); box-shadow: 0 10px 22px rgba(80, 31, 58, 0.16); transform: translateY(calc(-50% - 1px)); } .reviews__arrow.is-disabled, .reviews__arrow:disabled { border-color: rgba(143, 44, 75, 0.14); box-shadow: 0 5px 12px rgba(80, 31, 58, 0.08); cursor: default; opacity: 0.42; } .reviews__arrow--prev.is-disabled, .reviews__arrow--prev:disabled { background-image: url("../assets/product-zone/carousel-arrow-left.svg"); } .reviews__arrow--next.is-disabled, .reviews__arrow--next:disabled { background-image: url("../assets/product-zone/carousel-arrow-right.svg"); } .reviews__grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.reviews__grid img {
  -webkit-user-drag: none;
  user-select: none;
}

.review-card {
  grid-template-rows: 150px 38px 70px minmax(min-content, 1fr) 51px;
  min-height: 318px;
  padding: 38px 30px 32px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(80, 31, 58, 0.08);
}

.review-card__avatar {
  --review-avatar-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-14%20-16%20393%20373%22%3E%3Cpath%20d%3D%22M340.771%20290.698C335.278%20298.103%20328.796%20304.393%20321.506%20309.396C270.441%20344.432%20195.899%20349.214%20122.108%20322.195C60.9761%20299.809%2014.4731%20260.057%203.63809%20220.919C-4.93891%20189.954%204.14809%20155.219%2029.9161%20120.47C82.8041%2049.1539%20194.835%20-9.55309%20256.093%201.94591C289.102%208.14391%20320.455%2043.5329%20342.116%2099.0419C366.276%20160.957%20375.23%20244.233%20340.771%20290.698Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E");
  position: relative;
  display: block;
  width: 124px;
  aspect-ratio: 365 / 341;
}

.review-card__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../assets/reviews-panel/testimonial-border.svg") center / 100% 100% no-repeat;
  z-index: 2;
}

.review-card__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  -webkit-mask-image: var(--review-avatar-mask);
  -webkit-mask-position: center;
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-image: var(--review-avatar-mask);
  mask-position: center;
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
}

.review-card__avatar--logo img {
  width: 84%;
  height: 84%;
  margin: 8%;
  object-fit: contain;
}

.review-card strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
  color: #993a8b;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
}

.review-card strong::after {
  content: "";
  width: 80px;
  height: 13px;
  background: url("../assets/reviews-panel/testimonial-star.svg") left center / contain no-repeat;
}

.review-card h3 {
  margin: 10px 0 7px;
  color: var(--reviews-panel-plum);
  font-size: clamp(20px, 1.48vw, 24px);
  line-height: 1.12;
  font-weight: 700;
}

.review-card p {
  max-width: 274px;
  color: #6b405d;
  font-size: 14px;
  line-height: 1.55;
}

.review-card span {
  margin-top: 24px;
  color: var(--reviews-panel-plum);
  font-size: 14px;
  font-weight: 800;
}

.reviews__dots {
    gap: 7px;
    margin: 20px 0 60px;
}

.reviews__dots button,
.reviews__dots button.is-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.reviews__dots button {
  background: #cda7c8;
  opacity: 1;
}

.reviews__dots button.is-active {
  background: #8f2c78;
}

.reviews__logos-carousel {
  overflow: hidden;
  padding-top: 30px;
  border-top: 1px solid var(--reviews-panel-line);
}

.reviews__logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: clamp(38px, 5.4vw, 78px);
  opacity: 0.9;
  animation: reviews-logo-scroll 36s linear infinite;
}

.reviews__logos-track img {
  display: block;
  flex: 0 0 auto;
  width: 170px;
  max-width: 170px;
  height: 74px;
  object-fit: contain;
}

@keyframes reviews-logo-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - clamp(19px, 2.7vw, 39px)));
  }
}

@media (max-width: 1024px) {
  .reviews__panel {
    --reviews-inner-inset: 34px;
    padding-top: 60px;
  }

  .reviews__grid {
    grid-auto-columns: calc((100% - 28px) / 2);
    gap: 28px;
  }
  
  .reviews__logos-track {
    gap: 60px;
  }
}

@media (max-width: 640px) {
  .reviews__panel {
    --reviews-inner-inset: 20px;
    padding: 44px var(--reviews-inner-inset) 38px;
  }

  .reviews__panel::before {
    inset: 0 auto 0 -48px;
    width: calc(100% + 72px);
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  .reviews__panel::after {
    display: none;
  }

  .reviews__slider {
    margin-top: 34px;
  }

  .reviews__grid {
    grid-auto-columns: 100%;
    gap: 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    -webkit-overflow-scrolling: touch;
  }

  .review-card {
    min-height: 300px;
    padding: 32px 22px 28px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .review-card p {
    font-size: 13px;
  }

  .reviews__logos-carousel {
    padding-top: 24px;
  }

  .reviews__logos-track {
    gap: 34px;
    animation-duration: 30s;
  }

  .reviews__logos-track img {
    width: 138px;
    max-width: 138px;
    height: 60px;
  }
  .reviews__head .be-heading {
    color: var(--reviews-panel-plum);
    font-size: 28px;
    line-height: 1.1;
}
.reviews__head h2 {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 300;
}
}
