/* Avisos: toast de mensagem curta e destaque piscante de campo pendente. */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(10px);
  z-index: 60;
  background: var(--key);
  color: #fff;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  max-width: min(92vw, 440px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (min-width: 900px) {
  .toast {
    bottom: 28px;
  }
}

.flash {
  animation: flash 0.9s ease 2;
}

@keyframes flash {
  50% {
    box-shadow: 0 0 0 4px var(--corrige);
  }
}
