/* CSS */
.side-banners {
    position: fixed;
    top: 70px;
    width: 100%;
    pointer-events: none; /* يجعل الإعلان لا يمنع التفاعل مع المحتوى */
}

.banner-left, .banner-right {
    position: fixed;
    top: 70px; /* نفس القيمة أعلاه */
    width: 160px; /* حجم الإعلان */
    pointer-events: auto;
    background: transparent;
}

.banner-left {
    left: 0;
}

.banner-right {
    right: 0;
}

/* زر الإغلاق */
.closeButton {
    color: #ffffff;
    font-size: 12px;
    padding: 2px;
    border: none;
    cursor: pointer;
    right: 0;
    top: 0;
    position: absolute;
    background-color: #ffffffa3;
    display: none; /* سيظهر بعد 6 ثوانٍ */
}
.closeButton::before {
    content: '❌'; 
    color: #fff; 
    font-size: 12px;
    line-height: 20px; /* لتوسيط الرمز عمودياً */
    text-align: center;
}

/* إخفاء على الشاشات الصغيرة */
@media (max-width: 991px) {
    .banner-left, .banner-right {
        display: none;
    }
}


/*  Banner 250x300  */
#banner-box-250300{
    position: fixed;
    bottom: 15px;
    left: 0;
    z-index: 9999;

    background: linear-gradient(99deg, #ffffff00, #f4f6f875);
    border-radius: 5px;
    padding: 6px;

    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
    display: none;
}

/* عند الظهور */
#banner-box-250300.show{
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* زر الإغلاق */
.banner-close{
    position: absolute;
    top: -12px;
    right: -12px;
    background: #111;
    color: #fff;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
}

/* 📱 الهاتف */
@media (max-width: 768px){
    #banner-box-250300{
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%) translateY(30px);
        box-shadow: 0 8px 20px rgba(0,0,0,.18);
    }

    #banner-box-250300.show{
        transform: translateX(-50%) translateY(0);
    }
}

/* 🖥️ الكمبيوتر */
@media (min-width: 769px){
    #banner-box-250300{
        box-shadow: 0 15px 35px rgba(0,0,0,.28);
    }
}
/*  Banner 250x300  */