/**
 * Cookie Consent Banner - Estilo Política de Privacidade
 * Paleta de cores: Diego Gás (#D51411)
 * Desenvolvido por: Roka Digital - https://rokadigital.com.br/contato/
 */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 1.5rem;
    z-index: 9999;
    display: none;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid #e5e7eb;
}

.cookie-consent-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: space-between;
}

.cookie-consent-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.cookie-consent-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #D51411;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.cookie-consent-icon svg {
    width: 18px;
    height: 18px;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-description {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-link {
    color: #D51411;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.cookie-consent-link:hover {
    border-bottom-color: #D51411;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-consent-btn {
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    font-family: inherit;
    outline: none;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 6px;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: #D51411;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-consent-btn-accept:hover {
    background: #b01010;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213, 20, 17, 0.25);
}

.cookie-consent-btn-accept:active {
    transform: translateY(0);
}

.cookie-consent-btn-accept svg {
    width: 16px;
    height: 16px;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cookie-consent-left {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cookie-consent-icon {
        width: 28px;
        height: 28px;
    }
    
    .cookie-consent-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .cookie-consent-title {
        font-size: 15px;
    }
    
    .cookie-consent-description {
        font-size: 13px;
    }
    
    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }
    
    .cookie-consent-btn-accept {
        flex: 1;
        justify-content: center;
        padding: 12px 20px;
    }
}

/* Animação de entrada */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Acessibilidade */
.cookie-consent-btn:focus-visible {
    outline: 2px solid #D51411;
    outline-offset: 2px;
}

/* Ajuste para não sobrepor conteúdo */
body.cookie-banner-visible {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    body.cookie-banner-visible {
        padding-bottom: 140px;
    }
}
