/**
 * nikoala.faq Frontend Styles
 */

.nikoala-faq-wrapper {
    width: 100%;
    margin: 20px 0;
    font-family: inherit;
}

.nikoala-faq-group-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 1.5em;
    font-weight: 600;
}

.nikoala-faq-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nikoala-faq-item {
    border-radius: 4px;
    overflow: hidden;
}

.nikoala-faq-question::before, .nikoala-faq-question::after {
    content: unset;
}

.nikoala-faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nikoala-faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease;
    text-align: left;
}

.nikoala-faq-answer.active {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid #eee;
}

.faq-toggle-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 20px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.nikoala-faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* Responsive styles */
@media (max-width: 768px) {
    .nikoala-faq-question {
        padding: 12px 16px;
    }
    
    .nikoala-faq-answer.active {
        padding: 16px;
    }
}