/* =========================
   Review Page
========================= */

.sr-review-page {
  padding: 40px 0 80px;
}

.sr-review-page .sr-container {
  max-width: 1170px;
  padding-left: 0;
  padding-right: 0;
}

.sr-review-hero-title {
  width: 100%;
  height: 64px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background: #d6dae0;

  font-size: 20px;
  font-weight: 700;
  line-height: 1;

  color: #464855;
}


/* =========================
   Review Videos
========================= */

.sr-review-videos {
  margin-top: 30px;
}

.sr-review-videos__grid {
  display: grid;
  grid-template-columns: repeat(4, 270px);
  gap: 30px;
}

.sr-review-video {
  position: relative;

  width: 270px;
  height: 270px;

  overflow: hidden;

  border: 1px solid #d6dae0;
  border-radius: 10px;

  background: #d6dae0;

  cursor: pointer;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.sr-review-video img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;

  transition: transform 0.35s ease;
}

.sr-review-video::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background: linear-gradient(
    180deg,
    rgba(70, 72, 85, 0.05) 0%,
    rgba(70, 72, 85, 0.28) 100%
  );

  transition: background 0.25s ease;
}

.sr-review-video::after {
  content: "";

  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;

  width: 54px;
  height: 54px;

  transform: translate(-50%, -50%);

  border-radius: 50%;

  background:
    #ffffff
    url("data:image/svg+xml,%3Csvg width='18' height='20' viewBox='0 0 18 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.2 8.4C17.4 9.1 17.4 10.9 16.2 11.6L3.2 19.1C2 19.8 0.5 18.9 0.5 17.5V2.5C0.5 1.1 2 0.2 3.2 0.9L16.2 8.4Z' fill='%23464855'/%3E%3C/svg%3E")
    no-repeat center;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease;
}

.sr-review-video:hover {
  transform: translateY(-2px);
  border-color: #a7acb5;
  box-shadow: 0 14px 34px rgba(70, 72, 85, 0.16);
}

.sr-review-video:hover img {
  transform: scale(1.04);
}

.sr-review-video:hover::before {
  background: linear-gradient(
    180deg,
    rgba(70, 72, 85, 0.08) 0%,
    rgba(70, 72, 85, 0.36) 100%
  );
}

.sr-review-video:hover::after {
  transform: translate(-50%, -50%) scale(1.06);
}

/* =========================
   Load More
========================= */

.sr-review-load-more {
  width: 220px;
  height: 50px;

  margin: 30px auto 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #8592a4;
  border-radius: 10px;
  background: transparent;

  font-family: var(--sr-font-main);
  font-size: 14px;
  font-weight: 500;

  color: #464855;

  cursor: pointer;
}

/* =========================
   Video Modal
========================= */

.sr-review-video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(0, 0, 0, 0.72);
}

.sr-review-video-modal.is-open {
  display: flex;
}

.sr-review-video-modal__video {
  width: 100%;
  max-width: 900px;
  max-height: 80vh;

  border-radius: 10px;
  background: #000000;
}

.sr-review-video-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;
  background: #ffffff;

  font-size: 30px;
  line-height: 1;

  color: #464855;

  cursor: pointer;
}

/* =========================
   Customer Reviews
========================= */

.sr-review-customer {
  margin-top: 40px;
}

.sr-review-customer__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
}

/* =========================
   Trustpilot
========================= */

.sr-review-page .sr-home-trustpilot {
  margin-top: 40px;
}

/* =========================
   Customer Review Modal
========================= */

.sr-customer-review-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background: rgba(70, 72, 85, 0.72);
}

.sr-customer-review-modal.is-open {
  display: flex;
}

.sr-customer-review-modal__dialog {
  position: relative;

  width: min(1100px, 95vw);
  max-height: 90vh;

  display: grid;
  grid-template-columns: minmax(420px, 1fr) 420px;

  overflow: visible;

  border-radius: 10px;
  background: #ffffff;
}

