svg {
    pointer-events: none;
}


.sticky-ad {
    position: fixed;
    width: 100%;
    left: 0;
    background-color: #f6f6f6;
    color: #fff;
    text-align: center;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
}

    .sticky-ad.top {
        top: 0;
        border-bottom: 1px solid #dcdcdc;
    }

        .sticky-ad.top button {
            position: absolute;
            bottom: -30px;
            left: 15px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            border-bottom: 1px solid #dcdcdc;
            border-right: 1px solid #dcdcdc;
            border-left: 1px solid #dcdcdc;
            box-shadow: 0px 5px 3px rgba(0,0,0,0.1);
        }


    .sticky-ad.bottom {
        bottom: 0;
        border-top: 1px solid #dcdcdc;
    }

        .sticky-ad.bottom button {
            position: absolute;
            top: -30px;
            left: 15px;
            z-index: 33;
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
            border-top: 1px solid #dcdcdc;
            border-right: 1px solid #dcdcdc;
            border-left: 1px solid #dcdcdc;
            box-shadow: 0px -5px 3px rgba(0,0,0,0.1);
        }

.ad-content {
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.collapse-ad {
    margin-left: 20px;
    padding: 5px 10px;
    background-color: #f6f6f6;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.collapsed-top .ad-content p,
.collapsed-bottom .ad-content p {
    display: none;
}



.collapsed-top button svg {
    transform: rotate(180deg);
}

.collapsed-bottom button svg {
    transform: rotate(-180deg);
}


.collapsed-top {
    transform: translateY(-100%);
}

.collapsed-bottom {
    transform: translateY(100%);
}
