/* Pretpot Hover Mask Reveal Background */
.pretpot-pro-hover-mask-reveal-active {
    position: relative !important;
    overflow: hidden !important;
}

.pretpot-hmr-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.pretpot-hmr-bottom,
.pretpot-hmr-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
}

.pretpot-hmr-bottom-color,
.pretpot-hmr-top-color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Explicit stacking for color layers */
.pretpot-hmr-bottom-color {
    z-index: 1;
}
.pretpot-hmr-top-color {
    z-index: 2;
}
.pretpot-hmr-top {
    z-index: 2;
}
.pretpot-hmr-bottom {
    z-index: 1;
}

.pretpot-hmr-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.pretpot-hmr-cursor.active {
    opacity: 1;
}

/* Ensure content stays above the mask effect */
.pretpot-pro-hover-mask-reveal-active > .elementor-container,
.pretpot-pro-hover-mask-reveal-active > .elementor-column-wrap,
.pretpot-pro-hover-mask-reveal-active > .e-con-inner {
    position: relative;
    z-index: 3;
}

/* Auto preview animation overlay */
.pretpot-hmr-previewing .pretpot-hmr-cursor {
    opacity: 0 !important;
}