/* Chris Woo3D Viewer Styles */

.cww3d-container {
    width: 100%;
    height: 420px;
    position: relative;
    background: #f5f5f5;
    border-radius: 6px;
    overflow: hidden;
}

/* Canvas inside viewer */
.cww3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Loading overlay */
.cww3d-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    z-index: 10;
}

/* Spinner animation */
.cww3d-spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #ddd;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: cww3d-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes cww3d-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Viewer controls hint */
.cww3d-controls-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    pointer-events: none;
}

/* Elementor compatibility */
.elementor-widget-container .cww3d-container {
    height: 450px;
}

/* WooCommerce product page spacing */
.single-product .cww3d-container {
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {

    .cww3d-container {
        height: 320px;
    }

    .elementor-widget-container .cww3d-container {
        height: 350px;
    }

}