/* -------------------------------------------------------------------------- Accordion -------------------------------------------------------------------------- */ .wpsubs-accordion__item { border: 1px solid var(--wpsubs-border, #e5e7eb); border-radius: var(--wpsubs-radius, 8px); background: var(--wpsubs-surface, #fff); margin-bottom: 10px; overflow: hidden; } .wpsubs-accordion__item:last-child { margin-bottom: 0; } .wpsubs-accordion__header { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: none; background: var(--wpsubs-surface-muted, #f9fafb); margin: 0; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--wpsubs-text, #374151); text-align: left; cursor: pointer; } .wpsubs-accordion__header:focus-visible { outline: 2px solid var(--wpsubs-brand-ring, rgba(255, 77, 0, 0.2)); outline-offset: -2px; } /* Chevron marker rotates when the section is open. */ .wpsubs-accordion__header::after { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--wpsubs-text-subtle, #9ca3af); border-bottom: 2px solid var(--wpsubs-text-subtle, #9ca3af); transform: rotate(45deg); transition: transform 0.15s ease; } .wpsubs-accordion__header[aria-expanded="true"]::after { transform: rotate(-135deg); } /* Chevron-on-the-left variant: marker sits before the title (points right when collapsed, down when open). Opt in with `--chevron-start`. */ .wpsubs-accordion__header--chevron-start { justify-content: flex-start; } .wpsubs-accordion__header--chevron-start::after { display: none; } .wpsubs-accordion__header--chevron-start::before { content: ""; order: -1; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid var(--wpsubs-text-subtle, #9ca3af); border-bottom: 2px solid var(--wpsubs-text-subtle, #9ca3af); transform: rotate(-45deg); transition: transform 0.15s ease; } .wpsubs-accordion__header--chevron-start[aria-expanded="true"]::before { transform: rotate(45deg); } .wpsubs-accordion__panel { padding: 16px; } .wpsubs-accordion__panel[hidden] { display: none; }