#popup-container {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    /*display: flex;*/
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: #1e1e1eee;
    color: white;
    display: none;
    padding: 1rem 0 0;
}


#popup-content {
    overflow: scroll;
    padding: 0 1rem;
    max-width: 52rem;
    text-align: left;
}

#popup-content p {
    font-size: 0.8rem;
    padding: 0 0.5rem;
}

.hold-notify {
    color: red;
    font-weight: bold;
    animation: errorShake 1s linear 1;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-4px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(4px);
    }
}

@keyframes wo-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

#waiting-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: #111827AA;
    z-index: 9999;
}

#waiting-overlay .wo-card {
    min-width: 220px;
    max-width: 90vw;
    padding: 20px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px #0004;
    display: flex;
    gap: 14px;
    align-items: center;
}

#waiting-overlay .wo-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, .12);
    border-top-color: rgba(59, 130, 246, 1);
    animation: wo-spin 1.0s linear infinite;
    flex-shrink: 0;
}

#waiting-overlay .wo-text {
    font: 500 14px/1.3 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji";
    color: #111827;
    animation: blink 1.5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #waiting-overlay .wo-spinner {
        animation: none;
        border-top-color: #3b82f6;
    }
}

body:has(#waiting-overlay[aria-live]) {
    overflow: hidden;
}
