/* Fixed 900 x 80px bottom ad with slide-down/up controls. */


#bottomAdBand {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1035;
    width: 900px;
    max-width: calc(100% - 24px);
    margin: 0 auto;
    padding: 0;
    transform: translateY(0);
    transition: transform 350ms ease-in-out;
    pointer-events: none;
}

#bottomAdBand.is-collapsed {
    /* Move the artwork below the viewport; controls stay accessible above it. */
    transform: translateY(100%);
}

#bottomAdBand [hidden] {
    display: none !important;
}

#bottomAdBand .bottom-ad-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 900 / 80;
    background: #fff;
    box-shadow: 0 0 0 1px #ddd, 0 -3px 18px rgb(0 0 0 / 15%);
    pointer-events: auto;
}

#bottomAdBand .bottom-ad-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#bottomAdBand .bottom-ad-controls {
    position: absolute;
    bottom: 100%;
    right: 0;
    display: flex;
    align-items: flex-end;
    pointer-events: auto;
}

#bottomAdBand .bottom-ad-hide,
#bottomAdBand .bottom-ad-show {
    display: block;
    margin: 0;
    border: 1px solid #641d35;
    border-radius: 4px 4px 0 0;
    padding: 4px 12px;
    min-height: 30px;
    background: #641d35;
    color: #fff;
    font: 13px/1.4 Arial, sans-serif;
    cursor: pointer;
}

#bottomAdBand button:hover {
    background: #451324;
}

#bottomAdBand button:focus-visible {
    outline: 3px solid #ffbd32;
    outline-offset: -3px;
}

#bottomAdBand.is-collapsed .bottom-ad-slot {
    pointer-events: none;
}

@media (max-width: 575px) {

    #bottomAdBand .bottom-ad-hide,
    #bottomAdBand .bottom-ad-show {
        min-height: 36px;
        padding: 8px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #bottomAdBand {
        transition: none;
    }
}
