/**
 * Bottom banner — fixed at the bottom center of the viewport.
 *
 * Desktop: 970x60 (centered horizontally, hidden below 1024px viewport so it
 *          never overlaps narrow content).
 * Mobile:  320x50 (centered, always shown).
 */

.hm-bottom-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    display: block;
    contain: layout style paint;
}

.hm-bottom-banner--mobile {
    width: 320px;
    height: 50px;
}

.hm-bottom-banner--desktop {
    width: 970px;
    height: 60px;
}

.hm-bottom-banner .aso-zone {
    display: block;
    width: 100%;
    height: 100%;
}

.hm-bottom-banner iframe,
.hm-bottom-banner img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

/* Safety guard: never show the 970px variant on a viewport that can't fit it. */
@media (max-width: 1023px) {
    .hm-bottom-banner--desktop {
        display: none;
    }
}

/**
 * Shared close button for all fixed banners (side + bottom).
 * Placed here because bottom-banner.css loads on every page, so desktop
 * (which also has side banners) gets these styles via this stylesheet too.
 */
.hm-banner-close {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    border-radius: 0 0 4px 0;
    line-height: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
.hm-banner-close:hover {
    background: #f5f5f5;
}
.hm-banner-close:focus-visible {
    outline: 2px solid #000;
    outline-offset: -2px;
}
.hm-banner-close svg {
    display: block;
    width: 12px;
    height: 12px;
    pointer-events: none;
}
