/*
 * WPSiteBeam FAQs — front-end base (FAQ Phase A1).
 * Inherits the theme's colours and type; adds only spacing, a disclosure
 * marker and a visible focus ring. Logical properties throughout (RTL-ready).
 * Works without JavaScript: the markup is native details/summary.
 */
.wpsb-faq { margin-block: 1.5em; }
.wpsb-faq-title, .wpsb-faq-topic { margin-block: 0 0.75em; }
.wpsb-faq-group + .wpsb-faq-group { margin-block-start: 1.5em; }
.wpsb-faq-item { border-block-end: 1px solid currentColor; border-block-end-color: color-mix(in srgb, currentColor 25%, transparent); padding-block: 0.5em; }
.wpsb-faq-q { cursor: pointer; font-weight: 600; padding-block: 0.5em; padding-inline-end: 1.75em; position: relative; list-style: none; }
.wpsb-faq-q::-webkit-details-marker { display: none; }
.wpsb-faq-q::after { content: "+"; position: absolute; inset-inline-end: 0.25em; inset-block-start: 0.4em; font-weight: 400; }
.wpsb-faq-item[open] > .wpsb-faq-q::after { content: "\2212"; }
.wpsb-faq-q:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wpsb-faq-a { padding-block: 0 0.75em; }
.wpsb-faq-a > :first-child { margin-block-start: 0; }
.wpsb-faq-a > :last-child { margin-block-end: 0; }
.wpsb-faq-empty { font-style: italic; }
@media (forced-colors: active) { .wpsb-faq-item { border-block-end-color: CanvasText; } }
/* Elementor editor preview only: the plain FAQ copy kept for removal stays hidden, so the editor shows the FAQs once. */
.elementor-editor-active .elementor-widget.wpsb-faq-fallback { display: none; }
/* FAQ tab (TABS-1): editor-only draft marker, "See all questions", search. */
.wpsb-faq-draft { font-weight: 400; font-style: italic; }
.wpsb-faq-item.is-draft { opacity: .85; }
.wpsb-faq-more > summary { cursor: pointer; margin-block: .5em; padding-block: .75em; font-weight: 600; }
.wpsb-faq-search { margin-block-end: 1em; }
.wpsb-faq-search input { min-block-size: 44px; inline-size: min(100%, 24rem); }
/* PLG-1112-AD F21: icon choice from the Elementor widget or the block (class on the wrapper). */
.wpsb-faq-icon-chevron .wpsb-faq-q::after { content: "\203A"; transition: transform .15s ease; }
.wpsb-faq-icon-chevron .wpsb-faq-item[open] > .wpsb-faq-q::after { content: "\203A"; transform: rotate(90deg); }
[dir="rtl"] .wpsb-faq-icon-chevron .wpsb-faq-q::after { transform: scaleX(-1); }
[dir="rtl"] .wpsb-faq-icon-chevron .wpsb-faq-item[open] > .wpsb-faq-q::after { transform: rotate(90deg); }
.wpsb-faq-icon-none .wpsb-faq-q::after { content: none; }
.wpsb-faq-icon-none .wpsb-faq-q { padding-inline-end: 0; }
@media (prefers-reduced-motion: reduce) { .wpsb-faq-icon-chevron .wpsb-faq-q::after { transition: none; } }
