/* AdSense units */

.ad-unit {
    margin: 2rem auto;
    max-width: 1200px;
    padding: 0 1rem;
    text-align: center;
}

/* Hide the unit (and the product-page wrapper) until AdSense reports a fill.
   Unfilled slots and slots that never initialise leave no label or empty box. */
.ad-unit:not(:has(ins.adsbygoogle[data-ad-status="filled"])),
.product-offers--ads:not(:has(ins.adsbygoogle[data-ad-status="filled"])) {
    display: none;
}

.ad-unit[hidden],
.product-offers--ads[hidden] {
    display: none !important;
}

.ad-unit .adsbygoogle {
    display: block;
    min-height: 90px;
    background: #ffffff;
}

/* Multiplex units need room for their grid of cards */
.ad-unit--content_bottom .adsbygoogle,
.ad-unit--product_offers .adsbygoogle {
    min-height: 280px;
}

/* Product page unit sits inside a section that already provides spacing */
.product-offers--ads .ad-unit {
    margin: 0;
    padding: 0;
    max-width: none;
}

@media (max-width: 767px) {
    .ad-unit {
        margin: 1.5rem auto;
    }

    .ad-unit .adsbygoogle {
        min-height: 100px;
    }
}
