/* SUNDEX p154: the launcher and the open chat are viewport-owned UI. */
html body button.support-launcher,
html body button.support-launcher[data-sx154-persistent="true"],
html body.sundex-transaction-system button.support-launcher[aria-label*="support" i],
html body.sundex-auth-v2 button.support-launcher,
html body[data-sundex-product-route="trade"] button.support-launcher,
html body:has(.wallet-premium) button.support-launcher {
  position: fixed !important;
  z-index: 2147481500 !important;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto !important;
  display: inline-flex !important;
  visibility: visible !important;
  align-items: center !important;
  justify-content: center !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  clip-path: none !important;
  transform: none !important;
}

/*
 * The landing intro intentionally hides #root while its replacement hero is
 * active. Visibility is inherited, so the chat must explicitly opt back in.
 */
html body .support-panel,
html body .support-panel[data-sx154-persistent="true"],
html body.sundex-intro-active > #root .support-panel,
html body.sundex-premium-landing #root .support-panel,
html body.sundex-route-recovering #root .support-panel {
  position: fixed !important;
  z-index: 2147481500 !important;
  inset: auto max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) auto !important;
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto !important;
  opacity: 1 !important;
  clip: auto !important;
  clip-path: none !important;
  transform: none !important;
}

@media (max-width: 640px) {
  html body button.support-launcher,
  html body button.support-launcher[data-sx154-persistent="true"],
  html body .support-panel,
  html body .support-panel[data-sx154-persistent="true"] {
    right: max(14px, env(safe-area-inset-right)) !important;
    bottom: max(14px, env(safe-area-inset-bottom)) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body button.support-launcher,
  html body .support-panel {
    transition-duration: 0.01ms !important;
  }
}
