.sticky-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: none; /* Hidden until an ad loads */
    justify-content: center;
    z-index: 9999;
    pointer-events: none;
}

.sticky-wrapper.show {
    display: flex;
}




.sticky-ad {
    position: relative;
    width: min(970px, 100%);
    min-width: 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,.2);
    transition: transform .3s ease;
    pointer-events: auto;
}

.sticky-ad.collapsed {
    transform: translateY(calc(100% - 2px));
}

.ad-content {
    width: 100%;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.toggle-btn {
    position: absolute;
    top: -32px;
    right: 20px;
    width: 40px;
    height: 32px;
    border: none;
    border-radius: 10px 10px 0 0;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 -2px 6px rgba(0,0,0,.2);
}

@media (max-width:600px) {
    .sticky-wrapper.show {
        display:none;
    }
}