#toastRoot {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  width: min(380px, calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 32, 51, 0.18);
  border: 1px solid rgba(16, 32, 51, 0.14);
  overflow: hidden;
}

.toast--success .toast__inner {
  background: #ecfdf5;
}

.toast--error .toast__inner {
  background: #fef2f2;
}

.toast--info .toast__inner {
  background: #eff6ff;
}

.toast--warning .toast__inner {
  background: #fffbeb;
}

.toast--confirm .toast__inner {
  background: #f5f3ff;
}

.toast__body {
  padding: 14px 16px;
}

.toast__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.toast__message {
  font-size: 14px;
  line-height: 1.45;
  color: #374151;
}

.toast--success {
  border-left: 5px solid #16a34a;
}

.toast--error {
  border-left: 5px solid #dc2626;
}

.toast--info {
  border-left: 5px solid #2563eb;
}

.toast--warning {
  border-left: 5px solid #d97706;
}

.toast--confirm {
  border-left: 5px solid #7c3aed;
}

.toast__actions {
  display: flex;
  gap: 10px;
  padding: 0 16px 16px;
}

.toast__btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.toast__btn--primary {
  background: #111827;
  color: #fff;
}

.toast__btn--secondary {
  background: #f3f4f6;
  color: #111827;
}

.toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.toast__inner {
  position: relative;
}

@media (max-width: 640px) {
  .toast-stack {
    top: auto;
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}