.bdw-lazy-overlay[hidden] {
    display: none !important;
}

body.bdw-lazy-loading-open {
    overflow: hidden;
}

.bdw-lazy-overlay {
    position: fixed;
    inset: 0;
    z-index: 32000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: rgba(15, 23, 42, 0.48);
}

.bdw-lazy-dialog {
    box-sizing: border-box;
    width: min(100%, 420px);
    min-height: 190px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.24);
}

.bdw-lazy-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
}

.bdw-lazy-status {
    min-height: 44px;
    margin: 14px 0 0;
    color: #475569;
    font-size: 0.88rem;
    line-height: 1.55;
}

.bdw-lazy-placeholder {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.bdw-lazy-placeholder span {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: #e8eef6;
}

.bdw-lazy-placeholder span:nth-child(2) {
    width: 76%;
}

.bdw-lazy-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.bdw-lazy-actions button {
    min-width: 72px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.bdw-lazy-actions .bdw-lazy-retry {
    border-color: #2563eb;
    background: #2563eb;
    color: #fff;
}

.bdw-lazy-actions button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .bdw-lazy-dialog {
        width: 100%;
        padding: 20px;
    }
}
