/* Shared, non-displacing notifications for the storefront and admin interface. */
.room-toast-stack {
  position: fixed;
  z-index: 1500;
  right: 22px;
  top: var(--room-toast-top, 108px); /* Beneath the sticky storefront header. */
  bottom: auto;
  width: min(390px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  pointer-events: none;
}
.room-toast {
  --room-toast-accent: #177752;
  --room-toast-soft: #e6f7ef;
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 11px;
  box-sizing: border-box;
  padding: 15px 14px;
  margin: 0;
  border: 1px solid #e6eeea;
  border-left: 4px solid var(--room-toast-accent);
  border-radius: 12px;
  background: #fff;
  color: #163e28;
  box-shadow: 0 14px 40px rgba(10,45,26, .20);
  font: 500 13px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  pointer-events: auto;
  animation: room-toast-enter .24s ease-out both;
}
.room-toast--error { --room-toast-accent: #b13a3a; --room-toast-soft: #fff0ef; }
.room-toast__badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--room-toast-accent);
  background: var(--room-toast-soft);
}
.room-toast__icon { width: 18px; height: 18px; }
.room-toast__message { min-width: 0; margin: 5px 0 0; color: #163e28; }
.room-toast__message strong { display: block; font-size: 13px; font-weight: 700; }
.room-toast__errors {
  max-height: 160px;
  overflow: auto;
  padding-left: 17px;
  margin: 6px 0 0;
  font-weight: 400;
}
.room-toast__errors li + li { margin-top: 4px; }
.room-toast__close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 4px;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #478563;
  cursor: pointer;
}
.room-toast__close:hover { color: #1a422c; background: #eff4f1; }
.room-toast__close:focus-visible { outline: 2px solid #087b43; outline-offset: 2px; }
.room-toast__close-icon { width: 16px; height: 16px; }
.room-toast.is-leaving { animation: room-toast-exit .18s ease-in both; }
@keyframes room-toast-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes room-toast-exit {
  to { opacity: 0; transform: translateY(8px); }
}
@media (max-width: 600px) {
  .room-toast-stack { right: 12px; top: var(--room-toast-top, 82px); bottom: auto; width: min(370px, calc(100vw - 24px)); }
  .room-toast { padding: 12px; gap: 9px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .room-toast, .room-toast.is-leaving { animation: none; }
}

/* Admin notices sit just below the fixed topbar, at the upper-right.
   Storefront notices sit below their sticky header without covering WhatsApp. */
.room65-admin .room-toast-stack {
  top: 82px;
  right: 18px;
  bottom: auto;
  width: min(300px, calc(100vw - 36px));
  z-index: 1600;
}
@media (max-width: 540px) {
  .room65-admin .room-toast-stack {
    top: 68px;
    right: 12px;
    width: min(300px, calc(100vw - 24px));
  }
}
