.wise-messenger-btn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 9999;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .35);
}

.wise-messenger-btn:hover { background: #1d4ed8; color: #fff; }
.wise-messenger-btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
.wise-messenger-btn__pulse { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #2563eb; animation: wiseMessengerPulse 2.2s ease-out infinite; }
.wise-messenger-btn__icon { width: 22px; height: 22px; flex: 0 0 auto; }
.wise-messenger-btn__label { white-space: nowrap; }

@keyframes wiseMessengerPulse {
  0% { transform: scale(1); opacity: .55; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) { .wise-messenger-btn__pulse { animation: none; } }

@media (max-width: 640px) {
  .wise-messenger-btn {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 14px;
    border-radius: 50%;
  }
  .wise-messenger-btn__icon { width: 24px; height: 24px; }
  .wise-messenger-btn__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}
