/* Draggable Floating WhatsApp Button */
/* Engineered by Asha IT Solutions (https://ashaitsolution.in) */

#tapzi-whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -4px rgba(37, 211, 102, 0.5), 0 0 20px rgba(37, 211, 102, 0.35);
  cursor: grab;
  z-index: 99999;
  user-select: none;
  touch-action: none;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

#tapzi-whatsapp-floating:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 32px -4px rgba(37, 211, 102, 0.65), 0 0 25px rgba(37, 211, 102, 0.5);
}

#tapzi-whatsapp-floating:active {
  cursor: grabbing;
  transform: scale(0.96);
}

#tapzi-whatsapp-floating.is-dragging {
  cursor: grabbing;
  transition: none !important;
  opacity: 0.95;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(37, 211, 102, 0.6);
}

/* Tooltip on Hover */
#tapzi-whatsapp-floating .wa-tooltip {
  position: absolute;
  right: 70px;
  background: #0F172A;
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#tapzi-whatsapp-floating:hover .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Pulsing outer ring animation */
#tapzi-whatsapp-floating::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  opacity: 0.7;
  animation: wa-pulse 2.2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
