/* ==========================================================================
   Floating WhatsApp support button
   Sits above the page on every screen; collapses to a circle on phones so it
   never covers the form or the sticky call-to-action.
   ========================================================================== */

.wa-fab {
  position: fixed;
  right: clamp(12px, 2vw, 22px);
  bottom: clamp(12px, 2vw, 22px);
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: 0 1.05rem 0 .85rem;
  min-height: 54px;
  border-radius: 999px;
  background: #25D366;
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, .6), 0 2px 6px rgba(0, 0, 0, .12);
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.wa-fab:hover,
.wa-fab:focus-visible {
  background: #1FBE5B;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .75), 0 3px 8px rgba(0, 0, 0, .14);
}

.wa-fab:focus-visible {
  outline: 3px solid rgba(37, 211, 102, .45);
  outline-offset: 3px;
}

.wa-fab__icon {
  flex: none;
  width: 30px;
  height: 30px;
  fill: #fff;
}

.wa-fab__text { display: flex; flex-direction: column; }

.wa-fab__title { font-weight: 700; }

.wa-fab__sub {
  font-size: .72rem;
  font-weight: 500;
  opacity: .92;
}

/* A quiet pulse the first few seconds, so it is noticed without nagging. */
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: wa-pulse 2.4s ease-out 3;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
  70%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Phones: a circle, clear of the sticky form actions and the home indicator */
@media (max-width: 640px) {
  .wa-fab {
    padding: 0;
    width: 54px;
    justify-content: center;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .wa-fab__text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab { transition: none; }
  .wa-fab::after { animation: none; }
  .wa-fab:hover { transform: none; }
}

@media print { .wa-fab { display: none !important; } }

/* The label states reply hours, so it must not wrap the pill onto two lines. */
.wa-fab__sub { white-space: nowrap; font-size: .7rem; }

/* On desktop the enquiry form occupies the right column, and its Next / Continue
   button sits exactly where a bottom-right floating button lands. Move the pill
   to the bottom-left there so it can never cover the form's primary action.
   Phones keep it bottom-right, where it is a circle clear of the sticky CTA. */
@media (min-width: 641px) {
  .wa-fab { left: clamp(12px, 2vw, 22px); right: auto; }
}
