/* Aviso: Este arquivo depende da variável --verde-profundo e --verde-ativo definidas no style.css ou loading.css */

/* ========================================================= */
/* ESTRUTURA E POSICIONAMENTO GERAL DO WIDGET COOKIE */
/* ========================================================= */

.cookie-widget {
    position: fixed;
    bottom: 30px;
    left: 30px; /* Posicionado no canto inferior esquerdo */
    z-index: 9990; /* Abaixo do WhatsApp/BackToTop, mas acima do conteúdo */

    /* Estado inicial Oculto e preparado para animação de bounce/slide-up */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; /* Adicionado para controle do widget pai */
}

/* ========================================================= */
/* ESTILOS DO PAINEL PRINCIPAL DE CONSENTIMENTO */
/* ========================================================= */

#cookiePanel {
    width: 380px; /* Largura fixa */
    background-color: #1A1A1A; /* Fundo escuro similar ao AdOpt */
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    
    /* Estado inicial oculto. Será mostrado pelo JS/GSAP */
    opacity: 0;
    visibility: hidden;
    transform: translateY(100%); /* Começa fora da tela para animar para cima */

    position: absolute; /* Para flutuar sobre o botão flutuante */
    bottom: 0;
    left: 0;
}

/* Classe de controle visual para quando o painel está ativo */
.cookie-widget.active #cookiePanel {
    /* Não defina opacity/visibility/transform aqui. Deixe o GSAP controlar. */
}

/* ========================================================= */
/* COMPONENTES INTERNOS DO PAINEL */
/* ========================================================= */

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* Estilo para a logo no cabeçalho do painel */
.cookie-header-logo {
    height: 30px; /* Tamanho ajustado para não quebrar o layout */
    width: auto;
}

.btn-optout {
    /* Este container agora abriga a imagem da logo */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.panel-body {
    padding: 5px 0;
}

.panel-description {
    font-size: 14px;
    line-height: 1.5;
    color: #ccc;
    margin-bottom: 15px;
}

.privacy-links a {
    font-size: 14px;
    color: #ECAF23; /* Cor de teste */
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap; /* Evita quebras de linha dentro dos links longos */
}

.privacy-links a:hover {
    color: #F7B53A; /* Mantendo um hover ligeiramente mais claro */
}

/* ========================================================= */
/* BOTÕES DE AÇÃO */
/* ========================================================= */

.panel-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding-top: 5px;
}

.btn-options {
    font-size: 14px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
    flex-grow: 1;
    text-align: left;
    white-space: nowrap;
    padding: 10px 0;
}

.btn-reject {
    background-color: #1A1A1A; /* Fundo transparente/escuro para rejeitar */
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 10px 20px;
    border: 2px solid #555;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100px;
    white-space: nowrap;
}

.btn-reject:hover {
    border-color: white;
}

.btn-accept {
    /* Usando a cor primária para o botão Aceitar */
    background-color: var(--verde-profundo, #1A5E2E); 
    color: white;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
    max-width: 130px;
}

.btn-accept:hover {
    background-color: #247C3D;
}


/* ========================================================= */
/* BOTÃO FLUTUANTE DE COOKIE */
/* ========================================================= */

#cookieFloatingBtn {
    /* Posição no canto esquerdo, deslocado para que o painel abra ao lado/acima */
    position: absolute; 
    bottom: 0; 
    left: 0;
    
    width: 55px;
    height: 55px;
    background-color: #1A1A1A; /* Fundo do botão */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;

    /* Inicialmente, o botão flutuante também deve estar oculto, 
       só aparecendo depois que o consentimento for dado (lógica JS) */
    opacity: 0;
    visibility: hidden;
}

/* Estilo para a imagem SVG dentro do botão flutuante */
#cookieFloatingBtn img {
    width: 28px;
    height: 28px;
}