/* ================================================== */
/* ESTILOS PARA O BANNER PERSONALIZADO (FLUTUANTE)    */
/* ================================================== */

.cv-custom-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1140px;
    
    background: #FFFFFF;
    color: #333333;
    
    padding: 20px 24px;
    z-index: 10000000;
    
    display: flex;
    /* REMOVIDO: flex-wrap: wrap; */
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Adicionado um espaçamento entre texto e botões */
    
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    box-sizing: border-box;
    
    animation: cvCookieFadeInUp 0.6s ease-out;
}

@keyframes cvCookieFadeInUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.cv-custom-banner p {
    margin: 0;
    flex: 1 1 auto; /* Permite que o texto ocupe o espaço disponível */
    padding-right: 0; /* Removido padding extra */
    font-size: 16px;
    line-height: 1.6;
}

.cv-custom-banner p a {
    color: inherit !important;
    text-decoration: underline !important;
}

.cv-banner-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Impede que os botões encolham */
}

.cv-custom-banner .cv-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s;
    white-space: nowrap; /* Garante que o texto do botão não quebre */
}

/* Botão "Apenas Necessários" */
.cv-custom-banner .cv-btn-necessary {
    background: #f1f1f1;
    color: #495057;
}
.cv-custom-banner .cv-btn-necessary:hover {
    background: #dee2e6;
    color: #495057;
}

/* Botão "Aceitar Tudo" */
.cv-custom-banner .cv-btn-accept-all {
    background: #1A2B4C;
    color: #FFFFFF;
}
.cv-custom-banner .cv-btn-accept-all:hover {
    opacity: 0.9;
}

/* ================================================== */
/* RESPONSIVIDADE PARA O BANNER                       */
/* ================================================== */
@media (max-width: 768px) {
    .cv-custom-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        bottom: 10px;
        width: calc(100% - 20px);
        gap: 16px;
    }
    
    /* CORREÇÃO PARA MOBILE: Botões lado a lado */
    .cv-banner-buttons {
        width: 100%;
        display: flex;
        flex-direction: row; /* Força lado a lado */
        justify-content: center;
    }

    .cv-custom-banner .cv-btn {
        /* Cada botão ocupa metade do espaço menos o 'gap' */
        width: calc(50% - 5px); 
    }
}

/* ================================================== */
/* ESTILOS PARA O MODAL DO KLARO E BOTÃO DE GESTÃO    */
/* ================================================== */
.klaro-cookie-modal .klaro-cm-modal,
.cv-klaro-cookie-modal .cv-klaro-cm-modal {
    background: #333;
    border-radius: 10px;
}
.cv-manage-button {
    padding: 8px 15px;
    background: #1A2B4C;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* ================================================== */
/* ESTILOS PARA O MODAL LGPD                          */
/* ================================================== */

.cv-lgpd-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000001; /* Acima do banner de cookies */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cv-lgpd-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 90%;
    width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.cv-lgpd-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
}
.cv-lgpd-modal-close:hover {
    color: #333;
}

/* Estilos do formulário (adaptados do seu código) */
.cv-lgpd-modal-content .widget-container {
    font-family: Arial, sans-serif;
    text-align: center;
}
.cv-lgpd-modal-content .widget-container .form-group {
    margin-bottom: 15px;
    text-align: left;
}
.cv-lgpd-modal-content .widget-container label {
    display: block;
    margin-bottom: 5px;
}
.cv-lgpd-modal-content .widget-container input[type="text"],
.cv-lgpd-modal-content .widget-container input[type="email"],
.cv-lgpd-modal-content .widget-container textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.cv-lgpd-modal-content .widget-container button {
    background-color: #1A2B4C;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.cv-lgpd-modal-content .widget-container button:hover {
    background-color: #111827;
}
