/**
 * Copyright © 2009-2026 Amasty. All Rights Reserved.
 * See LICENSE for license details.
 */

/* Cover media inside Page Builder Column — mirrors CSS background-size/position behavior */
.am-pb-col-bg-as-img {
    position: relative;
}

.am-pb-col-bg-as-img > .am-pb-col-bg-picture,
.am-pb-col-bg-as-img > img.am-pb-col-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
    z-index: 0;
    pointer-events: none;
    display: block;
}

.am-pb-col-bg-as-img > .am-pb-col-bg-picture > img.am-pb-col-bg-img {
    width: 100%;
    height: 100%;
    margin: 0;
    max-width: none;
    display: block;
}

/* Keep PB content above the cover image without stripping merchant CSS Classes */
.am-pb-col-bg-as-img > [data-content-type] {
    position: relative;
    z-index: 1;
}
