/**
 * FAQ Widget Styles
 * 
 * Estilos para o widget de perguntas frequentes
 * 
 * @package CemPorcentoEcommerce
 * @since 1.3.2
 */

/* Container principal */
.cpc-faq-widget {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Sinkin Sans', Arial, sans-serif;
}

/* Item FAQ */
.cpc-faq-item {
    margin-bottom: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid #B8B8B8;
}

.cpc-faq-item:last-child {
    border-bottom: 1px solid #B8B8B8;
}

.cpc-faq-item:first-child {
    border-top: 1px solid #B8B8B8;
}

/* Header da pergunta */
.cpc-faq-header {
    display: flex;
    background-color: transparent !important;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 15px;
}

.cpc-faq-header:hover {
    background-color: transparent;
}

/* Pergunta */
.cpc-faq-question {
    margin: 0;
    padding: 0;
    font-family: 'Sinkin Sans', Arial, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #575757;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s ease;
}

/* Ícone toggle */
.cpc-faq-toggle {
    font-size: 20px;
    color: #575757 !important;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cpc-faq-open .cpc-faq-toggle {
    transform: rotate(180deg);
}

/* Conteúdo da resposta */
.cpc-faq-content {
    max-height: 0;
    background-color: transparent;
    border: none;
    border-radius: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cpc-faq-open .cpc-faq-content {
    max-height: 2000px;
    opacity: 1;
}

/* Resposta */
.cpc-faq-answer {
    padding: 15px 0 20px 0;
    font-family: 'Sinkin Sans', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #575757;
}

.cpc-faq-answer p {
    margin: 0 0 10px 0;
    font-family: 'Sinkin Sans', Arial, sans-serif;
}

.cpc-faq-answer p:last-child {
    margin-bottom: 0;
}

.cpc-faq-answer ul,
.cpc-faq-answer ol {
    margin: 10px 0;
    padding-left: 25px;
    font-family: 'Sinkin Sans', Arial, sans-serif;
}

.cpc-faq-answer li {
    margin-bottom: 5px;
    font-family: 'Sinkin Sans', Arial, sans-serif;
}

.cpc-faq-answer a {
    color: #F18223;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpc-faq-answer a:hover {
    color: #d16b1a;
    text-decoration: underline;
}

/* Estados do item aberto */
.cpc-faq-open .cpc-faq-header {
    border-radius: 8px 8px 0 0;
    background-color: transparent !important;
}

/* Animação de abertura */
@keyframes cpc-faq-slide-down {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .cpc-faq-header {
        padding: 15px 20px;
    }
    
    .cpc-faq-question {
        font-size: 16px;
    }
    
    .cpc-faq-toggle {
        font-size: 18px;
    }
    
    .cpc-faq-answer {
        padding: 15px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .cpc-faq-header {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .cpc-faq-question {
        font-size: 15px;
    }
    
    .cpc-faq-toggle {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }
    
    .cpc-faq-answer {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* Elementor Editor Compatibility */
.elementor-editor-active .cpc-faq-content {
    display: block !important;
}

.elementor-editor-active .cpc-faq-item {
    margin-bottom: 15px;
}

/* Print styles */
@media print {
    .cpc-faq-content {
        display: block !important;
    }
    
    .cpc-faq-toggle {
        display: none;
    }
}
