.faq-section {
  position: relative;
  isolation: isolate;
}

.faq-section::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(3200px, 100%);
  background-image: var(--faq-section-gradient, none);
  background-repeat: no-repeat;
  background-position: top center;
  content: "";
  pointer-events: none;
}

.faq {
  display: block;
  padding-block: var(--block-space-top, 0px) var(--block-space-bottom, 0px);
}

.faq-layout {
  grid-template-columns: 220px minmax(0, 874px);
  justify-content: space-between;
  align-items: start;
}

.faq-nav {
  position: sticky;
  top: calc(var(--fixed-header-height) + var(--s3));
  margin-top: var(--s2);
}

.faq-nav-link {
  color: var(--color-1);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  opacity: 0.3;
  white-space: nowrap;
}

.faq-nav-link.state--active {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.faq-groups {
  gap: 120px;
}

.faq-group {
  scroll-margin-top: calc(var(--fixed-header-height) + var(--s3));
}

.faq-group-list {
  margin-top: var(--s3);
}

.faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--color-1) 20%, transparent);
}

.faq-item-summary {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 14px;
  align-items: start;
  text-align: left;
  transition: padding-bottom 300ms ease;
}

.faq-item:first-child .faq-item-summary {
  padding-top: 0;
}

.faq-item-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

.faq-item-toggle {
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 6px;
}

.faq-item-toggle::before,
.faq-item-toggle::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.2px;
  background: currentColor;
  content: "";
  transform: translateY(-50%);
}

.faq-item-toggle::after {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 180ms ease;
}

.faq-item.state--open .faq-item-toggle::after {
  transform: translateY(-50%) rotate(0);
}

.faq-item-panel-content {
  min-height: 0;
  overflow: hidden;
}

.faq-item-answer {
  max-width: 794px;
  padding: 0 0 20px;
  line-height: 1.3;
  opacity: 0;
  transition: opacity 200ms ease;
}

.faq-item.state--open .faq-item-panel {
  grid-template-rows: 1fr;
}

.faq-item.state--open .faq-item-summary {
  padding-bottom: 14px;
}

.faq-item.state--open .faq-item-answer {
  opacity: 1;
}

.rte.faq-item-answer ol {
  display: flex;
  flex-direction: column;
  gap: var(--s0);
  margin-block: var(--s1);
  padding: 0;
  list-style: none;
  counter-reset: faq-step;
}

.faq-item-answer ol li {
  position: relative;
  min-height: 26px;
  margin: 0;
  padding: 1px 0 0 44px;
  counter-increment: faq-step;
}

.faq-item-answer ol li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 34px;
  height: 26px;
  place-items: center;
  background: color-mix(in srgb, var(--color-1) 10%, transparent);
  clip-path: var(--faq-cloud-clip);
  content: counter(faq-step);
  font-size: var(--t0);
  line-height: 1;
}

@media (max-width: 1023px), (pointer: coarse) {
  .faq-layout {
    display: block;
  }

  .faq-nav {
    position: static;
    flex-direction: row;
    margin-top: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .faq-nav::-webkit-scrollbar {
    display: none;
  }

  .faq-groups {
    margin-top: var(--s3);
  }
}

@media (max-width: 767px) {
  .faq {
    padding-block: var(--block-space-top-mobile, 0px) var(--block-space-bottom-mobile, 0px);
  }

  .faq-nav-link {
    line-height: 1.3;
  }

  .faq-nav-link.state--active {
    text-underline-offset: 2px;
  }

  .faq-groups {
    gap: var(--s5);
    margin-top: var(--s3);
  }

  .faq-group-list {
    margin-top: var(--s2);
  }

  .faq-group-heading {
    line-height: 1.1;
  }

  .faq-item-summary {
    padding: 12px 0;
  }

  .faq-item-toggle {
    margin-top: 3px;
  }

  .faq-item-answer {
    padding-bottom: 12px;
  }

  .faq-item-answer ol li {
    min-height: 22px;
    padding-left: 39px;
  }

  .faq-item-answer ol li::before {
    width: 29px;
    height: 22px;
  }
}

.product-faq {
  display: grid;
  grid-template-columns: minmax(0, 427px) minmax(0, 734px);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro list"
    "action list";
  justify-content: space-between;
  column-gap: var(--s5);
}

.product-faq-intro {
  grid-area: intro;
}

.product-faq-list {
  grid-area: list;
}

.product-faq-action {
  grid-area: action;
  align-self: end;
}

@media (max-width: 1023px), (pointer: coarse) {
  .product-faq {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "intro"
      "list"
      "action";
    row-gap: var(--s5);
  }
}

@media (max-width: 767px) {
  .product-faq .faq-item-summary {
    line-height: 1.1;
  }

  .product-faq .faq-item-answer {
    padding-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item-panel,
  .faq-item-summary,
  .faq-item-answer,
  .faq-item-toggle::after {
    transition: none;
  }
}
