.sm-faqs {
  --sm-faq-border: #e2e8f0;
  --sm-faq-text: #1e293b;
  --sm-faq-muted: #475569;
  --sm-faq-accent: #1d4ed8;
  --sm-faq-bg: #fff;
  --sm-faq-hover: #f8fafc;
}

.sm-faqs-heading {
  margin: 0 0 1.25rem;
  font-size: 1.75rem;
  line-height: 1.2;
  color: var(--sm-faq-text);
}

.sm-faqs-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--sm-faq-border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sm-faq-bg);
}

.sm-faq-item + .sm-faq-item {
  border-top: 1px solid var(--sm-faq-border);
}

.sm-faq-question {
  margin: 0;
  padding: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  border: 0;
  background: none;
}

.sm-faq-trigger {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.25rem;
  cursor: pointer;
  color: var(--sm-faq-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.sm-faq-trigger:hover,
.sm-faq-trigger:focus,
.sm-faq-trigger:focus-visible {
  background: transparent;
  color: var(--sm-faq-text);
  text-decoration: none;
  box-shadow: none;
  outline: none;
}

.sm-faq-question-text {
  flex: 1;
  min-width: 0;
}

.sm-faq-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--sm-faq-hover);
  color: var(--sm-faq-text);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sm-faq-icon::before {
  content: "";
  display: block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15rem;
  transition: transform 0.2s ease;
}

.sm-faq-item.is-collapsed .sm-faq-icon::before {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

.sm-faq-answer {
  padding: 0.5rem 1.75rem 1.75rem;
  color: var(--sm-faq-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.sm-faq-answer > :first-child {
  margin-top: 0;
}

.sm-faq-answer > :last-child {
  margin-bottom: 0;
}

.sm-faq-answer p {
  margin: 0 0 0.75em;
}

.sm-faq-answer p:last-child {
  margin-bottom: 0;
}

.sm-faq-answer a {
  color: var(--sm-faq-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sm-faq-answer a:hover {
  text-decoration: none;
}

/* Progressive enhancement: collapse only when JS is active. */
.sm-faqs.sm-faqs--accordion .sm-faq-item.is-collapsed .sm-faq-answer {
  display: none;
}
