/* =============================================================================
   v3.1.0 — Image Ready Check overlay
   ============================================================================= */

.lsqz-ready-check-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 20px;
}

.lsqz-ready-check-card {
    background: #fff;
    border-radius: 18px;
    padding: 32px 28px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    text-align: center;
    animation: lsqz-rck-fadein 0.3s ease;
}

@keyframes lsqz-rck-fadein {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.lsqz-ready-check-image-wrap {
    position: relative;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

/* Spinner */
.lsqz-ready-check-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: lsqz-rck-spin 0.8s linear infinite;
}

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

.lsqz-ready-check-status {
    font-size: 15px;
    color: #475569;
    margin-bottom: 22px;
    min-height: 22px;
    font-weight: 500;
}

.lsqz-ready-check-status.is-ready {
    color: #16a34a;
}

.lsqz-ready-check-status.is-error {
    color: #dc2626;
}

.lsqz-ready-check-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.lsqz-ready-check-start-btn {
    background: #4f46e5;
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 32px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, opacity 0.2s;
}

.lsqz-ready-check-start-btn:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
}

.lsqz-ready-check-start-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.lsqz-ready-check-start-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.lsqz-ready-check-skip-btn {
    background: transparent;
    color: #64748b;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.lsqz-ready-check-skip-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Fade-out transition */
.lsqz-ready-check-overlay.is-hiding {
    animation: lsqz-rck-fadeout 0.3s ease forwards;
}

@keyframes lsqz-rck-fadeout {
    to { opacity: 0; pointer-events: none; }
}

/* Mobile */
@media (max-width: 480px) {
    .lsqz-ready-check-card {
        padding: 24px 16px;
        border-radius: 14px;
    }
    .lsqz-ready-check-start-btn {
        width: 100%;
        padding: 14px 20px;
    }
    .lsqz-ready-check-skip-btn {
        width: 100%;
    }
}
