.wprs-wrapper.wprs-fullscreen {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
}

.wprs-canvas-area {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    top: -6%;
}

.wprs-canvas-area::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 15; 
    pointer-events: none;
    background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}

.wprs-visualizer {
    width: 100%;
    height: 100%;
}

.wprs-layer {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.wprs-svg-interactive {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10;
    opacity: 0.95;
}

.wprs-zone-poly {
    fill: transparent;
    stroke: rgba(255,255,255,0.2); stroke-width: 1px; 
    cursor: pointer; 
    transition: all 0.2s;
}

.wprs-sidebar {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 340px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 5px 0 30px rgba(0,0,0,0.2);
    z-index: 100; 
    padding: 25px;
    display: flex; flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(0);
}
.wprs-sidebar.closed { transform: translateX(-100%); }


.wprs-sidebar-header h3 { margin: 0 0 8px 0; font-size: 20px; color: #222; font-weight: 700; }
.wprs-sidebar-header p { margin: 0 0 25px 0; font-size: 14px; color: #666; line-height: 1.4; }


.wprs-control-group { margin-bottom: 20px; }
.wprs-control-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: #444; text-transform: uppercase; letter-spacing: 0.5px; }

.wprs-select {
    width: 100%; height: 45px; border: 1px solid #ddd; border-radius: 8px; padding: 0 12px;
    font-size: 14px; outline: none; background: #fff; transition: border 0.2s;
}
.wprs-select:focus { border-color: #2271b1; box-shadow: 0 0 0 2px rgba(34,113,177,0.1); }

#wprs-tile-zoom { width: 100%; cursor: pointer; accent-color: #2271b1; height: 6px; background: #ddd; border-radius: 3px; }


.wprs-tile-grid {
    flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 2px;
    align-content: start; margin-bottom: 15px;
}
.wprs-tile-item {
    border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); background: #fff; aspect-ratio: 1; transition: all 0.2s;
}
.wprs-tile-item:hover { border-color: #2271b1; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.wprs-tile-item img { width: 100%; height: 100%; object-fit: cover; }


.wprs-tools { display: flex; gap: 12px; margin-top: auto; }
.wprs-tools .button { 
    flex: 1; padding: 14px; border: none; border-radius: 8px; cursor: pointer; 
    font-weight: 600; font-size: 14px; letter-spacing: 0.3px;
}
#wprs-btn-reset { background: #f1f3f5; color: #333; }
#wprs-btn-save { background: #2271b1; color: #fff; box-shadow: 0 4px 12px rgba(34,113,177,0.3); }


.wprs-close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #aaa; transition: color 0.2s; }
.wprs-close-btn:hover { color: #333; }

.wprs-toggle-btn {
    position: absolute; top: 25px; left: 25px; z-index: 50;
    background: #fff; border: none; padding: 12px 24px; border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2); cursor: pointer; font-weight: 600; color: #333;
    display: flex; align-items: center; gap: 10px; transition: transform 0.2s;
}
.wprs-toggle-btn:hover { transform: scale(1.05); }

@keyframes marching-ants {
    to {
        stroke-dashoffset: -20; 
    }
}
.wprs-zone-poly { fill: transparent; stroke: rgba(255,255,255,0.2); stroke-width: 1px; cursor: pointer; transition: all 0.2s; }
.wprs-zone-poly:hover { stroke: #fff; stroke-width: 1.5px; fill: rgba(255,255,255,0.05); }
.wprs-zone-poly.active { 
    stroke: #2271b1; 
    stroke-width: 3px; 
    stroke-dasharray: 10 5;
    fill: rgba(33, 150, 243, 0.2); 
    animation: marching-ants 1s linear infinite; 
}


#wprs-saving-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font-weight: 500; }
.wprs-spinner { width: 40px; height: 40px; border: 3px solid rgba(255,255,255,0.3); border-top: 3px solid #fff; border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 15px; }
@keyframes spin { to { transform: rotate(360deg); } }


@media (max-width: 768px) {
	.wprs-canvas-area {top: 0 !important;}
    .wprs-sidebar { width: 85%; max-width: 320px; display: block !important;
        height: 50vh;
        top: auto !important;
		bottom:85px !important;
        overflow-y: scroll;}
	.wprs-toggle-btn {top: 30% !important;}
	.wprs-tile-grid {flex: none !important;}
	.wprs-wrapper.wprs-fullscreen {z-index: 999991; }
	.elementor-element.elementor-element-274a14d.elementor-position-left.elementor-fixed.elementor-mobile-position-left.elementor-view-default.elementor-widget.elementor-widget-icon-box {
    z-index: 999999;}
}

.wprs-mobile-zoom-btn {
    display: none;
}

@media (max-width: 768px) {
    .wprs-mobile-zoom-btn {
        display: flex; align-items: center; justify-content: center;
        position: fixed;
        bottom: 150px; right: 20px; z-index: 9999;
        width: 50px; height: 50px; border-radius: 50%;
        background: #fff; border: 2px solid #2271b1; color: #2271b1;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3); font-size: 24px;
        cursor: pointer; transition: all 0.2s;
    }
    .wprs-mobile-zoom-btn:active { transform: scale(0.9); }
    .wprs-mobile-zoom-btn.active { background: #2271b1; color: #fff; border-color: #fff; }

    .wprs-wrapper.wprs-mode-zoomed .wprs-sidebar,
    .wprs-wrapper.wprs-mode-zoomed .wprs-toggle-btn {
        display: none !important;
    }

    .wprs-wrapper.wprs-mode-zoomed .wprs-canvas-area {
        position: absolute; top: 0; left: 0; right: 0; bottom: 0;
        background: #1a1a1a;
        display: block; 
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        z-index: 50;
        padding: 0; margin: 0; 
		touch-action: pan-x pan-y;
    }
    
    .wprs-wrapper.wprs-mode-zoomed .wprs-canvas-area::after {
        display: none;
    }

    .wprs-wrapper.wprs-mode-zoomed .wprs-visualizer {
        width: 300%; 
        height: auto; 
        position: relative;
        transform: none !important;
        left: 0; top: 0; margin: 0;
    }

    .wprs-wrapper.wprs-mode-zoomed .wprs-visualizer img.wprs-layer {
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain;
        position: relative !important; 
        z-index: 1;
        display: block;
    }

    .wprs-wrapper.wprs-mode-zoomed .wprs-visualizer > img.wprs-layer:not(:first-child),
    .wprs-wrapper.wprs-mode-zoomed .wprs-3d-container,
    .wprs-wrapper.wprs-mode-zoomed .wprs-svg-interactive {
        position: absolute !important;
        top: 0 !important; left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 10;
    }
    
    .wprs-wrapper.wprs-mode-zoomed .wprs-visualizer > img.wprs-layer:not(:first-child) {
        z-index: 20;
        pointer-events: none;
    }
}

body.wprs-lock-browser {
    overflow: hidden !important; 
    overscroll-behavior: none !important; 
    touch-action: none;
}

.wprs-wrapper.wprs-mode-zoomed .wprs-canvas-area {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: #1a1a1a;
    display: block; 
    z-index: 50;
    padding: 0; margin: 0;
    overflow: auto !important; 
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain; 
    touch-action: pan-x pan-y; 
}