body {
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f0f0;
}

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.whatsapp-icon img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25D366;
  transition: background-color 0.3s, transform 0.3s;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-icon:hover img {
  background-color: #109521;
  transform: translateY(-5px);
}

.hover-message {
  position: absolute;
  bottom: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #25D366;
  color: #fff;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-align: center;
  width: 200px;
  margin-left: -100px;
}

.whatsapp-icon:hover .hover-message {
  opacity: 1;
  pointer-events: auto;
}

.chat-box {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  max-width: 90%;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 9999;
  animation: popup 0.3s ease;
}

@keyframes popup {
  0% {
      transform: scale(0.5);
      opacity: 0;
  }
  100% {
      transform: scale(1);
      opacity: 1;
  }
}

.chat-header {
  background-color: #25D366;
  color: #fff;
  padding: 15px;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.chat-body {
  padding: 10px;
  overflow-y: auto;
  max-height: 300px;
}

.message {
  padding: 8px 12px;
  border-radius: 5px;
  margin-bottom: 10px;
  width: fit-content;
  max-width: 80%;
}

.message.received {
  background-color: #e5e5e5;
  margin-left: 0;
}

.message.sent {
  background-color: #dcf8c6;
  margin-left: auto;
}

.chat-footer {
  padding: 10px;
  display: flex;
  align-items: center;
  border-top: 1px solid #ccc;
}

.chat-footer textarea {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  resize: none;
  margin-right: 10px;
}

.chat-footer button {
  background-color: #25D366;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-footer button:hover {
  background-color: #109521;
}
