/*
 * FAQ (WP page 2395): JetAccordion as native <details>. docs/design/components/accordion.md.
 * Closed items show a grey "+" circle (green on hover); the open item a blue-grey "−".
 */
.faq {
  padding: 65px 0 105px;
}
.faq__container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--gutter);
}
.faq__title {
  margin-bottom: 32px;
  text-align: center;
}
.accordion {
  /* flex: the item margins do not collapse into the widget margin, as in Elementor */
  display: flex;
  flex-direction: column;
  margin-bottom: 66px;
}
.accordion__item {
  margin-bottom: 22px;
  background-color: var(--color-white);
  box-shadow: var(--shadow-accordion);
}
.accordion__item:last-child {
  /* the gap below the widget (22 + 44 px) belongs to the accordion box, as its element shot on WP shows */
  margin-bottom: 0;
}
.accordion__control {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  padding: 33px 32px 33px 40px;
  cursor: pointer;
  list-style: none;
}
.accordion__control::-webkit-details-marker {
  display: none;
}
.accordion__label {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  text-align: left;
}
.accordion__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin-left: 20px;
  border-radius: var(--radius-round);
  color: var(--color-white);
  fill: var(--color-white);
  transition: background 0.3s;
}
.accordion__icon svg {
  display: block;
}
.accordion__icon--normal {
  width: 24px;
  height: 24px;
  background-color: var(--gray-300);
}
.accordion__icon--normal svg {
  width: 16px;
  height: 16px;
}
.accordion__icon--active {
  display: none;
  width: 25px;
  height: 25px;
  background-color: var(--gray-400);
}
.accordion__icon--active svg {
  width: 15px;
  height: 15px;
}
.accordion__control:hover .accordion__icon--normal {
  background-color: var(--color-primary);
}
.accordion__item[open] .accordion__icon--normal {
  display: none;
}
.accordion__item[open] .accordion__icon--active {
  display: flex;
}
.accordion__content {
  padding: 0 100px 33px 40px;
  color: var(--color-text);
}

.faq__help-title {
  margin-bottom: var(--widget-spacing);
  text-align: center;
}
.faq__help {
  text-align: center;
}
.faq__help a {
  text-decoration: none;
}

@media (max-width: 767px) {
  .accordion__control {
    padding: 20px;
  }
  .accordion__content {
    padding: 0 20px 20px;
  }
}
