/**
 * Enhanced Background Widget Styles
 */

.wml-enhanced-background {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #222;
}

.wml-eb-backdrop,
.wml-eb-visualization,
.wml-eb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wml-eb-backdrop {
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    /* JS will fade in */
}

.wml-eb-visualization {
    z-index: 2;
    pointer-events: none;
}

.wml-eb-overlay {
    z-index: 3;
    display: flex;
    flex-direction: column;
}

/* Ensure Bricks can add elements inside the overlay */
.wml-eb-overlay>.brxe-container,
.wml-eb-overlay>.brxe-block,
.wml-eb-overlay>.brxe-div {
    width: 100%;
}

/* Hide FoamTree attribution */
.wml-eb-visualization a,
.wml-eb-visualization a[href*="carrotsearch"],
.wml-enhanced-background .foamtree-attribution,
.wml-enhanced-background a[target="_blank"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}