/* WinWin unified toast (Jul 2026) — injected globally from config.php (WW_TOAST_INJECT). */
#ww-toast-stack {
    position: fixed;
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000002; /* per z-index policy: toast above everything */
    pointer-events: none;
    width: max-content;
    max-width: min(92vw, 420px);
}

.ww-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-inline-start: 3px solid #4F46E5;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(17, 24, 39, 0.14);
    padding: 11px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    max-width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    text-align: start;
}

.ww-toast--in { opacity: 1; transform: translateY(0); }
.ww-toast--out { opacity: 0; transform: translateY(6px); }

.ww-toast--error { border-inline-start-color: #DC2626; }
.ww-toast--info { border-inline-start-color: #6B7280; }

.ww-toast__icon {
    flex: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #4F46E5;
    margin-top: 1px;
}
.ww-toast__icon svg { width: 11px; height: 11px; }
.ww-toast--error .ww-toast__icon { background: #DC2626; }
.ww-toast--info .ww-toast__icon { background: #6B7280; }

.ww-toast__text { word-break: break-word; }
