:root {
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --whatsapp-light: #E8F5E9;
  --text-color: #333;
  --background-color: #f0f0f0;
}

/* WhatsApp Floating Button */
.whatsapp-balloon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-chat {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  width: 350px;
  overflow: hidden;
  display: none;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.whatsapp-chat.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.chat-header {
  background-color: var(--whatsapp);
  color: white;
  padding: 15px;
  display: flex;
  align-items: center;
}

.chat-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit: cover;
}

.chat-body {
  padding: 15px;
  height: 300px;
  overflow-y: auto;
}

.message {
  max-width: 80%;
  padding: 10px 15px;
  border-radius: 18px;
  margin-bottom: 10px;
  position: relative;
}

.received {
  background-color: #f0f0f0;
  align-self: flex-start;
  border-bottom-left-radius: 5px;
}

.sent {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
  border-bottom-right-radius: 5px;
}

.chat-footer {
  padding: 10px;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
}

.chat-footer input {
  flex: 1;
  border: none;
  border-radius: 20px;
  padding: 10px 15px;
  margin-right: 10px;
}

.chat-footer button {
  background: var(--whatsapp);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typing-indicator {
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 8px 15px;
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
}

.typing-indicator span {
  height: 8px;
  width: 8px;
  background-color: #9e9ea1;
  border-radius: 50%;
  display: inline-block;
  margin: 0 2px;
  animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-5px);
  }
}