/*
 * FAQ block — collapsible or flat Q&A list.
 * Visual tokens come from the active EggBlocks theme.
 */

.eggb-faq details > summary {
  list-style: none;
  cursor: pointer;
}

.eggb-faq details > summary::-webkit-details-marker {
  display: none;
}

.eggb-faq-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--eggb-text-muted);
  width: 1rem;
  height: 1rem;
}

.eggb-faq-chevron svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eggb-faq details[open] .eggb-faq-chevron {
  transform: rotate(180deg);
}

.eggb-faq--default .eggb-faq-item > summary {
  padding: 0.75rem 1rem;
  user-select: none;
  border-radius: var(--eggb-radius);
}

.eggb-faq--default details[open] > summary {
  border-bottom: var(--eggb-border-w) solid var(--eggb-border);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.eggb-faq--default .eggb-faq-body {
  padding: 0.75rem 1rem;
}

.eggb-block .eggb-faq-body p,
.eggb-block .eggb-faq-answer p {
  margin: 0 0 0.75rem;
}

.eggb-block .eggb-faq-body p:last-child,
.eggb-block .eggb-faq-answer p:last-child,
.eggb-block .eggb-faq-body ul:last-child,
.eggb-block .eggb-faq-answer ul:last-child,
.eggb-block .eggb-faq-body ol:last-child,
.eggb-block .eggb-faq-answer ol:last-child {
  margin-bottom: 0;
}

.eggb-faq-body ul,
.eggb-faq-body ol,
.eggb-faq-answer ul,
.eggb-faq-answer ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.eggb-faq--flat .eggb-faq-item + .eggb-faq-item {
  border-top: var(--eggb-border-w) solid var(--eggb-border);
  padding-top: 0.75rem;
}
