/* PopCart FAQ Styles */
.popcart-faq-container {
    max-width: 1080px;
    margin: 0 auto;
    background-color: white;
}

/* Accordion Styles */
.popcart-faq-accordion {
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid #e1e5e9;
}

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

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background: #fff;
    transition: background-color 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background-color: #ffe3fa;
}

.faq-question.active {
    background-color: #ffe3fa;
    border-bottom: 1px solid #e1e5e9;
}

.faq-icon {
    font-size: 18px;
    font-weight: bold;
    margin-right: 15px;
    color: #c30047;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-question h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    line-height: 1.4;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-answer.active {
    max-height: 1000px;
    transition: max-height 0.3s ease-in;
}

.faq-content {
    padding: 15px 20px 20px 55px;
    color: #111;
    line-height: 1.6;
}

.faq-content p {
    margin: 0 0 15px 0;
}

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

/* List Format Styles */
.popcart-faq-list .faq-item {
    margin-bottom: 30px;
    padding: 25px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: #fff;
}

.popcart-faq-list .faq-question {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #c30047;
    padding: 0;
    cursor: default;
    background: none;
}

.popcart-faq-list .faq-answer {
    max-height: none;
    overflow: visible;
}

.popcart-faq-list .faq-content {
    padding: 0;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .popcart-faq-container {
        margin: 0 !important;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-content {
        padding: 0 15px 15px 45px;
    }
    
    .popcart-faq-list .faq-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .popcart-faq-list .faq-question {
        font-size: 18px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .popcart-faq-accordion {
        border-color: #404040;
    }
    
    .faq-item {
        border-color: #404040;
    }
    
    .faq-question {
        background: #2a2a2a;
        color: #fff;
    }
    
    .faq-question:hover {
        background-color: #333;
    }
    
    .faq-question.active {
        background-color: #1a365d;
    }
    
    .faq-question h3 {
        color: #fff;
    }
    
    .faq-content {
        color: #ccc;
        background: #2a2a2a;
    }
    
    .popcart-faq-list .faq-item {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .popcart-faq-list .faq-question {
        color: #fff;
    }
    
    .popcart-faq-list .faq-content {
        color: #ccc;
    }
}