.faq-section {
  background-color: rgba(var(--color-background));
}

.faq-image {
  width: 100%;
  aspect-ratio: var(--aspect-ratio);
  overflow: hidden;
  border-radius: var(--border-radius, 12px);
}

.faq-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: opacity 300ms cubic-bezier(0.25, 0.4, 0.4, 0.95);
}

.faq-image.low {
  height: 250px;
}

.faq-image.high {
  height: 450px;
}

@media (max-width: 959px) {
  .faq-image.low {
    height: 320px;
  }

  .faq-image.high {
    height: 690px;
  }
}

.faq-collapse-panel {
  display: block;
  width: 100%;
  border-block-start: 1px solid rgba(var(--color-text), 0.08);
}

.faq-collapse-panel summary + * {
  overflow: hidden;
}

.faq-collapse-panel summary {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
}

@media (max-width: 959px) {
  .faq-collapse-panel summary {
    padding: 12px 0;
  }
}

.faq-collapse-panel__title {
  display: flex;
  flex: 1;
  align-items: center;
}

.faq-collapse-panel__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
}

.faq-collapse-panel__icon svg {
  color: rgb(var(--color-text));
}

.faq-collapse-panel__fold {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(var(--color-text), 0.1);
  border-radius: 50%;
}

.faq-collapse-panel details {
  flex: 1;
}

details .faq-collapse-panel__fold.open {
  display: flex;
}

details[open] .faq-collapse-panel__fold.open {
  display: none;
}

details .faq-collapse-panel__fold.close {
  display: none;
}

details[open] .faq-collapse-panel__fold.close {
  display: flex;
}

.faq-collapse-panel__collapse {
  --animation-expand-duration: 360ms;
  --animation-collapse-duration: 160ms;

  max-height: 0;
  overflow: hidden;
  animation: animation-faq-content-collapse var(--animation-collapse-duration)
    ease-in-out forwards;
}

details[open] + .faq-collapse-panel__collapse {
  max-height: none;
  animation: animation-faq-content-expand var(--animation-expand-duration)
    ease-in none;
}

.faq-collapse-panel__content {
  padding: 0 6px;
  padding-block-end: 1px;
  margin-block-end: 20px;
  overflow-x: auto;
  word-break: break-word;
  opacity: 0;
  transition:
    transform var(--animation-collapse-duration) ease-in
      var(--animation-expand-duration),
    opacity var(--animation-expand-duration) ease-in;
  transform: translateY(10px);
}

details[open] + .faq-collapse-panel__collapse > .faq-collapse-panel__content {
  opacity: 1;
  transition:
    transform var(--animation-expand-duration) ease-out,
    opacity var(--animation-expand-duration) ease-out 20ms;
  transform: translateY(0);
}

.faq-section[layout] .faq-collapse-panel {
  padding-inline: 20px;
}

.faq-section[layout="column"] .faq-collapse-panel {
  background-color: rgba(var(--container-background-color));
  border-block-start: 0;
  border-radius: 12px;
}

.faq-section[layout="column"] .faq-collapsible-group {
  gap: 20px;
}

@media (max-width: 959px) {
  .faq-section[layout="column"] .faq-collapsible-group {
    gap: 12px;
  }
}

.faq-section[layout="block"] .faq-collapsible-group {
  background-color: rgba(var(--container-background-color));
  border-radius: 12px;
}

.faq-section .block-heading {
  flex-shrink: 0;
}

@keyframes animation-faq-content-expand {
  from {
    max-height: 0;
  }

  to {
    max-height: 100vh;
  }
}

@keyframes animation-faq-content-collapse {
  0% {
    max-height: 100vh;
  }

  100% {
    max-height: 0;
  }
}

.faq-section__width {
    width: 100%;
}

.faq-section__content {
    width: 100%;
}

.custom-customer-reviews {
    padding: 60px 0;
    overflow: hidden;
}

.custom-reviews-page-width {
    width: 100%;
}

.custom-reviews-heading {
    text-align: center;
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 48px;
}

.custom-reviews-carousel-wrap {
    position: relative;
}

.custom-reviews-slider {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 4px 22px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.custom-reviews-slider::-webkit-scrollbar {
    display: none;
}

.custom-review-card {
    flex: 0 0 calc((100% - 84px) / 4);
    min-width: calc((100% - 84px) / 4);
    scroll-snap-align: start;
    background: #f7f7f7;
    border-radius: 12px;
    padding: 24px;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.custom-review-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f3f3f3;
}

.custom-review-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-review-stars {
    position: relative;
    display: inline-block;
    font-size: 24px;
    line-height: 1;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.stars-base {
    color: #dddddd;
}

.stars-fill {
    color: #ffc400;
    position: absolute;
    left: 0;
    top: 0;
    width: var(--rating-percent);
    overflow: hidden;
    white-space: nowrap;
}

.custom-review-text {
    font-size: 20px;
    line-height: 1.45;
    color: #333333;
    margin-bottom: 18px;
}

.custom-review-name {
    font-size: 18px;
    color: #666666;
    font-style: italic;
}

.custom-reviews-arrow {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    z-index: 5;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(70, 70, 70, 0.68);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
}

.custom-reviews-prev {
    left: -18px;
}

.custom-reviews-next {
    right: -18px;
}

@media screen and (min-width: 750px) and (max-width: 1199px) {

    .custom-review-card {
        flex: 0 0 calc((100% - 44px) / 3);
        min-width: calc((100% - 44px) / 3);
    }

    .custom-reviews-slider {
        gap: 22px;
    }

    .custom-reviews-heading {
        font-size: 38px;
        margin-bottom: 36px;
    }

    .custom-reviews-prev {
        left: -8px;
    }

    .custom-reviews-next {
        right: -8px;
    }
}

@media screen and (max-width: 749px) {
    .custom-customer-reviews {
        padding: 40px 0;
    }

    .custom-reviews-heading {
        font-size: 32px;
        line-height: 1.12;
        margin: 0 18px 26px;
    }

    .custom-reviews-slider {
        gap: 18px;
        padding: 4px 0 18px;
    }

    .custom-review-card {
        flex: 0 0 86%;
        min-width: 86%;
        padding: 18px;
        border-radius: 18px;
    }

    .custom-review-stars {
        font-size: 20px;
    }

    .custom-review-text {
        font-size: 16px;
    }

    .custom-review-name {
        font-size: 15px;
    }

    .custom-reviews-arrow {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .custom-reviews-prev {
        left: 6px;
    }

    .custom-reviews-next {
        right: 6px;
    }
}