/* Avisos rápidos (shared/toast.js). Abaixo do diálogo (2100), acima dos modais de módulo (1100). */
.toasts {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--toast-cor, #d97706);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 24px rgb(16 24 40 / 22%);
  font-family: var(--font);
  font-size: 0.9rem;
  line-height: 1.35;
  justify-content: space-between;
  animation: toast-entra 0.18s ease-out;
}

.toast--aviso {
  --toast-cor: #f59e0b;
}

.toast--info {
  --toast-cor: #1d4ed8;
}

.toast--sucesso {
  --toast-cor: #15803d;
}

.toast__texto {
  flex: 1;
  color: #fff;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.toast__fechar {
  color: #fff;
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.toast__fechar:hover {
  opacity: 1;
}

@keyframes toast-entra {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }
}
