/* FAQ Frontend — Bouncy Accordion */
.mwm-faqs {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: gap 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Add gap when an item is open — separates active item from group */
.mwm-faqs:has(.mwm-faq--active) {
    gap: 8px;
}

.mwm-faq {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* When items are stacked (no active), merge borders */
.mwm-faqs:not(:has(.mwm-faq--active)) .mwm-faq {
    border-radius: 0;
    margin-bottom: -1px;
}

.mwm-faqs:not(:has(.mwm-faq--active)) .mwm-faq:first-child {
    border-radius: 8px 8px 0 0;
}

.mwm-faqs:not(:has(.mwm-faq--active)) .mwm-faq:last-child {
    border-radius: 0 0 8px 8px;
    margin-bottom: 0;
}

.mwm-faq--active {
    border-color: #ccc;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Question button */
.mwm-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    cursor: pointer;
    border: none !important;
    background: transparent !important;
    color: #1d2327 !important;
    font-family: inherit;
    text-align: left;
    gap: 16px;
}

.mwm-faq--active .mwm-faq__question {
    background: #01312D !important;
    color: #fff !important;
}

.mwm-faq--active .mwm-faq__question-text {
    color: #fff !important;
}

.mwm-faq__question:focus-visible {
    outline: 2px solid #2271b1;
    outline-offset: -2px;
    border-radius: 6px;
}

.mwm-faq__question-text {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Chevron — rotates on open */
.mwm-faq__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                background-color 0.3s ease;
    color: #666;
}

.mwm-faq--active .mwm-faq__chevron {
    transform: rotate(180deg);
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Panel — height animated by JS */
.mwm-faq__panel {
    height: 0;
    overflow: hidden;
}

/* Answer content */
.mwm-faq__answer {
    padding: 0 20px 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.mwm-faq__answer p {
    margin: 0 0 12px;
}

.mwm-faq__answer p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .mwm-faq__question {
        padding: 14px 16px;
        font-size: 15px;
    }

    .mwm-faq__answer {
        padding: 0 16px 16px;
        font-size: 14px;
    }
}
