#toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 12px;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--auth-toast-shadow, 0 4px 20px rgba(0, 0, 0, 0.15));
  animation: open 0.3s cubic-bezier(.47,.02,.44,2) forwards;
}

#toast.success {
  background: var(--auth-toast-success-bg, #d4edda);
  border: 1px solid var(--auth-toast-success-border, #28a745);
}

#toast.error {
  background: var(--auth-toast-error-bg, #f8d7da);
  border: 1px solid var(--auth-toast-error-border, #dc3545);
}

#toast.warning {
  background: var(--auth-toast-warning-bg, #fff3cd);
  border: 1px solid var(--auth-toast-warning-border, #ffc107);
}

#toast.info {
  background: var(--auth-toast-info-bg, #d1ecf1);
  border: 1px solid var(--auth-toast-info-border, #17a2b8);
}

#toast #icon-wrapper {
  display: none;
}

#toast #toast-message h4 {
  display: none;
}

#toast #toast-message p {
  margin: 0;
  font-size: 14px;
  color: var(--auth-toast-text, #333333);
}

#toast #toast-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.5;
}

#toast #toast-close:hover {
  opacity: 1;
}

#toast #toast-close::before {
  content: "x";
}

#toast #timer {
  display: none;
}

@keyframes open {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes close {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
