/* ============================================================
   ilaw.md — toast flash (stil UI: jos, centru, navy)
   Complectează .toast din components.css
   ============================================================ */

.ilaw-toast-stack {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

/* Suprascrie poziția din components.css când e în stack */
.ilaw-toast-stack .toast {
  position: static;
  transform: none;
  left: auto;
  bottom: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: auto;
  text-align: center;
  max-width: 420px;
}

.ilaw-toast-stack .toast.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.ilaw-toast-stack .toast.toast-hiding {
  opacity: 0;
  transform: translateY(8px);
}

/* Categorii — success / message = navy ca în UI */
.ilaw-toast-stack .toast-success,
.ilaw-toast-stack .toast-message {
  background: var(--navy);
  color: var(--bg);
}

.ilaw-toast-stack .toast-danger {
  background: var(--danger);
  color: #fff;
}

.ilaw-toast-stack .toast-warning {
  background: var(--pending, #C48A1A);
  color: #fff;
}

.ilaw-toast-stack .toast-info {
  background: var(--navy);
  color: var(--bg);
}
