/* ################################################################################
   VIDEO LOADING INDICATOR - Diamond Details Optimization
   PURPOSE: Show loading state while 360° video loads in background
   ADDED: 2025-10-26
   ################################################################################ */

/* Ensure .imageWeb is positioned container for absolute positioning of loading indicator */
/* ULTRA-HIGH SPECIFICITY to override any conflicting rules */
body div#prodimages > div.imageWeb,
body center#prodimages > div.imageWeb,
#prodimages > .imageWeb,
div.imageWeb,
.imageWeb {
    position: relative !important;
}

.video-loading-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #30a8dc;
    border-radius: 50%;
    animation: diamondVideoSpin 1s linear infinite;
}

@keyframes diamondVideoSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.video-loading-text {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    font-family: 'Lato-Regular', Arial, sans-serif;
}

/* Mobile adjustments for loading indicator */
@media (max-width: 767px) {
    .video-loading-indicator {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
    }

    .video-loading-spinner {
        width: 16px;
        height: 16px;
    }

    .video-loading-text {
        font-size: 12px;
    }
}

/* ################################################################################
   DEPTH VIEW FIX - Hide main image when showing depth
   ADDED: 2025-10-27
   ################################################################################ */

/* When showing depth view, hide the main product image */
.jetzoomzet.depth-view #productmainimage {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure depth diagram is visible */
.jetzoomzet.depth-view #diamondImage {
    display: block !important;
    visibility: visible !important;
}