/* One appearance and timing for every admin notification. */
#ssm-admin-notification {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: max-content;
  max-width: min(520px, calc(100vw - 48px));
  padding: 12px 18px;
  border-radius: 5px;
  background: #3498DB;
  color: #fff;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
}
#ssm-admin-notification.is-visible { opacity: 1; transform: translateY(0); }
/* SSMNotify.error() already sets this class; it had no colour of its own, so a
   refused save looked the same as a confirmation. White on this red is 5.1:1. */
#ssm-admin-notification.ssm-notification--error { background: #c0392b; }
#ssm-admin-notification .ssm-notification-icon { color: #fff; flex: 0 0 auto; font-size: 20px; font-weight: bold; }
#ssm-admin-notification .ssm-notification-icon[hidden] { display: none; }
#ssm-admin-notification-message { overflow-wrap: anywhere; min-width: 0; }
/* No reduced-motion block here: with "reduce motion" on in the operating
   system this made every saved-confirmation appear and vanish in one frame,
   which is easy to miss entirely. See the note in js/scroll_nav.js. */
