/* ZS Schema Pro frontend styles - UI safe version.
   This file only styles FAQ cards inside WooCommerce product description content.
   It intentionally does not target header menus, mega menus, all-categories menus,
   sticky headers, body wrappers, or generic WooCommerce tab wrappers. */

body.single-product .product #tab-description,
body.single-product .product .woocommerce-Tabs-panel--description,
body.single-product .product .hr-desc-wrap,
body.single-product .product .hr-desc-template1 {
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
    scrollbar-width: none;
}

body.single-product .product #tab-description::-webkit-scrollbar,
body.single-product .product .woocommerce-Tabs-panel--description::-webkit-scrollbar,
body.single-product .product .hr-desc-wrap::-webkit-scrollbar,
body.single-product .product .hr-desc-template1::-webkit-scrollbar {
    display: none;
}

body.single-product .product .zs-auto-faq-section {
    display: block;
    margin: 18px 0 0;
    clear: both;
}

body.single-product .product .zs-auto-faq-item {
    display: block;
    margin: 0 0 14px;
    padding: 16px 18px;
    border: 1px solid rgba(47, 179, 139, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

body.single-product .product .zs-auto-faq-question {
    display: block;
    margin: 0 0 8px;
    color: inherit;
    font-weight: 700;
    line-height: 1.45;
}

body.single-product .product .zs-auto-faq-answer {
    display: block;
    line-height: 1.75;
}

body.single-product .product .zs-auto-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Fallback cleanup for FAQ lists written as Q:/A: list items before PHP conversion runs.
   Scoped only to the product description area so navigation/category dropdown lists remain untouched. */
body.single-product .product #tab-description ul.faq-list,
body.single-product .product .woocommerce-Tabs-panel--description ul.faq-list,
body.single-product .product .hr-desc-wrap ul.faq-list,
body.single-product .product .hr-desc-template1 ul.faq-list {
    list-style: none !important;
    padding-left: 0 !important;
}

body.single-product .product #tab-description ul.faq-list li::before,
body.single-product .product .woocommerce-Tabs-panel--description ul.faq-list li::before,
body.single-product .product .hr-desc-wrap ul.faq-list li::before,
body.single-product .product .hr-desc-template1 ul.faq-list li::before {
    display: none !important;
    content: none !important;
}
