/* frontend/src/shared/Toast.tsx: above the feedback widget (30) and the wizard's dialogs (40, 50). */
.toast {
  position: fixed;
  /* Clear of the wizard's footer (wizard.css), where there is one. */
  bottom: var(--wz-bottom-clearance, 2.4rem);
  left: 50%;
  z-index: 60;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0;
  font-size: 1.4rem;
  /* Lets clicks through to what it covers, such as the wizard's footer buttons. */
  pointer-events: none;
  box-shadow: 0 0.4rem 2.4rem rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
  animation: toast-fade-out 0.3s ease-in 3s forwards;
}

@keyframes toast-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}
