/**
 * Share FAQs accordion — frontend (zero JavaScript, native <details>).
 * Styled to match the site's green pill accordion (formerly JetTabs).
 */

.wpdst-faqs {
    margin: 0 0 28px;
    width: 100%;
}

.wpdst-faq,
.wpdst-faqs-heading {
    width: 100%;
    box-sizing: border-box;
}

/* Make the FAQ fill its section's content width even if the Elementor
   Shortcode widget was left at a reduced desktop width. Overrides only the
   widget's own width (Elementor's --width var) — NOT the boxed container's
   content cap — so the FAQ lines up with the other sections rather than
   bleeding to the full viewport. :has() is supported in current browsers. */
.elementor-widget-shortcode:has(.wpdst-faqs) {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.elementor-widget-shortcode:has(.wpdst-faqs) > .elementor-widget-container {
    width: 100% !important;
    max-width: 100% !important;
}

.wpdst-faqs-heading {
    margin: 0 0 20px;
    text-align: center;
}

.wpdst-faq {
    margin-bottom: 20px;
    border-radius: 10px;
    background: #86c440;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Question row (the green pill) */
.wpdst-faq-q {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    padding: 20px 70px 20px 26px;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    position: relative;
    user-select: none;
    min-height: 28px;
}

.wpdst-faq-q::-webkit-details-marker {
    display: none;
}

/* White circular chevron button on the right */
.wpdst-faq-q::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 30px;
    height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background:
        #fff
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2386c440' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")
        center / 14px 14px no-repeat;
    transition: transform 0.25s ease;
}

.wpdst-faq[open] > .wpdst-faq-q::after {
    transform: rotate(180deg);
}

/* Answer body */
.wpdst-faq-a {
    background: #fff;
    padding: 20px 26px;
    color: #384047;
    line-height: 1.7;
    font-size: 15px;
}

.wpdst-faq-a p {
    margin: 0 0 12px;
}

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

.wpdst-faq-a a {
    color: #2e7d32;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .wpdst-faq {
        margin-bottom: 14px;
    }
    .wpdst-faq-q {
        font-size: 15px;
        padding: 16px 58px 16px 18px;
    }
    .wpdst-faq-q::after {
        right: 16px;
        width: 26px;
        height: 26px;
        margin-top: -13px;
    }
    .wpdst-faq-a {
        padding: 16px 18px;
    }
}
