/* ==========================================================================
   Strategic Workforce Partners — WhatsApp Chat Widget
   Single canonical source. Edit THIS file only. Version: 1.0 — 2026-07-16
   ========================================================================== */

.swp-wa-btn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,.22), 0 2px 6px rgba(0,0,0,.14);
  transition: transform .25s cubic-bezier(.16,.84,.44,1), box-shadow .25s ease, padding .25s ease;
  line-height: 0;
}
.swp-wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 26px rgba(0,0,0,.28), 0 4px 10px rgba(0,0,0,.16);
  color: #FFFFFF;
}
.swp-wa-btn svg {
  width: 28px;
  height: 28px;
  display: block;
  flex-shrink: 0;
}
.swp-wa-btn__label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width .3s ease, opacity .2s ease, margin .3s ease;
}
.swp-wa-btn:hover .swp-wa-btn__label,
.swp-wa-btn:focus-visible .swp-wa-btn__label {
  max-width: 220px;
  opacity: 1;
}

/* Gentle pulse ring to draw the eye without being obnoxious */
.swp-wa-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #25D366;
  opacity: .55;
  z-index: -1;
  animation: swp-wa-pulse 2.4s ease-out infinite;
}
@keyframes swp-wa-pulse {
  0%   { transform: scale(1); opacity: .45; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.swp-wa-btn:focus-visible {
  outline: 2px solid #0F2A47;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .swp-wa-btn { right: 16px; bottom: 16px; padding: 13px; }
  .swp-wa-btn svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .swp-wa-btn, .swp-wa-btn::before { animation: none !important; transition: none !important; }
}

/* Keep clear of any sticky footer bars / cookie banners if added later */
body.swp-has-bottom-bar .swp-wa-btn { bottom: 78px; }
