/* מכולה ראשית לבאנרים */
.tnufa-ad-container {
    z-index: 99999;
    display: none; 
    position: fixed;
}

.tnufa-ad-container a { display: block; line-height: 0; height: 100%; width: 100%; }
.tnufa-ad-container img { width: 100%; height: 100%; object-fit: cover; box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

/* עטיפה פנימית לסליידר */
.tnufa-ad-inner {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    overflow: hidden; /* מסתיר שקפים שמחליקים החוצה */
}

/* הגדרות לשקפים (Slides) */
.tnufa-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

.tnufa-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

/* אנימציות סליידר */
.tnufa-transition-slide-right .tnufa-slide { transform: translateX(100%); }
.tnufa-transition-slide-right .tnufa-slide.active { transform: translateX(0); }
.tnufa-transition-slide-right .tnufa-slide.exit { transform: translateX(-100%); }

.tnufa-transition-slide-left .tnufa-slide { transform: translateX(-100%); }
.tnufa-transition-slide-left .tnufa-slide.active { transform: translateX(0); }
.tnufa-transition-slide-left .tnufa-slide.exit { transform: translateX(100%); }

/* כפתור סגירה כללי - ריבוע בצד שמאל פנימי */
.tnufa-ad-close {
    position: absolute;
    top: 5px; left: 5px; right: auto;
    background: #fff; color: #000;
    width: 24px; height: 24px;
    border-radius: 2px;
    text-align: center; line-height: 22px;
    font-family: Arial, sans-serif; font-size: 15px; font-weight: bold;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    border: 1px solid #000;
    z-index: 100;
}

/* מיקומים - עליונים ותחתונים */
.loc-desktop_top, .loc-mobile_top {
    position: relative !important;
    top: auto; left: auto; width: 100%; text-align: center; background: #f7f7f7; margin: 0 auto;
}
.loc-desktop_top .tnufa-ad-inner { max-width: 1140px; width: 100%; }

.loc-desktop_bottom { bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; text-align: center; }
.loc-desktop_bottom .tnufa-ad-inner { max-width: 1140px; width: 100%; }
.loc-mobile_bottom { bottom: 0; left: 0; width: 100%; }

/* מיקומים - צד ימין ושמאל */
.loc-desktop_right { top: 50%; right: 10px; transform: translateY(-50%); width: 160px; }
.loc-desktop_left { top: 50%; left: 10px; transform: translateY(-50%); width: 160px; }

/* ---------------------------------
   אוזן קופצת (נייח ומובייל) 
----------------------------------- */
.loc-mobile_ear, .loc-desktop_ear {
    bottom: 28%; /* הועלה למעלה */
    right: 0;
    width: 145px; /* הוגדל ב-20% */
    height: 145px;
    transition: all 0.3s ease;
    cursor: pointer;
    /* צל חיצוני חזק שנותן תחושה מרחפת */
    filter: drop-shadow(-4px 4px 10px rgba(0,0,0,0.4)); 
}

.loc-mobile_ear .tnufa-ad-inner, .loc-desktop_ear .tnufa-ad-inner { 
    width: 100%; 
    height: 100%; 
    border-radius: 75px 0 0 75px; 
    overflow: hidden; 
    transition: all 0.3s ease;
}

.loc-mobile_ear.ad-expanded, .loc-desktop_ear.ad-expanded { 
    width: 300px; 
    height: 250px; 
}

.loc-mobile_ear.ad-expanded .tnufa-ad-inner, .loc-desktop_ear.ad-expanded .tnufa-ad-inner {
    border-radius: 5px 0 0 5px;
}

/* כפתור סגירה במצב אוזן סגורה - מעל האוזן מימין החוצה מהתמונה */
.loc-mobile_ear .tnufa-ad-close, .loc-desktop_ear .tnufa-ad-close { 
    display: block; 
    top: -30px; 
    right: 5px; 
    left: auto; 
}

/* כפתור סגירה כשהאוזן פתוחה - חוזר פנימה שמאלה למעלה כמו כולם */
.loc-mobile_ear.ad-expanded .tnufa-ad-close, .loc-desktop_ear.ad-expanded .tnufa-ad-close { 
    top: 5px; 
    left: 5px; 
    right: auto; 
}


/* אפקט פרימיום (Shine) */
.tnufa-premium-effect .tnufa-ad-inner::after {
    content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    animation: tnufaShineEffect 5s infinite;
    z-index: 50; pointer-events: none;
}
@keyframes tnufaShineEffect { 0% { left: -100%; } 20% { left: 150%; } 100% { left: 150%; } }