.toast-root {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 220px;
  max-width: 320px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: #333;
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  line-height: 1.4;
  pointer-events: auto;
  animation: toast-slide-in 0.3s ease-out;
}

.toast__content {
  flex: 1;
  padding-right: 1.5rem;
}

.toast__close {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  background: transparent;
  border: none;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.toast--success {
  border-left: 4px solid #4caf50;
}
.toast--error {
  border-left: 4px solid #f44336;
}
.toast--warning {
  border-left: 4px solid #ff9800;
}
.toast--info {
  border-left: 4px solid #2196f3;
}

.toast--action {
  flex-direction: column;
}

.toast__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.toast__btn {
  padding: 0.3rem 0.6rem;
  font-size: 13px;
  border-radius: 4px;
  border: none;
  background: #e0e0e0;
  cursor: pointer;
}
.toast__btn:hover {
  background: #d5d5d5;
}
.toast__btn--primary {
  background: #0078d4;
  color: #fff;
}
.toast__btn--primary:hover {
  background: #006ac0;
}

@keyframes toast-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
