.wp-block-surge-blocks-shimmer {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Default background if not set by user (allows overrides via block supports) */
.wp-block-surge-blocks-shimmer:not(.has-background) {
    background-color: #131313;
}

.surge-shimmer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: mask-position;
    transform: translateZ(0);
}

.surge-shimmer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}

/* Editor specific fixes */
.surge-shimmer-editor {
    position: relative;
    overflow: hidden;
    background-color: #131313; /* Fallback for editor */
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.surge-shimmer-editor .surge-shimmer-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.surge-shimmer-block-editor .surge-shimmer-content {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
}