/**
 * WhatsApp Float Button - Clean CSS-Only Solution
 * Always visible, never disappears, no JavaScript needed
 */

/* Ensure button is never clipped - fixed position ignores parent overflow */
/* Note: position:fixed elements are positioned relative to viewport, not parent */

/* Main Button Styles */
.whatsapp-float {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 28px;
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.2s ease;
  text-decoration: none;
  border: none;
  outline: none;
  margin: 0;
  padding: 0;
  /* Fade-in animation */
  animation: fadeIn 0.4s ease-in-out forwards;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float i {
  font-size: 28px;
  color: white;
}

/* Tooltip */
.tooltip {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: #25D366;
  color: white;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  white-space: nowrap;
}

.whatsapp-float:hover .tooltip {
  opacity: 1;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 22px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float i {
    font-size: 22px;
  }
  
  .tooltip {
    display: none; /* Hide tooltip on mobile */
  }
}

/* Force visibility - override any hiding attempts */
.whatsapp-float[hidden],
.whatsapp-float.hidden,
.whatsapp-float.d-none {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
