.bulk-create-preview-modal-open {
    overflow: hidden;
}

.bulk-create-preview-modal {
    position: fixed;
    z-index: 180;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(28, 24, 29, .48);
}

.bulk-create-preview-modal[hidden] {
    display: none;
}

.bulk-create-preview-modal-panel {
    display: grid;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 26px 70px rgba(24, 20, 26, .32);
}

.bulk-create-preview-modal-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 8px 12px 8px 18px;
    border-bottom: 1px solid #eee6ea;
}

.bulk-create-preview-modal-title {
    overflow: hidden;
    margin: 0;
    color: var(--bulk-create-ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bulk-create-preview-modal-close {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #5b535b;
    cursor: pointer;
    font-family: "Material Symbols Rounded";
    font-size: 25px;
    line-height: 1;
}

.bulk-create-preview-modal-close:hover,
.bulk-create-preview-modal-close:focus-visible {
    background: #fff3f7;
    color: var(--bulk-create-accent-dark);
    outline: 0;
}

.bulk-create-preview-modal-stage {
    display: grid;
    place-self: center;
    place-items: center;
    max-width: 100%;
    max-height: calc(100dvh - 132px);
    margin: 20px;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 10px;
    background: linear-gradient(180deg, #f7f9fb 0%, #eef3f7 100%);
}

.bulk-create-preview-modal-stage canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .bulk-create-preview-modal {
        padding: 12px;
    }

    .bulk-create-preview-modal-panel {
        width: min(100%, calc(100vw - 24px));
        max-height: calc(100dvh - 24px);
        border-radius: 12px;
    }

    .bulk-create-preview-modal-header {
        min-height: 54px;
        padding-left: 14px;
    }

    .bulk-create-preview-modal-title {
        font-size: 14px;
    }

    .bulk-create-preview-modal-stage {
        max-height: calc(100dvh - 118px);
        margin: 12px;
    }
}
