.toast-container {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: 4px;
  max-width: 350px;
  width: fit-content;
  color: white;
  font-size: 14px;
  transform: translateY(-100px);
  opacity: 0;
  transition:
    transform 150ms ease-out,
    opacity 150ms ease-out;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  text-align: center;
  box-sizing: border-box;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background-color: #3498db;
}

.toast-error {
  background-color: #e74c3c;
}

@media screen and (max-width: 480px) {
  .toast-container {
    left: 15px;
    right: 15px;
    top: 15px;
  }

  .toast {
    max-width: 100%;
    width: 100%;
  }
}
