/*
 * Wildcard AEO - PDP FAQ block styles.
 *
 * Native <details> disclosure so we don't rely on the merchant's
 * theme loading JavaScript in any particular order. Chevron uses a
 * pure-CSS rotated arrow that flips direction when the accordion
 * opens.
 *
 * Class names live under `wildcard-aeo-faq*` (no surface prefix)
 * because the underlying `wildcard-faq-item` snippet is shared with
 * the collection content block - keeps the CSS pointing at the same
 * classes the snippet emits regardless of which surface renders it.
 */

.wildcard-aeo-faqs {
  margin: 1.25rem 0;
}

.wildcard-aeo-faqs__heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wildcard-aeo-faq {
  border-top: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 15%, transparent);
  padding: 0.75rem 0;
}

.wildcard-aeo-faq:last-of-type {
  border-bottom: 1px solid currentColor;
  border-bottom-color: color-mix(in srgb, currentColor 15%, transparent);
}

.wildcard-aeo-faq__question {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

.wildcard-aeo-faq__question::-webkit-details-marker {
  display: none;
}

.wildcard-aeo-faq__question::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.65;
}

.wildcard-aeo-faq[open] .wildcard-aeo-faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.wildcard-aeo-faq__answer {
  padding-top: 0.5rem;
  line-height: 1.55;
}

.wildcard-aeo-faq__answer > p {
  margin: 0;
}
