/* Original button style */
#btn_wpp {
  position: fixed;
  width: 64px;
  height: 64px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}

#btn_wpp svg {
  margin-top: 12px;
  filter: invert(100%) sepia(94%) saturate(0%) hue-rotate(224deg) brightness(106%) contrast(107%);
  height: 40px;
  width: 40px;
}

/* Typing animation for WhatsApp button */
@keyframes typing {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1);
  }
  75% {
    transform: scale(1.1);
  }
}

/* Animation for text bubble appearing */
@keyframes appearBubble {
  0% {
    opacity: 0;
    transform: translateX(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation for text bubble disappearing */
@keyframes disappearBubble {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Text bubble style */
.text-bubble {
  position: fixed;
  right: 100px;
  bottom: 50px;
  background-color: white;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #333;
  z-index: 99;
  opacity: 0;
  display: none;
  transform: translateX(20px);
}

/* Bubble pointer */
.text-bubble:after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 15px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

/* Style for typing dots */
.typing-dots {
  position: fixed;
  right: 100px;
  bottom: 50px;
  background-color: white;
  padding: 10px 15px;
  border-radius: 20px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #333;
  z-index: 99;
  max-width: 80px;
  opacity: 0;
  display: none;
}

.typing-dots:after {
  content: '';
  position: absolute;
  right: -10px;
  bottom: 15px;
  border-width: 10px 0 10px 10px;
  border-style: solid;
  border-color: transparent transparent transparent white;
}

/* Animation for dots */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #888;
  margin-right: 4px;
  animation: dotFlash 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotFlash {
  0% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.8); opacity: 0.5; }
}