/* 全局提示（toast）：右下角固定，对齐旧版 FOSSBilling 的 Bootstrap Toast；颜色全部取自 tokens.css。 */
.toast-container {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  max-width: 100%;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  width: 350px;
  max-width: 100%;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-menu);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.15s linear, transform 0.15s ease-out;
}
.toast.is-shown { opacity: 1; transform: none; }
.toast-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.toast-dot {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--surface);
  background: var(--info);
}
.toast-success .toast-dot { background: var(--success); }
.toast-error .toast-dot { background: var(--danger); }
.toast-warning .toast-dot { background: var(--warning); }
.toast-info .toast-dot { background: var(--info); }
.toast-title { flex: 1; font-weight: 600; }
.toast-close {
  flex: none;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.toast-close:hover { color: var(--text); background: var(--surface-2); }
.toast-close:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.toast-body { padding: 12px; word-break: break-word; }

/* 无 JS 兜底：<noscript> 里的普通提示条，同样固定在右下角 */
.toast-noscript {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 1070;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 382px;
  max-width: 100%;
  padding: 16px;
}

@media (max-width: 480px) {
  .toast-container { padding: 12px; }
  .toast { width: 100%; }
}
