/* ==========================================================================
   Vendors Listing — FAQ Accordion Styles
   Accordion with clickable questions, +/- or chevron toggle, collapsible answers
   Matches: class-faq-widget.php render()
   ========================================================================== */

/* CSS Variables */
.vl-wrapper .vl-faq {
    --vl-primary: #6C5CE7;
    --vl-primary-light: rgba(108, 92, 231, 0.1);
    --vl-text: #1a1a2e;
    --vl-text-light: #555555;
    --vl-text-muted: #888888;
    --vl-border: #eeeeee;
    --vl-bg: #ffffff;
    --vl-bg-light: #f8f8ff;
    --vl-radius-md: 12px;
    --vl-transition: all 0.3s ease;
}

/* ---------------------------------------------------------------------
   1. FAQ Container
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq {
    padding: 0 24px !important;
}

/* ---------------------------------------------------------------------
   2. Section Header
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq__header {
    text-align: center !important;
    margin-bottom: 48px !important;
}

.vl-wrapper .vl-faq__heading {
    font-size: 36px !important;
    font-weight: 800 !important;
    color: var(--vl-text, #1a1a2e) !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    margin: 0 0 12px 0 !important;
}

.vl-wrapper .vl-faq__subheading {
    font-size: 18px !important;
    color: var(--vl-text-light, #555555) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ---------------------------------------------------------------------
   3. Items Wrapper (for centering / alignment)
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq__items-wrap {
    display: flex !important;
    justify-content: center !important;
}

.vl-wrapper .vl-faq__items {
    max-width: 800px !important;
    width: 100% !important;
}

/* ---------------------------------------------------------------------
   4. FAQ Item
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item {
    border-bottom: 1px solid var(--vl-border, #eeeeee) !important;
    transition: var(--vl-transition) !important;
}

.vl-wrapper .vl-faq-item:first-child {
    border-top: 1px solid var(--vl-border, #eeeeee) !important;
}

/* Active item highlight */
.vl-wrapper .vl-faq-item--active {
    border-bottom-color: var(--vl-primary, #6C5CE7) !important;
}

/* ---------------------------------------------------------------------
   5. Question (Accordion Header Button)
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__question {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 20px 24px !important;
    width: 100% !important;
    background: var(--vl-bg, #ffffff) !important;
    border: none !important;
    border-bottom: 1px solid var(--vl-border, #eeeeee) !important;
    cursor: pointer !important;
    text-align: left !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--vl-text, #1a1a2e) !important;
    line-height: 1.4 !important;
    transition: var(--vl-transition) !important;
    box-sizing: border-box !important;
}

.vl-wrapper .vl-faq-item__question:hover {
    background-color: #fafafe !important;
    color: var(--vl-primary, #6C5CE7) !important;
}

.vl-wrapper .vl-faq-item__question:hover .vl-faq-item__question-text {
    color: var(--vl-primary, #6C5CE7) !important;
}

/* Active state question background */
.vl-wrapper .vl-faq-item--active .vl-faq-item__question {
    background-color: var(--vl-bg-light, #f8f8ff) !important;
    border-bottom-color: transparent !important;
}

/* Active state question text color */
.vl-wrapper .vl-faq-item--active .vl-faq-item__question-text {
    color: var(--vl-primary, #6C5CE7) !important;
}

/* ---------------------------------------------------------------------
   6. Question Text
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__question-text {
    flex: 1 !important;
    transition: color 0.3s ease !important;
}

/* ---------------------------------------------------------------------
   7. Toggle Icon Container
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__icon {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    position: relative !important;
    transition: var(--vl-transition) !important;
    color: var(--vl-primary, #6C5CE7) !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Active state icon color */
.vl-wrapper .vl-faq-item--active .vl-faq-item__icon {
    color: var(--vl-primary, #6C5CE7) !important;
}

/* ---------------------------------------------------------------------
   8. Plus / Minus Text Icons
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__icon-plus,
.vl-wrapper .vl-faq-item__icon-minus {
    font-size: 20px !important;
    font-weight: 300 !important;
    line-height: 1 !important;
    transition: var(--vl-transition) !important;
}

/* Default: show plus, hide minus */
.vl-wrapper .vl-faq-item__icon-plus {
    display: inline !important;
}

.vl-wrapper .vl-faq-item__icon-minus {
    display: none !important;
}

/* Active: hide plus, show minus */
.vl-wrapper .vl-faq-item--active .vl-faq-item__icon-plus {
    display: none !important;
}

.vl-wrapper .vl-faq-item--active .vl-faq-item__icon-minus {
    display: inline !important;
}

/* ---------------------------------------------------------------------
   9. Chevron SVG Icon
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__icon-svg {
    width: 1em !important;
    height: 1em !important;
    transition: transform 0.3s ease !important;
    color: inherit !important;
}

.vl-wrapper .vl-faq-item--active .vl-faq-item__icon-svg {
    transform: rotate(180deg) !important;
}

/* ---------------------------------------------------------------------
   10. Answer Wrap (container toggled via display:none in JS)
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__answer-wrap {
    overflow: hidden !important;
    transition: var(--vl-transition) !important;
}

/* ---------------------------------------------------------------------
   11. Answer Content
   --------------------------------------------------------------------- */
.vl-wrapper .vl-faq-item__answer {
    padding: 0 24px 20px 24px !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--vl-text-light, #555555) !important;
    background: var(--vl-bg, #ffffff) !important;
}

.vl-wrapper .vl-faq-item--active .vl-faq-item__answer {
    background: var(--vl-bg-light, #f8f8ff) !important;
}

/* Links inside answers */
.vl-wrapper .vl-faq-item__answer a {
    color: var(--vl-primary, #6C5CE7) !important;
    font-weight: 500 !important;
    text-decoration: underline !important;
    transition: color 0.3s ease !important;
}

.vl-wrapper .vl-faq-item__answer a:hover {
    color: var(--vl-primary-dark, #5A4BD1) !important;
}

/* ---------------------------------------------------------------------
   12. Responsive — Tablet (1024px)
   --------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .vl-wrapper .vl-faq__heading {
        font-size: 30px !important;
    }

    .vl-wrapper .vl-faq__subheading {
        font-size: 16px !important;
    }

    .vl-wrapper .vl-faq__items {
        max-width: 100% !important;
    }
}

/* ---------------------------------------------------------------------
   13. Responsive — Mobile (768px)
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
    .vl-wrapper .vl-faq {
        padding: 0 16px !important;
    }

    .vl-wrapper .vl-faq__heading {
        font-size: 24px !important;
    }

    .vl-wrapper .vl-faq__subheading {
        font-size: 15px !important;
    }

    .vl-wrapper .vl-faq__header {
        margin-bottom: 32px !important;
    }

    .vl-wrapper .vl-faq-item__question {
        padding: 16px !important;
        font-size: 15px !important;
        gap: 12px !important;
    }

    .vl-wrapper .vl-faq-item__answer {
        padding: 0 16px 16px 16px !important;
        font-size: 14px !important;
    }

    .vl-wrapper .vl-faq-item__icon {
        width: 24px !important;
        height: 24px !important;
        font-size: 18px !important;
    }
}

/* ==========================================================================
   GROUP TABS (For Customers / For Vendors / General)
   ========================================================================== */
.vl-wrapper .vl-faq__tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 6px !important;
    margin: 0 auto 32px !important;
    background: #f4f5f9 !important;
    border-radius: 14px !important;
    max-width: fit-content !important;
}

.vl-wrapper .vl-faq__tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 22px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #636E72 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    font-family: inherit !important;
    white-space: nowrap !important;
}

.vl-wrapper .vl-faq__tab:hover {
    color: #1a1a2e !important;
}

.vl-wrapper .vl-faq__tab.is-active {
    background: #ffffff !important;
    color: #6C5CE7 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.vl-wrapper .vl-faq__tab-count {
    font-size: 12px !important;
    color: #9ca3af !important;
    font-weight: 500 !important;
}

.vl-wrapper .vl-faq__tab.is-active .vl-faq__tab-count {
    color: #6C5CE7 !important;
    opacity: 0.7 !important;
}

/* Panel transitions */
.vl-wrapper .vl-faq__panel {
    animation: vlFaqPanelFade 0.35s ease !important;
}

@keyframes vlFaqPanelFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* HTML answer content (lists, strong, links) */
.vl-wrapper .vl-faq-item__answer p {
    margin: 0 0 10px !important;
    line-height: 1.6 !important;
}
.vl-wrapper .vl-faq-item__answer p:last-child { margin-bottom: 0 !important; }

.vl-wrapper .vl-faq-item__answer ul,
.vl-wrapper .vl-faq-item__answer ol {
    margin: 10px 0 !important;
    padding-left: 22px !important;
}

.vl-wrapper .vl-faq-item__answer li {
    margin: 4px 0 !important;
    line-height: 1.6 !important;
}

.vl-wrapper .vl-faq-item__answer strong {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

.vl-wrapper .vl-faq-item__answer a {
    color: #6C5CE7 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

.vl-wrapper .vl-faq-item__answer a:hover {
    color: #5A4BD1 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .vl-wrapper .vl-faq__tabs {
        flex-direction: column !important;
        width: 100% !important;
        max-width: none !important;
    }
    .vl-wrapper .vl-faq__tab {
        justify-content: center !important;
        padding: 12px 20px !important;
    }
}
