.faq:not(.faq--headless) {
  overflow: hidden;
}

.faq--headless .faq__toggle {
  display: none;
}

.faq__toggle {
  cursor: pointer;
  width: 100%;
  background: #0054ff;
  color: #fff;
  border-radius: 20px;
  border: none;
  font-weight: 700;
  font-family: Share, sans-serif;
  font-size: 28px;
  position: relative;
  margin: auto;
  max-width: 900px;
  padding: 30px 50px 30px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq__toggle--open {
  background: none;
  color: black;
}

.faq__toggle-icon {
  height: 30px;
  flex-shrink: 0;
  width: 30px;
  filter: invert(100%) sepia(100%) saturate(0) hue-rotate(288deg) brightness(125%) contrast(100%);
  background-image: url('../../dist/images/image/accordion_open.svg');
  background-position: center;
  background-repeat: no-repeat;
  @media(max-width: 767px) {
    height: 18px;
    width: 18px;
  }
}

.faq__toggle--open > .faq__toggle-icon {
  background-image: url('../../dist/images/image/accordion_close.svg');
  filter: none;
}

.faq__questions {
  max-height: 0;
  transition: max-height 0.4s;
}

.faq__content {
  padding: 1em 0;
  margin: auto;
  display: flex;
  max-width: 900px;
  flex-direction: column;
  gap: 30px;
  @media(min-width: 768px) and (max-width: 1049px) {
    max-width: 710px;
  }
}

.faq--headless .faq__questions {
  max-height: none;
}

.faq__question {
  border-radius: 20px;
  box-shadow: 10px 7px 20px #cbcdd1;
}

.faq__prompt {
  width: 100%;
  background: none;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-family: Share, sans-serif;
  font-size: 28px;
  padding: 30px 50px 30px 30px;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
  @media(max-width: 767px) {
    font-size: 20px;
    padding: 30px;
  }
}

.faq__prompt-icon {
  height: 30px;
  flex-shrink: 0;
  width: 30px;
  background-image: url('../../dist/images/image/accordion_open.svg');
  background-position: center;
  background-repeat: no-repeat;

  @media(max-width: 767px) {
    height: 18px;
    width: 18px;
  }
}


.faq__question--open .faq__prompt-icon {
  background-image: url('../../dist/images/image/accordion_close.svg');
}

.faq__answer {
  overflow: hidden;
  transition: max-height 0.4s;
  max-height: 0;
}

.faq__question--open .faq__answer {
  max-height: var(--faq-answer-height);
}

.faq__answer-content {
  padding: 1em 2.2em;
  font-family: Share, sans-serif;
}

.faq__answer-content p {
  line-height: 32px;
  font-size: 22px;
  @media(max-width: 767px) {
    font-size: 18px;
  }
}
