.faqs-block {
  position: relative;
  width: 100%;
  padding: 48px $half-gutter;
  background-color: $gray-10;

  @include sm {
    padding: 38px $half-gutter;
  }

  @include xs {
    padding: 30px $half-gutter;
  }

  &--background-white {
    background-color: $white;
  }

  &__wrapper {
    width: 100%;
    max-width: $max-width;
    padding: 0 $half-gutter;
    margin: 0 auto;

    & > h2 {
      font-size: 3.8rem;
      line-height: 4.5rem;
      padding: 0px calc(100% / 12);
      margin: 0 0 0.67em;

      @include sm {
        font-size: 2.6rem;
        line-height: 3rem;
        padding: 0;
      }
    }
  }

  &__container {
    width: 100%;
  }

  &__item {
    width: calc(100% / 12 * 10);
    margin: 0 auto;
    padding: 0;
    border-bottom: 1px solid $gray-bluish;

    @include sm {
      padding: 0 15px;
    }

    &.faqs-block--active {
      .faqs-block__item-btn {
        span {
          &::before {
            transform: rotate(0deg) !important;
          }
        }
      }
      .faqs-block__item-arrow::after,
      .faqs-block__item-arrow-more::after {
        transform: rotate(135deg);
      }
    }
  }

  &__item-btn {
    margin: 0;
    position: relative;
    padding: 16px 48px;
    width: 100%;
    color: $primary-color;
    font-family: var(--font-heading);;
    font-size: 2.1rem;
    line-height: 2.5rem;
    font-weight: 700;
    display: block;
    cursor: pointer;
    transition: all 0.3s ease-out;

    &:hover,
    .faqs-block--active & {
      color: $medium-color;

      .faqs-block__item-bullet {
        background-color: $medium-color;
      }
    }

    @include sm {
      padding: 20px 25px;
      font-size: 1.8rem;
      line-height: 2.4rem;
    }

    * {
      pointer-events: none;
    }
  }

  &__item-arrow {
    display: block;
    position: absolute;
    height: 24px;
    width: 24px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;

    @include sm {
      top: 31px;
      height: 10px;
      width: 10px;
    }

    &::after {
      content: " ";
      width: 13px;
      height: 13px;
      display: block;
      border-right: 2px solid;
      border-top: 2px solid;
      border-radius: 2px;
      transform: rotate(45deg);
      transform-origin: 10px 6px;
      transition: all 0.3s ease-out;
      margin: 9px 0 0 2px;

      @include sm {
        height: 10px;
        width: 10px;
      }
    }
  }

  &__item-question {
    display: block;
    position: absolute;
    height: 24px;
    width: 24px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);

    @include sm {
      left: -5px;
    }

    &::after {
      content: "Q";
      width: 100%;
      height: 100%;
      display: block;
      font-size: 2.1rem;
      font-weight: 600;
      font-family: var(--font-default);;

      @include sm {
        font-size: 2.1rem;
      }
    }
  }

  &__item-bullet {
    display: block;
    position: absolute;
    height: 6px;
    width: 6px;
    top: calc(50% + 2px);
    transform: translateY(-50%);
    left: 9px;
    background-color: $primary-color;
    border-radius: 100%;

    @include sm {
      height: 4px;
      width: 4px;
      top: 30px;
    }
  }

  &__item-more {
    display: block;
    position: absolute;
    height: 16px;
    width: 16px;
    top: calc(50% + 2px);
    transform: translateY(-50%);
    right: 0;

    @include sm {
      height: 11px;
      width: 11px;
    }

    &:after {
      content: "";
      width: 16px;
      height: 2px;
      border-top: 2px solid;
      position: absolute;
      top: 6px;
      transition: all 0.3s ease-out;

      @include sm {
        width: 11px;
      }
    }

    &:before {
      content: "";
      width: 16px;
      height: 2px;
      border-top: 2px solid;
      position: absolute;
      top: 6px;
      transform: rotate(90deg);
      transition: all 0.3s ease-out;

      @include sm {
        width: 11px;
      }
    }
  }

  .rich-content-system p {
    font-size: 1.6rem;
  }

  &__item-answer {
    width: 100%;
    max-width: 960px;
    color: $primary-color;
    transition: height 0.25s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    height: 0px;
    overflow: hidden;
    padding: 0px 50px;

    @include sm {
      padding: 0 15px 0 25px;
    }

    .faqs-block--active & {
      transition-delay: 0.15s;
    }
  }
}
