/**
 * Wehome Toast — components.md §4
 * Visual tokens only on .wh-toast. Float layout: .wh-toast-stack / .wh-toast--float
 * Supports .ok/.err/.warn (marketing) and .wh-toast--ok|err|warn|info
 */
.wh-toast {
  box-sizing: border-box;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--wh-bd, rgba(0, 0, 0, 0.06));
  border-radius: var(--wh-radius-md, 20px);
  background: var(--wh-card, #fff);
  color: var(--wh-tx, #191f28);
  box-shadow: var(--wh-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06));
  font-family: var(--wh-ff, Pretendard, -apple-system, sans-serif);
  font-size: var(--wh-text-sm, 0.875rem);
  font-weight: 550;
  line-height: var(--wh-lh-body, 1.47);
  letter-spacing: var(--wh-tracking-body, -0.02em);
}

.wh-toast.ok,
.wh-toast--ok,
.wh-toast--success {
  background: var(--wh-ok-bg, #ecfdf5);
  border-color: var(--wh-ok-bd, #a7f3d0);
  color: var(--wh-ok, #0f766e);
}

.wh-toast.err,
.wh-toast--err,
.wh-toast--error {
  background: var(--wh-err-bg, #fef2f2);
  border-color: var(--wh-err-bd, #fecaca);
  color: var(--wh-err-tx, #b91c1c);
}

.wh-toast.warn,
.wh-toast--warn,
.wh-toast--warning {
  background: var(--wh-warn-bg, #fffbeb);
  border-color: var(--wh-warn-bd, #fde68a);
  color: var(--wh-warn-tx, #92400e);
}

.wh-toast--info {
  background: var(--wh-info-bg, #f3eefa);
  border-color: var(--wh-info-bd, #d9ccf0);
  color: var(--wh-brand, #681dc7);
}

.wh-toast-stack {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--wh-z-toast, 11000);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}

.wh-toast-stack .wh-toast,
.wh-toast--float {
  pointer-events: auto;
}

.wh-toast--float {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: var(--wh-z-toast, 11000);
}

@media (prefers-reduced-motion: reduce) {
  .wh-toast {
    transition: none !important;
    animation: none !important;
  }
}

html.wh-reduce-motion .wh-toast {
  transition: none !important;
  animation: none !important;
}

/* Legacy account copy-toast — visual tokens from .wh-toast; position stays in account_common */
.copy-toast.wh-toast,
.wh-toast.copy-toast {
  /* inherit .wh-toast visual; account CSS may set position:fixed + left/top */
}
.copy-toast {
  box-sizing: border-box;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid var(--wh-ok-bd, #a7f3d0);
  border-radius: var(--wh-radius-md, 20px);
  background: var(--wh-ok-bg, #ecfdf5);
  color: var(--wh-ok, #0f766e);
  box-shadow: var(--wh-shadow-card, 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06));
  font-family: var(--wh-ff, Pretendard, -apple-system, sans-serif);
  font-size: var(--wh-text-sm, 0.875rem);
  font-weight: 550;
  line-height: var(--wh-lh-body, 1.47);
  z-index: var(--wh-z-toast, 11000);
}

