.hf-production-line-preview {
    position: absolute;
    inset: 0;
    visibility: hidden;
    pointer-events: none;
}

.hf-production-line-preview > :is(svg, canvas) {
    position: absolute;
    inset: 0;
    display: block;
    width: min(100%, 121.95cqh);
    height: min(100%, 82cqw);
    margin: auto;
}

.hf-production-line-preview > :is(canvas, .hf-production-line-capping-head) {
    visibility: hidden;
}

.hf-production-line-capping-head .hf-cap-jaw {
    transform: translateX(calc(var(--hf-line-cap-jaw-offset, 6px) * var(--side)));
}

.hf-production-line-photo.is-previewing .hf-production-line-preview {
    visibility: visible;
}

@media (prefers-reduced-motion: no-preference) {
    .hf-production-line-photo.is-previewing .hf-production-line-preview.has-motion > :is(canvas, .hf-production-line-capping-head),
    .hf-production-line-photo.is-previewing .hf-production-line-preview.is-static > .hf-production-line-result {
        visibility: visible;
    }

    .hf-production-line-preview > svg {
        visibility: hidden;
    }
}
