.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  width: 380px;
  background: var(--toast-bg);
  color: var(--toast-text);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  opacity: 0;
  animation: toast-enter 0.25s forwards;
}

.toast--closing {
  animation: toast-exit 0.25s forwards;
}

.toast__body {
  padding: 1rem;
}

.toast__title {
  margin: 0;
}

.toast__message {
  margin-top: 0.5rem;
}

.toast__actions {
  padding: 0 1rem 1rem;
  display: flex;
  /* justify-content: flex-end; */
  /* justify-content: center; */
  /* justify-content: space-between; */
  /* justify-content: flex-start; */
  /* justify-content: space-around; */
  justify-content: space-evenly;
  gap: 8px;
}

.toast__button {
  cursor: pointer;
  background-color: #18d26e;
  border: none;
  padding: 10px 15px;
  color: #fff;
  transition: 0.4s;
  border-radius: 4px;
  opacity: 0.9;
}

.toast__button:hover {
  opacity: 1;
}

.toast__progress {
  height: 4px;
  width: 0%;
  background: var(--toast-accent);
}

.toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  /* width: 24px;
  height: 24px; */
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  border-radius: 50%;
}

.toast__close i {
  color: #fff;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  display: block;
}

@keyframes toast-enter {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-exit {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
