/* Floating click-to-WhatsApp button (templates/_wa_float.html).
   WhatsApp's own green so it is recognised at a glance, white glyph, a soft
   shadow so it reads above any section, and room for the phone's home bar.
   Round 56px on phones; a labelled pill from 720px. Mirrors for Arabic. */

.wa-float {
  position: fixed;
  z-index: 60;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font: 600 15px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 10px 24px rgba(7, 94, 84, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.wa-float.is-rtl { right: auto; left: max(16px, env(safe-area-inset-left)); }
.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe5b;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(7, 94, 84, 0.34), 0 3px 8px rgba(0, 0, 0, 0.14);
  color: #fff;
}
.wa-float:focus-visible { outline: 3px solid #0b0e11; outline-offset: 3px; }
.wa-float-i { width: 28px; height: 28px; flex: none; }
.wa-float-t {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* A gentle ring every few seconds, the only motion, switched off on request. */
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  animation: wa-ring 4s ease-out 2s infinite;
  pointer-events: none;
}
@keyframes wa-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  45%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (min-width: 720px) {
  .wa-float { width: auto; padding: 0 20px 0 16px; height: 54px; }
  .wa-float.is-rtl { padding: 0 16px 0 20px; }
  .wa-float-i { width: 26px; height: 26px; }
  .wa-float-t { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float::after { animation: none; }
}
@media print { .wa-float { display: none; } }

/* Inline WhatsApp buttons on the main site (header, call-to-action, contact). */
.btn-wa-site {
  background: #25d366 !important;
  color: #06331b !important;
  border: 0;
}
.btn-wa-site:hover, .btn-wa-site:focus-visible { background: #1ebe5b !important; color: #06331b !important; }
.btn-wa-site svg { width: 18px; height: 18px; flex: none; }

/* Bundle page: a quiet WhatsApp line under each buy button. */
.bundle-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 10px; padding: 11px 16px; border-radius: 999px; border: 2px solid #25d366;
  color: #0b7a3b; font-weight: 700; text-decoration: none; background: rgba(37, 211, 102, 0.08); }
.bundle-wa:hover, .bundle-wa:focus-visible { background: #25d366; color: #06331b; }
.bundle-wa svg { width: 20px; height: 20px; flex: none; }
