/*
 * Wildcard AEO - Collection FAQs block styles.
 *
 * Delegates the disclosure chrome to the shared `wildcard-aeo-faq*`
 * classes emitted by the `wildcard-faq-item` snippet (same rules
 * ship inside `pdp-faqs.css` for the PDP surface). This file only
 * covers the section-level heading + spacing so the accordion looks
 * consistent whether the merchant places it on a product or
 * collection page.
 */

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

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

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

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

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

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

.wildcard-aeo-collection-faqs .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-collection-faqs .wildcard-aeo-faq[open] .wildcard-aeo-faq__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

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

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