/* FAQ widget styles */
.m-faq-widget {
    --title-color: #000;
    --text-color: #000;

    max-width: 900px;
    margin: 0 auto;
    font-family: inherit;
}

.m-faq-item {
    border-bottom: 1px solid #e9e9e9;
    padding: 18px 0;
    position: relative;
}

.m-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.m-faq-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    color: var(--title-color);
    font-weight: 700;
}

.m-faq-item.active .m-faq-title {
    color: var(--e-global-color-primary);
}

.m-faq-toggle {
    background: transparent !important;
    border: 0;
    width: 45px;
    height: 45px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.m-faq-toggle svg { display: block; width: inherit; height: inherit; transition: transform 0.5s ease, fill 0.5s ease, stroke 0.5s ease; transform: rotate(-45deg); }

/* When the FAQ item is active (open) keep SVG unrotated and swap colors */
.m-faq-item.active .m-faq-toggle svg { transform: rotate(0deg); }
.m-faq-item.active .m-faq-toggle svg rect { fill: #ffffff !important; stroke: var(--e-global-color-primary) !important; }
.m-faq-item.active .m-faq-toggle svg path { stroke: var(--e-global-color-primary) !important; }

.m-faq-answer {
    padding: 15px 0 10px;
    color: var(--text-color);
    position: relative;
    width: 100%;
    max-width: 550px;
}

.m-faq-answer p {
    margin: 0;
}

@media (max-width: 767px) {
    .m-faq-title {
        font-size: 16px;
    }

    .m-faq-toggle {
        width: 36px;
        height: 36px;
    }
}