/* Floating WhatsApp button — shared by the public site, the user app and onboarding. */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  padding: 0 18px 0 15px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(37, 211, 102, .46); color: #fff; }
.wa-float:active { transform: translateY(0); }
.wa-float i { font-size: 27px; line-height: 1; }

/* Phones: a round icon button, clear of the bottom tab bar and any pinned action bar. */
@media (max-width: 1000px) {
  .wa-float { height: 52px; width: 52px; padding: 0; justify-content: center; right: 16px; }
  .wa-float-text { display: none; }
  body.app-user .wa-float { bottom: calc(var(--tabbar-h, 64px) + 16px + env(safe-area-inset-bottom)); }
  body.app-user:has(.flow-actions) .wa-float { bottom: calc(var(--tabbar-h, 64px) + 84px + env(safe-area-inset-bottom)); }
}

@media print { .wa-float { display: none; } }

/* ── Install app prompt (PWA) ───────────────────────────────────────────── */
.install-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 70;
  width: calc(100% - 32px);
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #10172A;
  color: #fff;
  box-shadow: 0 16px 40px rgba(6, 10, 22, .32);
  animation: install-up .22s ease-out;
}
.install-text { display: grid; gap: 2px; min-width: 0; }
.install-text strong { font-size: 14.5px; }
.install-text span { font-size: 12.5px; opacity: .72; }
.install-actions { display: flex; gap: 8px; margin-left: auto; flex-shrink: 0; }
.install-bar button { border: 0; border-radius: 10px; padding: 10px 14px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.install-cta { background: #00E0A8; color: #04140F; }
.install-ghost { background: transparent; color: #AEB8D0; }
.install-ghost:hover { color: #fff; }

@keyframes install-up { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Clear of the bottom tab bar in the customer app. */
@media (max-width: 1000px) {
  body.app-user .install-bar { bottom: calc(var(--tabbar-h, 64px) + 16px + env(safe-area-inset-bottom)); }
  body.app-user:has(.wa-float) .install-bar { bottom: calc(var(--tabbar-h, 64px) + 80px + env(safe-area-inset-bottom)); }
}
