/* Anahata v2 — disclosure row. Figma: "FAQ Dropdown" set. */

.disclosure {
  border-bottom: 1px solid var(--a-border-soft);
}

.disclosure__row {
  display: flex;
  align-items: center;
  gap: var(--a-space-3);
  padding: var(--a-space-4) 0;
  cursor: pointer;
  list-style: none;
}

.disclosure__row::-webkit-details-marker {
  display: none;
}

.disclosure__icon {
  flex: 0 0 auto;
  display: flex;
  color: var(--a-ink);
}

.disclosure__titles {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.disclosure__title {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  color: var(--a-ink);
}

.disclosure__subtitle {
  font-family: var(--a-font-body);
  font-size: var(--a-fs-label);
  color: var(--a-text-muted);
}

.disclosure__hint {
  flex: 0 0 auto;
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  color: var(--a-text-muted);
}

.disclosure__chevron {
  flex: 0 0 auto;
  display: flex;
  color: var(--a-ink);
  transition: transform 0.15s ease;
}

.disclosure[open] .disclosure__chevron {
  transform: rotate(90deg);
}

.disclosure__body {
  padding: 0 0 var(--a-space-4);
  font-family: var(--a-font-body);
  font-size: var(--a-fs-body-s);
  line-height: 1.5;
  color: var(--a-text-muted);
}

/* filled variant (Figma "Shipping Details" grey row) */
.disclosure--filled {
  border-bottom: 0;
  margin-bottom: var(--a-space-3);
}

.disclosure--filled .disclosure__row {
  padding: var(--a-space-3);
  background: var(--a-fill-secondary);
  border-radius: var(--a-radius);
}

.disclosure--filled .disclosure__title {
  font-weight: 600;
}

/* section variant — Figma 1473:915 "Product Details" (1785:4110 + 1785:4124) */
.disclosure--section {
  border-bottom: 0;
}

.disclosure--section .disclosure__row {
  padding: var(--a-space-3) 0;
}

.disclosure--section .disclosure__title {
  font-weight: 600;
  font-size: var(--a-fs-subheading);
  line-height: normal;
  color: var(--a-ink);
}

.disclosure--section .disclosure__chevron {
  color: var(--a-ink);
  transform: rotate(-90deg);
}

/* Figma draws the expanded row with the chevron pointing down; closed rows
   point right, the same convention as the FAQ rows. */
.disclosure--section[open] .disclosure__chevron {
  transform: rotate(0deg);
}

.disclosure--section .disclosure__body {
  padding: var(--a-space-3) 0 0; /* was indented 36px — text now lines up with the heading */
  font-size: var(--a-fs-body-s);
  line-height: var(--a-lh-rich);
  color: var(--a-text-muted);
}

.disclosure--section .disclosure__body > * {
  margin: 0 0 var(--a-space-5);
}

.disclosure--section .disclosure__body > *:last-child {
  margin-bottom: 0;
}

/* Figma sets the sub-headings ("Why you'll love it", "Materials & care"…) in
   bold italic ink; merchants mark them bold in the rich-text editor. */
.disclosure--section .disclosure__body :is(strong, b, h2, h3, h4, h5, h6) {
  font-size: inherit;
  font-weight: 700;
  font-style: italic;
  line-height: inherit;
  color: var(--a-ink);
}

.disclosure--section .disclosure__body :is(ul, ol) {
  padding: 0;
  list-style: none;
}

.disclosure--section .disclosure__body li::before {
  content: '/- ';
}

.disclosure--section .disclosure__body li > :is(p, span) {
  display: inline;
}
