/* ════════════════════════════════════════════
   FAQ Widget — scw-faq-standalone
   Scoped overrides on top of base .scw-faq-item
   styles from brand-page.css
   ════════════════════════════════════════════ */

.scw-faq-standalone .scw-faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--scw-faq-gap, 10px);
}

.scw-faq-standalone .scw-faq-item {
    border: 1px solid var(--scw-faq-border, #E5E7EB);
    border-radius: var(--scw-faq-radius, 12px);
    background: var(--scw-faq-item-bg, #FFFFFF);
    margin-bottom: 0; /* override base margin; gap handles spacing */
    overflow: hidden;
    transition: border-color 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                box-shadow 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-faq-standalone .scw-faq-item:hover {
    border-color: var(--scw-faq-accent, #FFC800);
}

.scw-faq-standalone .scw-faq-item.is-open {
    border-color: var(--scw-faq-accent, #FFC800);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* ── Question button ── */
.scw-faq-standalone .scw-faq-item__q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--scw-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--scw-faq-q-color, #0F0F0F);
    text-align: left;
    gap: 16px;
    line-height: 1.4;
    transition: background 0.2s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-faq-standalone .scw-faq-item__q:hover {
    background: rgba(0, 0, 0, 0.02);
}

.scw-faq-standalone .scw-faq-item.is-open .scw-faq-item__q {
    background: transparent;
}

/* ── Arrow icon ── */
.scw-faq-standalone .scw-faq-item__arrow {
    font-size: 11px;
    color: var(--scw-faq-q-color, #0F0F0F);
    opacity: 0.35;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    transition: all 0.25s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-faq-standalone .scw-faq-item.is-open .scw-faq-item__arrow {
    transform: rotate(90deg);
    background: var(--scw-faq-accent, #FFC800);
    color: var(--scw-faq-q-color, #0F0F0F);
    opacity: 1;
}

/* ── Answer panel ── */
.scw-faq-standalone .scw-faq-item__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--scw-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.scw-faq-standalone .scw-faq-item.is-open .scw-faq-item__a {
    max-height: 600px;
}

.scw-faq-standalone .scw-faq-item__a > div {
    padding: 0 24px 22px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--scw-faq-a-color, #4B5563);
}

.scw-faq-standalone .scw-faq-item__a p {
    margin: 0 0 12px;
}

.scw-faq-standalone .scw-faq-item__a p:last-child {
    margin-bottom: 0;
}

/* ── Editor preview: show all answers ── */
.elementor-editor-active .scw-faq-standalone .scw-faq-item__a {
    max-height: none !important;
}

/* ════════════════════════════════════════════
   Responsive — Tablet (≤ 768px)
   ════════════════════════════════════════════ */
@media (max-width: 768px) {
    .scw-faq-standalone .scw-faq-item__q {
        padding: 16px 20px;
        font-size: 15px;
    }

    .scw-faq-standalone .scw-faq-item__a > div {
        padding: 0 20px 18px;
        font-size: 14px;
    }
}

/* ════════════════════════════════════════════
   Responsive — Small mobile (≤ 480px)
   ════════════════════════════════════════════ */
@media (max-width: 480px) {
    .scw-faq-standalone .scw-faq-item__q {
        padding: 14px 16px;
        font-size: 14px;
        gap: 12px;
    }

    .scw-faq-standalone .scw-faq-item__arrow {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .scw-faq-standalone .scw-faq-item__a > div {
        padding: 0 16px 16px;
        font-size: 14px;
    }
}
