/* ══════════════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON COMPONENT - NOVACAISSE
   ══════════════════════════════════════════════════════════════ */
.whatsapp-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  pointer-events: none;
}

.whatsapp-widget-container * {
  pointer-events: auto;
}

/* Tooltip message bubble */
.whatsapp-tooltip-bubble {
  position: relative;
  background: #ffffff;
  color: #0f172a;
  padding: 10px 16px 10px 14px;
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 0.86rem;
  font-weight: 600;
  margin-right: 14px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(12px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.whatsapp-tooltip-bubble.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.whatsapp-tooltip-bubble::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-top: 1px solid rgba(226, 232, 240, 0.95);
  border-right: 1px solid rgba(226, 232, 240, 0.95);
}

.whatsapp-tooltip-text {
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.whatsapp-tooltip-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 50%;
  margin-left: 4px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-tooltip-close:hover {
  color: #ef4444;
  transform: scale(1.2);
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: waPulse 3s infinite;
  flex-shrink: 0;
  position: relative;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6), 0 6px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float-btn:active {
  transform: scale(0.95);
}

.whatsapp-svg-icon {
  width: 34px;
  height: 34px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover .whatsapp-svg-icon {
  transform: rotate(-6deg) scale(1.05);
}

/* Pulse Keyframes */
@keyframes waPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Entrance animation */
.whatsapp-widget-container.fade-in-up {
  animation: waFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes waFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .whatsapp-widget-container {
    bottom: 16px;
    right: 16px;
  }
  
  .whatsapp-float-btn {
    width: 62px;
    height: 62px;
  }
  
  .whatsapp-svg-icon {
    width: 35px;
    height: 35px;
  }

  .whatsapp-tooltip-bubble {
    font-size: 0.8rem;
    padding: 8px 12px;
    margin-right: 10px;
    max-width: 200px;
    white-space: normal;
    line-height: 1.3;
  }
}