.sr-customer-review-modal__close {
  position: absolute;
  top: -5px;

  right: -45px;
  z-index: 20;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;
  background: #ffffff;

  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  color: #464855;

  cursor: pointer;
}

/* Media */

.sr-customer-review-modal__media {
  position: relative;
 overflow: hidden;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
}

.sr-customer-review-modal__image {
  width: 100%;
  min-height: 600px;

  padding: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.sr-customer-review-modal__image img {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: calc(90vh - 60px);

  display: block;
  object-fit: contain;
}

/* Photo arrows inside image */

.sr-customer-review-modal__arrow {
  position: absolute;
  top: 50%;
  z-index: 10;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(4px);

  font-size: 28px;
  line-height: 1;

  color: #464855;

  cursor: pointer;

  transform: translateY(-50%);
}

.sr-customer-review-modal__arrow--prev {
  left: 16px;
}

.sr-customer-review-modal__arrow--next {
  right: 16px;
}

.sr-customer-review-modal__counter {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 10;

  transform: translateX(-50%);

  padding: 8px 12px;

  border-radius: 999px;
  background: rgba(0, 0, 0, .65);

  font-size: 13px;
  font-weight: 500;
  line-height: 1;

  color: #ffffff;
}

/* Content */

.sr-customer-review-modal__content {
  position: relative;
  overflow-y: auto;
  border-radius: 0 10px 10px 0;
  background: #ffffff;
  overflow-y: auto;

  padding: 40px;

  display: flex;
  flex-direction: column;
}

.sr-customer-review-modal__content::after {
  content: "";

  position: sticky;
  bottom: 0;

  display: block;

  height: 40px;
  margin-top: -40px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0),
    rgba(255,255,255,1)
  );

  pointer-events: none;
  z-index: 2;
}

.sr-customer-review-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  margin-bottom: 16px;
}

.sr-customer-review-modal__author,
.sr-customer-review-modal__date {
  font-size: 16px;
  line-height: 1;
  color: #464855;
}

.sr-customer-review-modal__author {
  font-weight: 700;
}

.sr-customer-review-modal__date {
  font-weight: 400;
}

.sr-customer-review-modal__rating {
  margin-bottom: 16px;

  font-size: 18px;
  line-height: 1;
  letter-spacing: 2px;

  color: #f4b400;
}

.sr-customer-review-modal__title {
  margin: 0 0 12px;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;

  color: #464855;
}

.sr-customer-review-modal__text {
  margin: 0;

  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;

  color: #464855;
}

/* Product link */

.sr-customer-review-modal__product {
  width: 100%;

  margin-top: 30px;
  margin-bottom: 24px;
  padding: 12px;

  display: flex;
  align-items: center;
  gap: 12px;

  border: 1px solid #d6dae0;
  border-radius: 10px;
  background: #f5f6f8;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;

  color: #464855;
  text-decoration: none;
}

.sr-customer-review-modal__product:hover {
  text-decoration: underline;
}

.sr-customer-review-modal__product-image {
  width: 52px;
  height: 52px;

  flex: 0 0 52px;

  border-radius: 8px;
  overflow: hidden;

  background: #ffffff;
}

.sr-customer-review-modal__product-image img {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: cover;
}

.sr-customer-review-modal__product-title {
  min-width: 0;

  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;

  color: #464855;
}

/* Desktop review arrows */

.sr-customer-review-modal__controls {
  display: block;
}

.sr-customer-review-modal__close-bottom {
  display: none;
}

.sr-customer-review-modal__review-arrow {
  position: fixed;
  top: 50%;
  z-index: 10001;

  width: 54px;
  height: 54px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 50%;
  background: #ffffff;

  font-size: 0;
  line-height: 1;

  color: #464855;

  cursor: pointer;

  transform: translateY(-50%);
}

