details.bta-details {
  overflow: hidden;

  &::details-content {
    height: 0;
    margin-top: 0;
    opacity: 0;
    transition-property: height, margin-top, padding-top, opacity, content-visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease;
    transition-behavior: allow-discrete;
  }

  &[open]::details-content {
    height: auto;
    height: calc-size(auto, size);
    margin-top: 10px;
    opacity: 1;
  }

  & > summary {
    list-style: none;

    &::-webkit-details-marker {
      display: none;
    }
  }
}

.faq {
  --c-border: hsl(204 8 88);

  border: 1px solid var(--c-border);

  .faq__item {
    padding: 30px;
    user-select: none;

    @media (width <= 768px) {
      padding: 15px;
    }

    &:not(:first-child) {
      border-top: 1px solid var(--c-border);
    }

    .faq__item-question {
      display: flex;
      justify-content: space-between;
      align-items: center;
      column-gap: 10px;
      font-family: Inter, Circe, sans-serif;
      font-size: 18px;
      line-height: 26px;
      font-weight: 700;
      cursor: pointer;

      @media (width <= 768px) {
        font-size: 14px;
        line-height: 20px;
      }

      h3 {
        margin: 0;
        font: inherit;
        color: inherit;
      }

      &::after {
        content: '';
        display: block;
        width: 13px;
        height: 8px;
        background: url(/local/img/svg/chevron.svg) center / 100% no-repeat;
        transition: rotate 0.3s ease;
      }
    }
    .faq__item-answer {
      font-family: Inter, Circe, sans-serif;
      font-size: 14px;
      line-height: 22px;
      font-weight: 300;

      @media (width <= 768px) {
        font-size: 12px;
        line-height: 17px;
      }
    }
  }
  details.faq__item[open] .faq__item-question::after {
    rotate: x 180deg;
  }
  details.faq__item[open]::details-content {
    border-top: 1px solid var(--c-border);
    margin-top: 30px;
    padding-top: 30px;

    @media (width <= 768px) {
      margin-top: 15px;
      padding-top: 15px;
    }
  }
}