.toast {
  visibility: hidden;
  min-width: 90%;
  background-color: #333;
  color: #fff;
  border-radius: 8px;
  padding: 14px 20px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 30px;
  /* 👈 top instead of bottom */
  transform: translateX(-50%);
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s ease, top 0.5s ease;
}

.toast.show {
  visibility: visible;
  opacity: 1;
  top: 50px;
  /* 👈 slides down a bit when shown */
}

.toast.success {
  background-color: #28a745;
}

.toast.error {
  background-color: #dc3545;
}

.toast.wait {
  background-color: #ffc107;
  color: #000;
}

.close-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

@media only screen and (min-width : 767px) {
  .toast {
    min-width: 70%;
  }
}

@media only screen and (min-width : 1020px) {
  .toast {
    min-width: fit-content;
  }
}