/* =========================================
   BOTÃO FLUTUANTE WHATSAPP - Estilo Lumicenter
   ========================================= */

.whatsapp-float {
    /* Padrão: sempre fixo no canto da tela, em qualquer resolução */
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 20;
    cursor: pointer;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(22 110 140);
    border-radius: 9999px;
    overflow: hidden;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float a:hover {
    transform: scale(1.05);
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: block;
}

/* Não precisamos mais de media query específica para fixar o botão:
   .whatsapp-float já é position: fixed em todas as larguras. */

/* =========================================
   CONTATO NO RODAPÉ
   ========================================= */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
}

.contact-info i {
    width: 16px;
    color: var(--cor-primaria);
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #25D366;
    text-decoration: none;
    font-weight: 500;
    margin-top: 8px;
    transition: color 0.3s ease;
}

.whatsapp-link:hover {
    color: #128C7E;
}

.whatsapp-link i {
    font-size: 18px;
}

/* =========================================
   MODAIS DE TERMOS E POLÍTICAS
   ========================================= */

#modal-termos {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

#modal-termos.show {
    display: flex;
}

.modal-content {
    background: white;
    border: none;
    border-radius: 0;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: none;
    background: var(--cor-primaria);
    color: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    transition: background 0.3s ease;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    line-height: 1.6;
    background-color: var(--fundo-claro);
}

.modal-body h4 {
    color: var(--cor-primaria);
    margin-top: 20px;
    margin-bottom: 10px;
}

.modal-body p {
    margin-bottom: 15px;
    text-align: justify;
}

.modal-body ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 5px;
}

/* =========================================
   RESPONSIVIDADE
   ========================================= */

@media (max-width: 768px) {
    .whatsapp-float {
        /* Em mobile continua absoluta (segue o scroll), só ajusta tamanho/offset */
        position: fixed;
        bottom: 15px;
        right: 15px;
        z-index: 1000;
    }

    .whatsapp-float a {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .whatsapp-tooltip {
        bottom: 60px;
        right: -20px;
        font-size: 11px;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 15px;
    }

    .modal-body {
        padding: 15px;
    }
}

/* =========================================
   BANNER DE COOKIES
   ========================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--fundo-claro);
    border-top: 1px solid var(--borda-padrao);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    padding: var(--espaco-lg);
    animation: slideUp 0.3s ease-out;
}

/* Esconder banner se o consentimento já foi aceito */
.cookie-banner[data-consent-accepted="true"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--espaco-lg);
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 14px;
    color: var(--texto-escuro);
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--cor-primaria);
    text-decoration: underline;
    font-weight: 400;
}

.cookie-banner-text a:hover {
    color: var(--cor-secundaria);
}

.cookie-banner-actions {
    display: flex;
    gap: var(--espaco-md);
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: var(--raio-pequeno);
    font-size: 14px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', 'Montserrat', sans-serif;
}

.cookie-btn-accept {
    background-color: var(--cor-primaria);
    color: white;
}

.cookie-btn-accept:hover {
    background-color: var(--cor-secundaria);
    transform: translateY(-1px);
}

.cookie-btn-reject {
    background-color: transparent;
    color: var(--texto-escuro);
    border: 1px solid var(--borda-padrao);
}

.cookie-btn-reject:hover {
    background-color: var(--fundo-neutro);
    border-color: var(--texto-medio);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: var(--espaco-md);
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: var(--espaco-md);
    }

    .cookie-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-btn {
        width: 100%;
    }
}
