/* WooCommerce AI FAQ Generator – Frontend Accordion */

.waifaq-faq-section {
    max-width: 100%;
}

.waifaq-accordion {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
}

.waifaq-item {
    border-bottom: 1px solid #e2e2e2;
}

.waifaq-item:last-child {
    border-bottom: none;
}

.waifaq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.4;
    color: #1d2327;
    text-align: left;
    transition: background 0.15s ease;
    font-family: inherit;
    gap: 12px;
}

.waifaq-question:hover {
    background: #f8f9fa;
}

.waifaq-question[aria-expanded="true"] {
    background: #f0f6fc;
}

.waifaq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #999;
}

.waifaq-question[aria-expanded="true"] .waifaq-chevron {
    transform: rotate(180deg);
    color: #2271b1;
}

.waifaq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.waifaq-answer[hidden] {
    display: block !important;
    max-height: 0;
    padding: 0 20px;
}

.waifaq-answer:not([hidden]) {
    max-height: 500px;
    padding: 4px 20px 20px;
}

.waifaq-answer div[itemprop="text"] {
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

.waifaq-answer div[itemprop="text"] p:first-child {
    margin-top: 0;
}

.waifaq-answer div[itemprop="text"] p:last-child {
    margin-bottom: 0;
}
