/* Ecopia WhatsApp floating button v2 (plain self-hosted asset, same
   pattern as widget.css). All selectors prefixed ecwa- to avoid
   collisions with the React bundle and the ecw- webchat widget.
   Pill shape: WhatsApp glyph + text label, soft pulse halo for
   attention. Bottom-left, mirroring the webchat launcher (bottom-right). */
#ecwa-launcher {
  position: fixed;
  left: 20px;
  bottom: 100px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#ecwa-launcher:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  text-decoration: none;
}
#ecwa-launcher:focus-visible {
  outline: 3px solid #128c7e;
  outline-offset: 2px;
}
#ecwa-launcher svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
  flex: 0 0 auto;
}
#ecwa-launcher .ecwa-label {
  white-space: nowrap;
}

/* Soft attention pulse: an expanding halo ring every 3s. */
#ecwa-launcher::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid #25d366;
  animation: ecwa-pulse 3s ease-out infinite;
  pointer-events: none;
}
@keyframes ecwa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #ecwa-launcher::after {
    animation: none;
    display: none;
  }
}

@media (max-width: 640px) {
  #ecwa-launcher {
    left: 16px;
    bottom: 90px;
    padding: 10px 14px 10px 12px;
    font-size: 14px;
  }
  #ecwa-launcher svg {
    width: 22px;
    height: 22px;
  }
}
