/*
 * Shoppy FAQ — accordion rows from the Shoppy landing (Option I / DEF V.1):
 * Inter questions, hairline row borders, 28px plus/minus circle that fills
 * with the clay accent when open. Tokens mirror the Shoppy landing:
 * navy text #1c274f, clay accent #d4998a.
 *
 * Transparent and flush: the section inherits the page background and
 * brings no padding of its own — spacing is up to the page layout.
 */

.shoppy-faq {
  /* tokens */
  --sf-text: #1c274f;
  --sf-accent: #d4998a;
  --sf-g100: #f3f4f6;
  --sf-g200: #e5e7eb;
  --sf-g600: #4b5563;
  --sf-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  background: transparent;
  padding: 0;
  font-family: var(--sf-sans);
  color: var(--sf-text);
}

.shoppy-faq .sf-list {
  border-top: 1px solid var(--sf-g200);
}
.shoppy-faq .sf-item {
  border-bottom: 1px solid var(--sf-g200);
}

/* ── Question row ───────────────────────────────────────── */
/* Hardened against global theme button CSS, like the other Shoppy
   sections: reset everything the row relies on. */
.shoppy-faq .sf-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-width: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
  letter-spacing: normal;
  font-family: var(--sf-sans);
  color: var(--sf-text);
}
.shoppy-faq .sf-q-text {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-text);
}
.shoppy-faq .sf-question:focus-visible {
  outline: 2px solid var(--sf-accent);
  outline-offset: 2px;
}

/* ── Plus/minus circle ──────────────────────────────────── */
.shoppy-faq .sf-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sf-g100);
  color: var(--sf-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.shoppy-faq .sf-toggle svg {
  display: block;
  fill: none;
}
.shoppy-faq .sf-toggle-v {
  transition: opacity 0.2s ease;
}
.shoppy-faq .sf-item.is-open .sf-toggle {
  background: var(--sf-accent);
}
/* Plus becomes minus: the vertical stroke fades out. */
.shoppy-faq .sf-item.is-open .sf-toggle-v {
  opacity: 0;
}

/* ── Collapsible answer ─────────────────────────────────── */
/* Grid-rows 0fr→1fr animates to the answer's real height — no clipped
   long answers, unlike a fixed max-height. */
.shoppy-faq .sf-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.shoppy-faq .sf-item.is-open .sf-answer {
  grid-template-rows: 1fr;
}
.shoppy-faq .sf-answer-inner {
  overflow: hidden;
  min-height: 0;
}
.shoppy-faq .sf-answer-inner p {
  margin: 0;
  padding: 0 56px 24px 4px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--sf-g600);
}

/* ── Breakpoints (mirror the design's t/m configs) ─────── */
@media (max-width: 900px) {
  .shoppy-faq .sf-question {
    gap: 16px;
    padding: 20px 4px;
  }
  .shoppy-faq .sf-q-text {
    font-size: 17px;
  }
  .shoppy-faq .sf-answer-inner p {
    padding: 0 40px 22px 4px;
  }
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .shoppy-faq .sf-answer,
  .shoppy-faq .sf-toggle,
  .shoppy-faq .sf-toggle-v {
    transition: none;
  }
}
