/* WhatsApp Widget Styles */
.whatsapp-widget {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 9999;
  font: 14px / 18px system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Helvetica", "Arial", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.whatsapp-widget * {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Roboto", "Helvetica", "Arial", sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol" !important;
}

.whatsapp-chat-window {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 360px;
  margin-bottom: 15px;
  overflow: hidden;
  display: none;
  animation: slideUp 0.3s ease-out;
  position: relative;
}

.whatsapp-chat-window.show {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-header {
  background: rgb(0, 128, 105);
  padding: 15px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(rgb(229, 229, 229) 0%, rgb(203, 203, 203) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  position: relative;
}

.whatsapp-logo::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background: rgb(37, 211, 102);
  border-radius: 50%;
  border: 2px solid rgb(0, 128, 105);
}

.whatsapp-logo img {
  width: 100%;
  object-fit: contain;
}

.whatsapp-header-info {
  flex: 1;
  padding-right: 30px;
}
.whatsapp-header-info * {
  color: white !important;
  text-transform: none !important;
}
.whatsapp-header-info p {
  line-height: unset !important;
  text-align: left !important;
}

.whatsapp-header-info h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.whatsapp-header-info p {
  margin: 2px 0 0 0;
  font-size: 12px;
  opacity: 0.9;
}

.whatsapp-close {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 4px;
  right: 8px;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.whatsapp-chat-body {
  background: #e5ddd5;
  background-image: url("/assets/image/background-whatsapp.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  padding: 15px 20px 20px 20px;
  position: relative;
}

.whatsapp-message {
  background: white;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0 10px 0;
  max-width: 75%;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.whatsapp-message::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid white;
}

.whatsapp-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.whatsapp-input-container {
  background: white;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #f0f0f0;
}

.whatsapp-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  border-radius: 20px;
  background: #f8f8f8;
  font-size: 14px;
  color: #333;
}

.whatsapp-input::placeholder {
  color: #999;
}

.whatsapp-send-btn {
  background: rgb(37, 211, 102);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 8px 6px 8px 8px;
}

.whatsapp-send-btn:hover {
  background: #20ba5a;
}

.whatsapp-send-btn i {
  color: white;
  font-size: 14px;
  transform: rotate(0deg);
}

.whatsapp-float-btn {
  background: rgb(37, 211, 102);
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 900 !important;
  font-weight: 500;
  position: relative;
  align-self: flex-end;
}

.whatsapp-float-btn:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.whatsapp-float-btn .whatsapp-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(37, 211, 102);
  font-size: 12px;
}

.whatsapp-float-btn .whatsapp-icon img {
  width: 24px;
  height: 24px;
}

.whatsapp-notification {
  position: absolute;
  top: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background: #ff4444;
  border-radius: 50%;
  border: 2px solid white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .whatsapp-widget {
    right: 15px;
  }

  .whatsapp-chat-window {
    width: 320px;
  }

  .whatsapp-float-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .whatsapp-chat-window {
    width: 300px;
    margin-bottom: 10px;
  }

  .whatsapp-float-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
}
