/* SEO Page Generator — front-end styles.
   Only loads on generated pages (see SPG_Shortcodes::register_assets() and
   SPG_Widget_FAQ::get_style_depends()).

   Structural/behavioral rules only — no colors, borders, or spacing here.
   Those come from SPG_Widget_FAQ's own Elementor Style controls (with
   sensible defaults set on the controls themselves), so there's a single
   source of truth instead of this stylesheet fighting Elementor's
   generated per-widget CSS over selector specificity/load order. The old
   [spg_faqs] shortcode still uses this same markup/classes and inherits
   whatever a theme/global CSS provides — it has no built-in visual styling
   of its own now that the widget is the recommended way to use this. */

.spg-faqs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.spg-faq-item {
    overflow: hidden;
}

.spg-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.spg-faq-q-text {
    flex: 1;
}

.spg-faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.spg-faq-icon-active {
    display: none;
}

.spg-faq-item.spg-open .spg-faq-icon-normal {
    display: none;
}

.spg-faq-item.spg-open .spg-faq-icon-active {
    display: inline-flex;
}

.spg-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
}

.spg-faq-item.spg-open .spg-faq-a {
    max-height: 600px;
}

.spg-faq-a p {
    margin: 0 0 .75em;
    line-height: 1.6;
}

.spg-faq-a p:last-child {
    margin-bottom: 0;
}
