.ff-details {
  margin-top: 1rem;
  border-block: 2px solid var(--ff-divider);
}

.ff-details + .ff-details {
  margin-top: 0;
  border-top: 0;
}

.ff-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 50px;
  padding: 12px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ff-ink);
  list-style: none;
  cursor: pointer;
}

.ff-details summary::-webkit-details-marker {
  display: none;
}

.ff-details summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: var(--ff-icon-chevron-down) center / contain no-repeat;
  mask: var(--ff-icon-chevron-down) center / contain no-repeat;
  transition: transform 250ms ease;
}

.ff-details[open]:not(.is-closing) summary::after {
  transform: rotate(180deg);
}

.ff-details summary:focus-visible {
  outline: var(--ff-focus-ring);
  outline-offset: 2px;
}

.ff-details__body {
  overflow: hidden;
  padding-bottom: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ff-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .ff-details summary::after {
    transition: none;
  }
}
