/* =========================================
   WhatsApp Floating Contact Component
   Prefix: wa-float-
   ========================================= */

.wa-float-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999; /* Adjust if your cookie banner has a higher z-index */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #25D366; /* Official WhatsApp Green */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.3s ease;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Hover State (Desktop) */
@media (hover: hover) {
  .wa-float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #20bd5a; /* Slightly darker green on hover */
  }
}

/* Active/Click State (Visual Feedback) */
.wa-float-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* WhatsApp Icon SVG */
.wa-float-icon {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  transition: transform 0.3s ease;
}

/* Tooltip Styling */
.wa-float-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333333;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Tooltip Arrow */
.wa-float-tooltip::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #333333;
}

/* Show Tooltip on Hover (Desktop only) */
@media (hover: hover) {
  .wa-float-btn:hover .wa-float-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(-5px);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .wa-float-btn {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  
  .wa-float-icon {
    width: 28px;
    height: 28px;
  }
  
  /* Hide tooltip on touch devices to prevent sticky hover states */
  .wa-float-tooltip {
    display: none;
  }
}