#sticky-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1000;
    text-align: center;
    padding: 15px;
    animation: slideIn 0.5s ease-out;
    transition: transform 0.3s ease-out;
}

#sticky-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#sticky-banner.closed {
    transform: translateX(-100%);
}

.closedbtn {
    /* تغییرات اعمال شده برای کوچک‌تر شدن آیکون */
    position: absolute;
    top: 5px;
    right: -5px;
    font-size: 20px; 
    background-color: #e41f27;
    color: rgb(245,245,245);
    padding: 6px; 
    cursor: pointer;
    border-radius: 8px; 
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px; 
    height: 25px; 
    line-height: 1;
}

@media (max-width: 1200px) {
    #sticky-banner {
        width: 280px;
        bottom: 15px;
        left: 15px;
        padding: 12px;
    }
}

@media (max-width: 992px) {
    #sticky-banner {
        width: 240px;
        bottom: 10px;
        left: 10px;
        padding: 10px;
    }

    .closedbtn {
        top: 0px; 
        right: -10px;
    }
}

@media (max-width: 768px) {
    #sticky-banner {
        width: 200px;
        bottom: 30px;
        left: 10px;
        padding: 8px;
    }

    .closedbtn {
        top: 0px;
        right: -15px;
        font-size: 18px;
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    #sticky-banner {
        width: 220px;
        bottom: 40px;
        left: 5px;
        padding: 5px;
    }

    .closedbtn {
        font-size: 24px;
        top: 0px;
        right: -20px;
        width: 30px;
        height: 30px;
        padding: 4px;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}