/* Phase 10: WhatsApp floating action button */

.cl-whatsapp-fab-wrapper {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 9000;
}

.cl-whatsapp-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.cl-whatsapp-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.cl-whatsapp-fab:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(37, 211, 102, 0.3);
}

/* Tooltip — hidden by default, appears on hover/focus */
.cl-whatsapp-fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 13px;
  font-family: sans-serif;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cl-whatsapp-fab__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: #1a1a1a;
}

.cl-whatsapp-fab:hover .cl-whatsapp-fab__tooltip,
.cl-whatsapp-fab:focus-visible .cl-whatsapp-fab__tooltip {
  opacity: 1;
}

/* Reduce size slightly on very small screens */
@media (max-width: 480px) {
  .cl-whatsapp-fab-wrapper {
    bottom: 80px;
    right: 16px;
  }
  .cl-whatsapp-fab {
    width: 52px;
    height: 52px;
  }
  .cl-whatsapp-fab__tooltip {
    display: none; /* no tooltip on small screens */
  }
}
