/* Working overlay used for heavier actions like photo uploads.
   It is intentionally hidden unless JavaScript adds .is-visible. */

.working-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(4px);
}

.working-overlay.is-visible {
    display: flex;
}

.working-box {
    width: min(520px, 92vw);
    padding: 32px;
    border-radius: 18px;
    background: #ffffff;
    color: #111827;
    text-align: center;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.working-box h2 {
    margin: 12px 0 6px;
    font-size: 24px;
}

.working-box p {
    margin: 0 0 18px;
    color: #4b5563;
}

.working-spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid #d1d5db;
    border-top-color: #111827;
    animation: listflowiq-spin 0.85s linear infinite;
}

.working-photo-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    overflow: hidden;
}

.working-photo-strip span {
    width: 34px;
    height: 42px;
    display: block;
    border-radius: 6px;
    background: #e5e7eb;
    animation: listflowiq-photo-bounce 1.1s ease-in-out infinite;
}

.working-photo-strip span:nth-child(2) {
    animation-delay: 0.12s;
}

.working-photo-strip span:nth-child(3) {
    animation-delay: 0.24s;
}

.working-photo-strip span:nth-child(4) {
    animation-delay: 0.36s;
}

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

@keyframes listflowiq-photo-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.65;
    }

    50% {
        transform: translateY(-8px);
        opacity: 1;
    }
}
