/* ============================================================================
   AMAC Suite — Version Watch v1.0.0 toast  (shared, suite-wide)
   ----------------------------------------------------------------------------
   Self-contained styling — NO app variables, so the "new version available"
   toast looks identical in every app. Bottom-CENTER so it clears the
   bottom-right "Report a problem" FAB. All selectors are id-scoped
   (#amacVersionToast …) so they win on specificity over broad app rules such as
   `body.suite-shell button` (CRM-2) without needing !important.
   Pairs with amac-version-watch-v1.js.
   ========================================================================= */
#amacVersionToast.amac-version-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  z-index: 2147483000;
  width: calc(100% - 32px);
  max-width: 470px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#amacVersionToast.amac-version-toast.amac-version-toast--in {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

#amacVersionToast .amac-version-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  /* deep navy — kin to the suite rail, deliberately distinct from the amber
     "not signed in" session banner so the two never read as the same alert. */
  background: #1e2a4a;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
  box-sizing: border-box;
}

#amacVersionToast .amac-version-toast-icon {
  flex: 0 0 auto;
  font-size: 18px;
  line-height: 1;
  opacity: .9;
}

#amacVersionToast .amac-version-toast-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #fff;
}
#amacVersionToast .amac-version-toast-text strong { font-weight: 600; }
#amacVersionToast .amac-version-toast-sub { opacity: .78; font-size: 12px; }

#amacVersionToast .amac-version-toast-refresh {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  background: #2f6fed;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 7px;
  white-space: nowrap;
}
#amacVersionToast .amac-version-toast-refresh:hover { background: #2a63d6; }
#amacVersionToast .amac-version-toast-refresh:disabled { opacity: .7; cursor: default; }
#amacVersionToast .amac-version-toast-refresh:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

#amacVersionToast .amac-version-toast-dismiss {
  flex: 0 0 auto;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  background: transparent;
  color: #fff;
  opacity: .7;
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 6px;
}
#amacVersionToast .amac-version-toast-dismiss:hover { opacity: 1; }
#amacVersionToast .amac-version-toast-dismiss:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 520px) {
  /* Lift clear of the bottom-right "Report a problem" FAB on phones, where the
     toast goes near-full-width and would otherwise overlap it. */
  #amacVersionToast.amac-version-toast { bottom: 84px; }
  #amacVersionToast .amac-version-toast-sub { display: none; }  /* keep it one line on phones */
}
@media (prefers-reduced-motion: reduce) {
  #amacVersionToast.amac-version-toast { transition: opacity .01s linear; transform: translate(-50%, 0); }
}
