/* ============================================
   WhatsApp Floating Button - Professional Style
   ============================================ */

/* Main button container */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  animation: pulse 2s infinite;
  background: linear-gradient(135deg, #25D366, #128C7E);
}

/* Pulse animation ring */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Inner ripple effect */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(37, 211, 102, 0.4);
  border-radius: 50%;
  animation: ripple 1.8s infinite;
  pointer-events: none;
}

@keyframes ripple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Hover effect */
.whatsapp-float:hover {
  transform: scale(1.12) rotate(4deg);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

/* SVG icon styling */
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
}

/* Tooltip on hover (optional - adds "Chat with us" text) */
.whatsapp-float::after {
  content: '💬 WhatsApp';
  position: absolute;
  right: 70px;
  background: white;
  color: #075E54;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.3px;
  pointer-events: none;
}

.whatsapp-float:hover::after {
  opacity: 1;
  visibility: visible;
  right: 75px;
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 90px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  .whatsapp-float::after {
    font-size: 10px;
    padding: 5px 12px;
    right: 60px;
  }
  
  .whatsapp-float:hover::after {
    right: 65px;
  }
}

/* Small screen adjustment */
@media (max-width: 480px) {
  .whatsapp-float {
    width: 46px;
    height: 46px;
    bottom: 80px;
    right: 16px;
  }
  
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* Translation widget positioning (if present) */
#translate-wrap {
  bottom: 24px;
  right: 24px;
  z-index: 9998;
}