
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

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

.whatsapp-widget:hover .whatsapp-chat,
.whatsapp-widget.active .whatsapp-chat {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.whatsapp-header {
  background-color: #075e54;
  color: white;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid white;
}

.whatsapp-header .header-info {
  display: flex;
  flex-direction: column;
}

.whatsapp-header .header-info .name {
  font-weight: bold;
}

.whatsapp-header .header-info .status {
  font-size: 12px;
  opacity: 0.8;
}

.whatsapp-body {
  background-color: #ece5dd;
  padding: 15px;
}

.whatsapp-message {
  background-color: white;
  border-radius: 7px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.whatsapp-message span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  text-align: right;
  color: gray;
}

.whatsapp-input {
  background-color: #fff;
  padding: 15px;
  border-top: 1px solid #ddd;
}

.whatsapp-input input {
  width: 100%;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 10px;
  font-size: 14px;
}

.whatsapp-button {
  background-color: #25D366;
  color: white;
  width: 100%;
  padding: 10px;
  text-align: center;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  border: none;
  transition: background-color 0.3s;
  box-sizing: border-box;
}

.whatsapp-button:hover {
  background-color: #20b954;
  color: #DDD !important;
}

.whatsapp-icon {
  background-color: #25D366;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.whatsapp-icon img {
  width: 30px;
  height: 30px;
}