/* Botão Flutuante */
.whatsapp-floating-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

/* Animação pulsante (circular - keyframes) */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        border-radius: 50%; /* Garante que a sombra seja circular */
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); /* Aumenta o raio e zera a opacidade */
        border-radius: 50%; /* Garante que a sombra seja circular */
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        border-radius: 50%; /* Garante que a sombra seja circular */
    }
}


.whatsapp-floating-button a {
    display: block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    position: relative; /* Para posicionar o badge */
}

.whatsapp-floating-button img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

/* Badge de Notificação */
.whatsapp-floating-button .whatsapp-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Modal - Sem alterações */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /*Aumentei para ficar na frente do overlay*/
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4); /* Removido.  O fundo escuro agora é via overlay */
}
#whatsapp-modal.modal .modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 0;
    border: none;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
#whatsapp-modal.modal .modal-header {
    background-color: #075e54;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    color: white;
    text-align: center;
    position: relative;
}
#whatsapp-modal.modal .modal-header h2 {
	margin: 0;
	font-size: 1.1em;
    font-family: sans-serif;
    color: #fff !important;
}
#whatsapp-modal.modal .modal-header p {
	margin: 0.5em 0 0 0 ;
	font-size: 0.9em;
    font-family: sans-serif;
    color: #fff !important;
}
#whatsapp-modal.modal .modal-header .close {
    color: #fff !important;
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.8;
}
#whatsapp-modal.modal .modal-header .close:hover,
#whatsapp-modal.modal .modal-header .close:focus {
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
    opacity: 1;
}
#whatsapp-modal.modal .modal-content #whatsapp-form {
    padding: 15px;
}
#whatsapp-modal.modal .modal-content #whatsapp-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
	font-size: 1em;
    color: #555;
    font-family: sans-serif;
}
#whatsapp-modal.modal .modal-content #whatsapp-form input[type="text"],
#whatsapp-modal.modal .modal-content #whatsapp-form input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9em;
    font-family: sans-serif;
    box-sizing: border-box;
}

#whatsapp-modal.modal .modal-content #whatsapp-form input::placeholder{
    color:#999;
}

#whatsapp-modal.modal .modal-content #whatsapp-form button {
    background-color: #128c7e;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1em;
    font-family: sans-serif;
    margin-top: 8px;
}
#whatsapp-modal.modal .modal-content #whatsapp-form button:hover {
    background-color: #075e54;
}

/* Estilos para o balão de mensagem */
.whatsapp-balloon {
  position: absolute;
  bottom: 100%;
  left: 5px;     /* Mais à esquerda */
  margin-bottom: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1002;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 250px;
  width: max-content;
  white-space: normal;
  text-align: left;
  line-height: 1.4; /* Adicionado aqui */
}

/* Detalhe em "V" (pseudo-elemento) */
.whatsapp-balloon::after {
    content: '';
    position: absolute;
    top: 100%;  /* Na parte inferior do balão */
    left: 15px;    /* Alinhado com a esquerda do balão (MESMO VALOR) */
    border-width: 10px;
    border-style: solid;
    border-color: #f8f9fa transparent transparent transparent; /* Cor do "V" */
}

/* Estilo para quando o balão está visível */
.whatsapp-balloon.show {
    opacity: 1;
}

/* Estilo para o texto da mensagem */
.whatsapp-balloon-message {
    font-size: 1em;
    font-family: sans-serif;
    color: #444;
    /* line-height: 1.1;  Removido, pois agora está no pai */
}
/* close button */
.whatsapp-balloon-close{
    position: absolute;
    top: 2px;
    right: 5px;
    cursor: pointer;
    font-size: 0.8em;
    color: #999;

}
.whatsapp-balloon-close:hover{
    color:#333
}

/* Overlay para escurecer o fundo */
body.modal-open {
    position: relative; /* Importante para o overlay funcionar */
}

body.modal-open::before {
    content: '';
    position: fixed; /* Cobre a tela inteira */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Preto com 60% de opacidade */
    z-index: 1000; /* Garante que o overlay fique abaixo do modal */
    pointer-events: none; /* Permite clicar através do overlay */
}