.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.875rem;
  font-family: var(--font);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: toastSlideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  pointer-events: auto;
  cursor: pointer;
  max-width: 380px;
  min-width: 280px;
}

.toast--success {
  background: var(--success);
}

.toast--error {
  background: var(--error);
}

.toast--warning {
  background: var(--warning);
}

.toast--info {
  background: var(--info);
}

.toast__message {
  flex: 1;
  line-height: 1.4;
}

.toast__close {
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.125rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.toast__close:hover {
  opacity: 1;
}

.toast--exit {
  animation: toastSlideOut 0.2s ease-in forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
