.chat-header,
.chat-content,
.message-input {
  position: fixed;
  right: 20px;
  width: 300px;
  background-color: #e5ddd5;
  z-index: 10002;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}
.chat-header {
  top: calc(100% - 420px);
  height: 60px;
  background-color: #075e54;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  border-radius: 12px 12px 0 0;
}
.avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
  margin-right: 10px;
}
.chat-header img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #25d366;
  border-radius: 50%;
  border: 2px solid #075e54;
}
.chat-header-info {
  flex-grow: 1;
}
.chat-header h1 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 0px;
}
.online-status {
  font-size: 12px;
}
.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.close-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}
.chat-content {
  top: calc(100% - 360px);
  height: 300px;
  padding: 20px;
  overflow-y: auto;
}
.message {
  max-width: 80%;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 7.5px;
  position: relative;
  word-wrap: break-word;
}
.message.received {
  background-color: #ffffff;
  align-self: flex-start;
}
.message.sent {
  background-color: #dcf8c6;
  align-self: flex-end;
  margin-left: auto;
}
.message-input {
  bottom: 20px;
  height: 60px;
  display: flex;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 0 0 12px 12px;
}
.whatsapp-btn {
  background-color: #25d366;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-btn:hover {
  background-color: #128c7e;
}
.typing-indicator {
  background-color: #e5ddd5;
  padding: 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 10px;
}
.typing-indicator span {
  height: 10px;
  width: 10px;
  float: left;
  margin: 0 1px;
  background-color: #9e9ea1;
  display: block;
  border-radius: 50%;
  opacity: 0.4;
}
.typing-indicator span:nth-of-type(1) {
  animation: 1s blink infinite 0.3333s;
}
.typing-indicator span:nth-of-type(2) {
  animation: 1s blink infinite 0.6666s;
}
.typing-indicator span:nth-of-type(3) {
  animation: 1s blink infinite 0.9999s;
}
@keyframes blink {
  50% {
    opacity: 1;
  }
}
.chat-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  animation: wave 2s infinite;
}
.chat-icon img {
  width: 35px;
  height: 35px;
}
@keyframes wave {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}