/* 3D features on ProductView: "View 3D" / "3ds Max model" actions below the gallery, the model-viewer dialog
   and the CAPTCHA-protected download dialog. The dialog shell itself is styled in product-view.css. */
.product-view .product-view-model-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.product-model-stage {
    position: relative;
    overflow: hidden;
    height: 55vh;
    min-height: 250px;
    background: #1c1c1e;
}

/* Floor grid drawn on a canvas from the model-viewer camera, so it stays on the floor under the model. */
.product-model-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.product-view-dialog model-viewer {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    --poster-color: transparent;
    background: transparent;
}

.product-view-dialog progress {
    width: 100%;
    accent-color: var(--button-color);
}

.product-view-dialog .product-view-error {
    margin: 12px 0;
    padding: 12px;
    background: #fff0f0;
    color: #a32020;
}

.product-view-dialog .product-view-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.product-view-dialog button:disabled {
    cursor: wait;
    opacity: 0.55;
}

#product-download-dialog {
    width: 480px;
}
