/* Cookie Policy Modal Overlay (remains mostly the same, ensuring it centers its content) */
.cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Fundo escurecido, sem blur */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Reusing .modal-wrapper from news modal, apply specific sizing for cookie modal */
/* NOTE: if you had specific styling for .modal-wrapper in news-modal.css already, this might override or extend it.
   Make sure to put this *after* the news modal's .modal-wrapper definition, or integrate carefully.
   Assuming .modal-wrapper is already defined in news-modal.css, we only need to adjust its size for the cookie modal context. */
.cookie-modal-overlay .modal-wrapper {
    background-color: #fff;
    /* Fundo branco */
    border-radius: 8px;
    /* Cantos arredondados */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Sombra */
    width: 90%;
    /* Largura do modal */
    max-width: 648px;
    /* Largura máxima */
    overflow: hidden;
    /* No longer need margin: 5% auto; as the overlay handles centering */
    /* Remove if flex-direction: column; is already in news modal's .modal-wrapper */
    /* display: flex; */
    /* flex-direction: column; */
}

.cookie-modal-overlay .modal-wrapper .modal-header-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Espaça os elementos */
    background-color: #EFF0F4;
    /* Cor de fundo da barra */
    padding: 8px 30px;
    /* Preenchimento interno */
    color: #333;
    font-size: 0.9em;
    flex-shrink: 0;
    /* Impede que a barra encolha */
}

.cookie-modal-overlay .modal-wrapper .modal-header-top-bar .modal-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Espaço entre os três botões */
}

.cookie-modal-overlay .modal-wrapper .modal-header-top-bar .modal-header-right .modal-header-action-btn {
    background: none;
    /* Remove qualquer background padrão */
    border: none;
    /* Remove borda padrão */
    cursor: pointer;
    /* Indica que é clicável */
    color: #666;
    /* Cor base unificada para o ícone */
    padding: 0 5px;
    /* Padding interno do botão */

    /* Centraliza o ícone dentro do botão */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Define um tamanho fixo para maior consistência visual entre os botões */
    width: 28px;
    /* Largura do botão */
    height: 28px;
    /* Altura do botão */

    border-radius: 4px;
    /* Leve arredondamento nas bordas */
    transition: background-color 0.2s ease, color 0.2s ease;
    /* Transição suave para hover */
}

.cookie-modal-overlay .modal-wrapper .modal-header-top-bar .modal-header-right .modal-header-action-btn .modal-header-action-btn i {
    font-size: 18px;
    /* Tamanho padronizado para todos os ícones */
}

.cookie-modal-overlay .modal-wrapper .modal-header-top-bar .modal-header-right .modal-header-action-btn:hover {
    color: #333;
    /* Cor do ícone no hover */
    background-color: #E0E1E6;
    /* Adiciona um background sutil no hover para destacar o botão */
}

.cookie-modal-overlay .modal-wrapper .modal-content {
    border: 0 !important;
}

/* Main content area for cookie modal - reusing .modal-content from news modal */
.cookie-content-body {
    /* This is the new specific class */
    padding: 20px;
    /* Padding inside the content area */
    text-align: center;
    /* <<< Centraliza todo o texto */
    color: #858E96;
    /* Cor do texto padrão */
    font-size: 0.95em;
    /* Tamanho da fonte padrão */
    line-height: 1.5;
    /* Altura da linha */
    /* flex-grow: 1; if not already defined for .modal-content */
    /* overflow-y: auto; if not already defined for .modal-content */
}

/* Specific styling for the bold message */
.cookie-content-body .cookie-main-message {
    font-size: 18px;
    /* Slightly larger for emphasis */
    color: #333;
    font-weight: 600;
    margin-bottom: 1em;
}

/* Link style - reuse if already good, or adjust to fit new context */
.cookie-content-body .cookie-policy-link {
    color: #F15F56;
    /* Vermelho */
    text-decoration: underline;
    font-weight: bold;
}

.cookie-content-body .cookie-policy-link:hover {
    text-decoration: none;
}

/* Accept button style - now that it's inside content, needs to be block and auto margin to center */
.cookie-accept-btn {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.2s ease, border-color 0.2s ease;

    display: block;
    /* Garante que o botão ocupe sua própria linha */
    width: 100%;
    /* <<< NOVO: Faz o botão ocupar 100% da largura disponível */
    margin: 20px auto 0 auto;
    /* Margem superior e centraliza horizontalmente */
}

.cookie-accept-btn:hover {
    background-color: #f0f0f0;
    border-color: #a0a0a0;
}

/* Ensure paragraph margins are consistent with centered text */
.cookie-content-body p {
    margin-bottom: 1em;
}