#po_toast_stack {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--po-z-toast, 2147483647);
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    max-width: min(420px, calc(100vw - 32px));
    width: max-content;
    pointer-events: none;
}
.po-toast {
    pointer-events: auto;
    position: relative;
    z-index: var(--po-z-toast, 2147483647);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 16px 14px 16px 16px;
    width: min(420px, calc(100vw - 32px));
    min-width: 300px;
    border: 1px solid transparent;
    border-left-width: 8px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    color: var(--po-toast-text, var(--po-text-primary, #1f2937));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
    transform: translateX(calc(100% + 48px));
    transition:
        opacity 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.po-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.po-toast.is-leaving {
    opacity: 0;
    transform: translateX(calc(100% + 48px));
    transition:
        opacity 0.18s cubic-bezier(0.4, 0, 1, 1),
        transform 0.18s cubic-bezier(0.4, 0, 1, 1);
}
.po-toast.is-visible.is-bump {
    animation: po_toast_bump 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes po_toast_bump {
    0%, 100% {
        transform: translateX(0);
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    }
    45% {
        transform: translateX(-5px);
        box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    }
}
.po-toast--success {
    background: var(--po-toast-success-surface, #ecfdf5);
    border-left-color: var(--po-success, #10b981);
    border-color: rgba(16, 185, 129, 0.22);
}
.po-toast--error {
    background: var(--po-toast-error-surface, #fef2f2);
    border-left-color: var(--po-danger, #ef4444);
    border-color: rgba(239, 68, 68, 0.2);
}
.po-toast--warning {
    background: var(--po-toast-warning-surface, #fffbeb);
    border-left-color: var(--po-warning, #f59e0b);
    border-color: rgba(245, 158, 11, 0.24);
}
.po-toast--info {
    background: var(--po-toast-info-surface, #eff6ff);
    border-left-color: var(--po-info, #3b82f6);
    border-color: rgba(59, 130, 246, 0.2);
}
.po-toast__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    margin-top: 2px;
}
.po-toast--success .po-toast__icon { background: var(--po-success, #10b981); }
.po-toast--error .po-toast__icon { background: var(--po-danger, #ef4444); }
.po-toast--warning .po-toast__icon { background: var(--po-warning, #f59e0b); }
.po-toast--info .po-toast__icon { background: var(--po-info, #3b82f6); }
.po-toast__body {
    min-width: 0;
    padding-top: 1px;
}
.po-toast__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--po-toast-title, var(--po-text-primary, #111827));
}
.po-toast__message {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 400;
    color: var(--po-toast-message, var(--po-text-secondary, #4b5563));
    word-wrap: break-word;
}
.po-toast__action {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--po-border, #e5e7eb);
    border-radius: 6px;
    color: var(--po-text-primary, #1f2937);
    cursor: pointer;
    padding: 4px 10px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.3;
}
.po-toast__action:hover {
    background: rgba(255, 255, 255, 0.92);
}
.po-toast--with-action {
    grid-template-rows: auto auto;
}
.po-toast__close {
    background: none;
    border: none;
    color: var(--po-text-muted, #6b7280);
    cursor: pointer;
    padding: 0;
    font-size: 22px;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-top: -2px;
}
.po-toast__close:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--po-text-primary, #1f2937);
}
html.dark-side #po_toast_stack,
[data-theme="dark"] #po_toast_stack {
    --po-toast-success-surface: rgba(16, 185, 129, 0.14);
    --po-toast-error-surface: rgba(239, 68, 68, 0.14);
    --po-toast-warning-surface: rgba(245, 158, 11, 0.14);
    --po-toast-info-surface: rgba(59, 130, 246, 0.14);
    --po-toast-title: var(--po-text-primary, #f1f5f9);
    --po-toast-message: var(--po-text-secondary, #cbd5e1);
    --po-toast-text: var(--po-text-primary, #f1f5f9);
}
html.dark-side .po-toast,
[data-theme="dark"] .po-toast {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
@media (prefers-reduced-motion: reduce) {
    .po-toast {
        transition: none;
        transform: none;
        opacity: 1;
    }
    .po-toast.is-leaving {
        transition: none;
        opacity: 0;
    }
    .po-toast.is-visible.is-bump {
        animation: none;
    }
}
body.po-toast-ready .toast-container,
body.po-toast-ready .toast-top,
body.po-toast-ready .toast-bottom,
body.po-toast-ready div.toast.warning,
body.po-toast-ready div.toast.alert,
body.po-toast-ready div.toast.success,
body.po-toast-ready div.toast.info {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
@media (max-width: 480px) {
    #po_toast_stack {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-width: none;
        align-items: stretch;
    }
    .po-toast {
        width: 100%;
        min-width: 0;
    }
}