.sr-customer-review-modal__review-arrow::before {
  font-size: 34px;
  line-height: 1;
}

.sr-customer-review-modal__review-arrow--prev {
  left: max(24px, calc((100vw - min(1100px, 95vw)) / 2 - 76px));
}

.sr-customer-review-modal__review-arrow--prev::before {
  content: "‹";
}

.sr-customer-review-modal__review-arrow--next {
  right: max(24px, calc((100vw - min(1100px, 95vw)) / 2 - 76px));
}

.sr-customer-review-modal__review-arrow--next::before {
  content: "›";
}

/* =========================
   Tablet
========================= */

@media (max-width: 1200px) {
  .sr-review-page .sr-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .sr-review-videos__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .sr-review-video {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .sr-review-customer__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* =========================
   Mobile
========================= */

@media (max-width: 768px) {
  .sr-review-page {
    padding: 0 0 48px;
  }

  .sr-review-page .sr-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .sr-review-hero-title {
    height: 54px;
  }

  .sr-review-videos {
    margin-top: 24px;
  }

  .sr-review-videos__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sr-review-customer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .sr-review-load-more {
    width: 100%;
    max-width: 220px;
  }

  .sr-customer-review-modal {
    align-items: flex-start;
    overflow-y: auto;

    padding: 24px 12px;
  }

  .sr-customer-review-modal.is-open {
    display: flex;
    flex-direction: column;
  }

  .sr-customer-review-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 120px);

    grid-template-columns: 1fr;

    border-radius: 12px;
  }

.sr-customer-review-modal__close {
  display: none;
}

.sr-customer-review-modal__image {

    height: 320px;

    min-height: 320px;

    max-height: 320px;

    padding: 16px;

  }

  .sr-customer-review-modal__image img {

    width: auto;

    height: auto;

    max-width: 100%;

    max-height: 288px;

    object-fit: contain;

  }

  .sr-customer-review-modal__content {
    max-height: 35vh;

    overflow-y: auto;

    padding: 18px;
  }

  .sr-customer-review-modal__content::after {
    height: 30px;
    margin-top: -30px;
  }

  .sr-customer-review-modal__arrow {
    width: 42px;
    height: 42px;

    font-size: 26px;
  }

  .sr-customer-review-modal__arrow--prev {
    left: 10px;
  }

  .sr-customer-review-modal__arrow--next {
    right: 10px;
  }

.sr-customer-review-modal__controls {
  position: sticky;
  bottom: 0;
  z-index: 10002;

  width: 100%;

  padding-top: 12px;
  padding-bottom: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  background: rgba(70, 72, 85, 0.72);
}

  .sr-customer-review-modal__review-arrow,
  .sr-customer-review-modal__close-bottom {
    position: static;

    flex: 1;

    width: auto;
    min-width: 0;
    height: 44px;

    padding: 0 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d6dae0;
    border-radius: 10px;
    background: #ffffff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1;

    color: #464855;

    transform: none;
  }

  .sr-customer-review-modal__review-arrow::before {
    display: none;
  }

  .sr-customer-review-modal__close-bottom {
    display: flex;
  }
}

body.sr-modal-open {
  overflow: hidden;
}

.sr-customer-review-modal,
.sr-customer-review-modal *,
.sr-customer-review-modal button,
.sr-customer-review-modal a {
  touch-action: manipulation;
}

.sr-customer-review-modal__arrow,
.sr-customer-review-modal__review-arrow,
.sr-customer-review-modal__close,
.sr-customer-review-modal__close-bottom {
  touch-action: manipulation;

  -webkit-user-select: none;
  user-select: none;

  -webkit-tap-highlight-color: transparent;
}

.sr-review-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 10px;
    background: transparent;
}

.sr-review-banner::before,
.sr-review-banner::after {
    display: none;
    content: none;
}

.sr-review-banner__link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    line-height: 0;
}

.sr-review-banner__image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
}