/* Floating WhatsApp button — uses whatsapp.png from the project root. Other colours and fonts come from theme.css. */
.wa-float {
  position: fixed; right: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 60;
  display: flex; align-items: center; gap: 12px; flex-direction: row-reverse;
  opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9);
  transition: opacity .4s, transform .4s cubic-bezier(.2, .8, .2, 1.2), visibility .4s;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; flex: none;
  text-decoration: none; filter: drop-shadow(0 8px 18px rgba(7, 20, 49, .3)); transition: transform .25s;
}
.wa-btn:hover { transform: scale(1.07); }
.wa-btn img { width: 62px; height: 62px; display: block; }
.wa-btn::before { /* soft pulse ring */
  content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid #4caf50; animation: waPulse 2.4s ease-out infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-tip {
  position: relative; padding: 12px 16px; border-radius: 16px; background: var(--surface); color: var(--ink);
  font: 600 13px/1.35 var(--font-body); box-shadow: 0 10px 30px rgba(7, 20, 49, .18); max-width: 220px;
  opacity: 0; transform: translateX(10px); transition: opacity .35s, transform .35s;
}
.wa-tip small { display: block; font-weight: 500; color: var(--muted); margin-top: 2px; }
.wa-float.show-tip .wa-tip { opacity: 1; transform: none; }
.wa-close {
  position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); font: 700 13px/1 var(--font-body); display: grid; place-items: center;
}
@media (max-width: 480px) { .wa-tip { max-width: 180px; } }
