/* Fallback styles for the WhatsApp floating button */

:root {
  --whatsapp-color: #25d366;
  --whatsapp-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  --whatsapp-border: 2px solid #fff;
}

/* Universal fallback styles to ensure WhatsApp button is visible */
/* These will be applied as a last resort if JavaScript fails */

/* The !important flags ensure these styles take precedence */
.whatsapp-float {
  position: fixed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--whatsapp-color) !important;
  color: white !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  text-decoration: none !important;
  box-shadow: var(--whatsapp-shadow) !important;
  border: var(--whatsapp-border) !important;
  z-index: 999999 !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  right: 20px !important;
  bottom: 20px !important;
  transition: transform 0.3s ease !important;
  font-size: 32px !important;
}

/* Mobile-specific styles */
@media screen and (max-width: 768px) {
  .whatsapp-float {
    bottom: 15px !important;
    right: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
  }
}

/* Hover effects */
.whatsapp-float:hover {
  transform: scale(1.1) !important;
}

/* Animation for floating button */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    box-shadow: var(--whatsapp-shadow);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--whatsapp-shadow);
  }
}

/* Animation class for pulsing effect */
.whatsapp-pulse {
  animation: whatsapp-pulse 2s infinite ease-in-out;
}
