/* --- BOTÃO FLUTUANTE WHATSAPP --- */

.fixed-whatsapp-icon {
  background: #2a9231;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Corrige o alinhamento e o hover */
.fixed-whatsapp-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

/* Força o uso da família de fonte correta do Font Awesome */
.fixed-whatsapp-icon i.fa {
  font-family: "FontAwesome" !important;
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

/* Animação pulsante */
.fixed-whatsapp-icon.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  10% {
    box-shadow: 0 0 0 0 #4dc247;
  }
  80% {
    box-shadow: 0 0 0 15px rgba(77, 194, 71, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(77, 194, 71, 0);
  }
}

/* Corrige o seletor do Font Awesome Stack */
.fa-stack-1x,
.fa-stack-2x {
  position: absolute;
  left: 0;
  width: 100%;
  text-align: center;
}

/* Remove fundo quadrado duplicado (caso seja usado stack) */
.fixed-whatsapp-icon .fa-square.fa-stack-2x {
  display: none !important;
}

/* Responsividade */
@media (max-width: 767px) {
  .fixed-whatsapp-icon {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .fixed-whatsapp-icon i.fa {
    font-size: 34px;
  }
}

/* Acessibilidade visual opcional */
.fixed-whatsapp-icon:focus {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.fixed-whatsapp-icon.pulse {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-whatsapp 1.5s infinite;
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  50% {
    box-shadow: 0 0 0 25px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}
