.toast {
  animation: slideIn 0.3s ease-out forwards;
}

.toast-hide {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}

.toast-container>* {
  pointer-events: auto;
}

@media (min-width: 640px) {
  .toast-container {
    top: 20px;
    right: 20px;
    left: auto;
    max-width: 380px;
  }
}