.whatsapp-btn {
  position: fixed;
  bottom: 25px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25d366;
  color: white;
  padding: 14px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-family: sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 999;
  animation: pulse 2s infinite;
  transition: 0.3s;
}

/* icon */

.whatsapp-btn i {
  font-size: 26px;
}

.whatsapp-btn span {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

/* text */

.chat-text {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 600;
}

.chat-text small {
  font-size: 12px;
  opacity: 0.9;
}

/* hover */

.whatsapp-btn:hover {
  transform: scale(1.05);
  animation: none;
}

/* pulse animation */

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* mobile responsive */

@media (max-width: 600px) {
  .whatsapp-btn {
    padding: 12px 18px;
  }

  .chat-text {
    font-size: 14px;
  }

  .chat-text small {
    font-size: 11px;
  }

  .whatsapp-btn i {
    font-size: 22px;
  }
}

.whatsapp-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

/* chat box */

.chat-box {
  width: 300px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: absolute;
  bottom: 70px;
  right: 0;
  overflow: hidden;
  /* hidden state */
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-widget:hover .chat-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* active state */

.chat-box.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* header */

.chat-header {
  background: #25d366;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* body */

.chat-body {
  padding: 15px;
}

.chat-msg {
  font-size: 14px;
  margin-bottom: 15px;
  color: black;
  font-weight: 500;
}

/* quick questions */

.quick-msg {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.quick-msg:hover {
  background: #25d366;
  color: white;
}

@media (max-width: 768px) {
  .whatsapp-btn span {
    display: none;
  }

  .whatsapp-btn {
    width: 55px;
    height: 55px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

.whatsapp-btn {
  transition: 0.3s;
}

.whatsapp-btn:hover {
  transform: translateY(-3px) scale(1.09);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* hide button while scrolling */

.whatsapp-widget.hide {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.35s ease;
}
