/* Schmetterling FAQ Manager – styles scoped to FAQ elements; no global Divi resets. */
.smg-faq {
  --smg-faq-background: #F8EFDD;
  --smg-faq-accent: #E3986A;
  --smg-faq-foreground: #2C2C2C;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  width: 100%;
}

.smg-faq,
.smg-faq *,
.smg-faq *::before,
.smg-faq *::after {
  box-sizing: border-box;
}

.smg-faq .smg-faq__item {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--smg-faq-background);
  color: var(--smg-faq-foreground);
  overflow: hidden;
}

.smg-faq .smg-faq__summary {
  display: flex;
  align-items: center;
  gap: 0; /* Question reserves its own space to the separate arrow. */
  min-height: 80px;
  margin: 0;
  padding: 16px 24px;
  cursor: pointer;
  list-style: none;
  color: inherit;
}

.smg-faq .smg-faq__summary::-webkit-details-marker {
  display: none;
}

.smg-faq .smg-faq__summary::marker {
  content: '';
}

.smg-faq .smg-faq__summary:focus-visible {
  outline: 2px solid var(--smg-faq-foreground);
  outline-offset: -4px;
  border-radius: 8px;
}

.smg-faq .smg-faq__question {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 3rem;
  margin: 0 !important;
  padding: 0 4rem 0 0 !important;
  color: var(--smg-faq-foreground) !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 1.375rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.smg-faq .smg-faq__indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  background: var(--smg-faq-accent);
  color: var(--smg-faq-foreground);
}

.smg-faq .smg-faq__indicator svg {
  display: block;
  width: 22px;
  height: 22px;
  transition: transform 280ms cubic-bezier(0.2, 0, 0, 1);
}

.smg-faq .smg-faq__item[open]:not([data-smg-faq-state="closing"]) .smg-faq__indicator svg {
  transform: rotate(180deg);
}

.smg-faq .smg-faq__answer {
  padding: 0 24px 17px;
  color: inherit;
  font-family: Montserrat, Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  overflow-wrap: break-word;
}

/* Override Divi's default p padding only inside FAQ answers. */
.smg-faq .smg-faq__answer p {
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
  font: inherit;
}

/* Keep separately authored paragraphs readable despite the reset above. */
.smg-faq .smg-faq__answer p + p {
  margin-top: 1em !important;
}

.smg-faq .smg-faq__answer > :last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

@media (max-width: 767px) {
  .smg-faq .smg-faq__summary {
    min-height: 72px;
    padding: 14px 16px;
  }

  /* Four rem beside the icon would consume too much space on phones. */
  .smg-faq .smg-faq__question {
    padding-right: 1rem !important;
  }

  .smg-faq .smg-faq__indicator {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .smg-faq .smg-faq__answer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smg-faq .smg-faq__indicator svg {
    transition: none;
  }
}
