/* Overlay da modal */
.lgpd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Overlay escuro ocupando toda a tela */
    z-index: 9999;
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

/* Conteúdo da modal */
.lgpd-modal-content {
    position: relative;
    width: 780px;
    height: auto;
    max-height: 90vh; /* Limita a altura máxima */
    background: #ffffff; /* Cor padrão, sobrescrita pelo JS */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column; /* Estrutura em coluna para fixar header e footer */
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

/* Modal visível */
.lgpd-modal.visible .lgpd-modal-content {
    transform: scale(1);
}

/* Cabeçalho da modal (fixo) */
.lgpd-modal-header {
    padding: 20px 30px;
    flex-shrink: 0; /* Não encolhe */
}

.lgpd-modal-header h2 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
}

.lgpd-modal-header p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Corpo da modal (rolável) */
.lgpd-modal-body {
    flex-grow: 1; /* Ocupa o espaço disponível */
    overflow-y: auto; /* Apenas o body é rolável */
    padding: 0 30px;
	max-height:200px; 
	border-top: 1px solid #eee;
	background:#f5f5f5; 
	
}

/* Seção de preferências */
.cookie-section {
    margin-bottom: 15px;
	border-bottom: 1px solid rgba(127,127,127,0.1);
	padding-bottom: 15px;	
}

.cookie-section h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cookie-section p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
}

.cookie-section label {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
}

.cookie-section input[type="checkbox"] {
    margin-right: 8px;
	position: relative;
    top: -2px;
}

.cookie-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    font-size: 12px;
    color: #555;
}

.cookie-list li {
    margin-bottom: 4px;
}


.cookie-preferences{  	max-height:200px; padding:1rem 0 !important; border-radius:10px !important; }

/* Rodapé da modal (fixo) */
.lgpd-modal-footer {
    padding: 30px 30px;
    flex-shrink: 0; /* Não encolhe */
    display: flex;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid #eee; /* Linha sutil para separar */
	margin-top: 0px;
}

.lgpd-button {
    padding: 10px 20px !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .9rem !important;
    font-weight: 500;
    flex: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ícone flutuante */
.lgpd-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 24px;
    transition: transform 0.2s ease;
	z-index:300;
}

.lgpd-icon:hover {
    transform: scale(1.1);
}

.lgpd-icon img{
    position:relative;
    bottom: -4px;


}
/* Responsividade para mobile */
@media (max-width: 820px) {
    .lgpd-modal-content {
        width: 90%;
        height: auto;
        min-height: 300px;
        max-height: 80vh;
    }

    .lgpd-modal-header {
        padding: 15px 20px;
    }

    .lgpd-modal-header h2 {
        font-size: 20px;
    }

    .lgpd-modal-header p {
        font-size: 13px;
    }

    .lgpd-modal-body {
        padding: 0 20px;
    }

    .cookie-section h3 {
        font-size: 16px;
    }

    .cookie-section p {
        font-size: 12px;
    }

    .lgpd-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
        gap: 8px;
    }

    .lgpd-button {
        padding: 10px;
        font-size: 13px;
    }

    .lgpd-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}