/* WhatsApp Float Button - Styles */

#wab-container {
  position: fixed;
  bottom: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#wab-container.wab-right { right: 28px; align-items: flex-end; }
#wab-container.wab-left  { left:  28px; align-items: flex-start; }

/* Tooltip label */
#wab-label {
  background: #fff;
  color: #333;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  letter-spacing: 0.01em;
}

#wab-container:hover #wab-label,
#wab-container.wab-visible #wab-label {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Main button */
#wab-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.18);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  position: relative;
  outline: none;
  border: none;
  background: var(--wab-color, #25D366);
  animation: wab-pop-in 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes wab-pop-in {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}

#wab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.55), 0 4px 12px rgba(0,0,0,0.2);
}

#wab-btn:active {
  transform: scale(0.96);
}

/* Pulse ring */
#wab-btn::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 3px solid var(--wab-color, #25D366);
  opacity: 0;
  animation: wab-pulse 2.4s ease-out infinite;
}

@keyframes wab-pulse {
  0%   { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.6); }
}

/* WhatsApp SVG icon */
#wab-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #wab-container { bottom: 18px; }
  #wab-container.wab-right { right: 18px; }
  #wab-container.wab-left  { left:  18px; }
  #wab-btn { width: 54px; height: 54px; }
  #wab-btn svg { width: 28px; height: 28px; }
}
