/**
 * Elementor Spline Animation - Frontend Widget Styles
 *
 * @version 1.0.0
 *
 * 1. Sticky Positioning
 * 2. Wrappers & Mount Points
 * 3. Canvas & Scene
 * 4. Editor & Fallback Views
 * 5. Scroll Indicator (Editor Only)
 */


/* 1. Sticky Positioning
-------------------------------------------------- */
.elementor-widget-spline-animation.spline-sticky-top,
.elementor-widget-spline-animation.spline-sticky-bottom {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    /* z-index and top/bottom offsets are applied via Elementor controls */
}

/* 2. Wrappers & Mount Points
-------------------------------------------------- */
.spline-react-mount-point-wrapper {
    position: relative; 
    line-height: 0; 
}

.spline-react-mount-point {
    width: 100%;
    height: 100%;
}

/* 3. Canvas & Scene
-------------------------------------------------- */
.spline-viewer-wrapper {
    width: 100%;
    height: 100%;
    min-height: 400px;
    position: relative;
    border-radius: inherit;
}

.spline-viewer-wrapper > div > canvas {
    display: block; 
    width: 100% !important; 
    height: 100% !important; 
    border-radius: inherit; 
}

/* 4. Editor & Fallback Views
-------------------------------------------------- */
.elementor-widget-empty-view {
    padding: 20px;
    text-align: center;
    border: 2px dashed #d3d3d3;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.elementor-widget-empty-view h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
    color: #555;
}

.elementor-widget-empty-view p {
    margin-bottom: 0;
    font-size: 14px;
    color: #777;
}

/* 5. Scroll Indicator (Editor Only)
-------------------------------------------------- */
.scroll-progress-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: #6a0002;
    color: #ff7a00;
    padding: 10px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-family: monospace;
    z-index: 100;
    pointer-events: none; /* Make it non-interactive */
}