/* איפוס גלובלי לכל הסרגל למניעת התנגשויות מתבניות חיצוניות */
#acwp-wrapper, #acwp-wrapper *, #acwp-wrapper *:before, #acwp-wrapper *:after {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    border: none;
    text-align: right;
    line-height: normal;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
}

#acwp-wrapper { 
    position: fixed; 
    z-index: 999999; 
    font-family: system-ui, -apple-system, sans-serif !important; 
    direction: rtl; 
}

/* כפתור הציפה הראשי */
#acwp-toggle { 
    border-radius: 50% !important; 
    color: white !important; 
    cursor: pointer !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#acwp-toggle:hover {
    transform: scale(1.05) !important;
}

#acwp-toggle svg {
    fill: white !important;
    display: block !important;
    margin: auto !important;
}

/* חלונית התפריט */
#acwp-menu { 
    background: white !important; 
    border: 1px solid #ddd !important; 
    border-radius: 12px !important; 
    width: 260px !important; 
    margin-bottom: 10px !important; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important; 
    overflow: hidden !important; 
    display: none; /* נשלט ע"י JS */
}

/* כותרת התפריט */
.acwp-header { 
    background: #333 !important; 
    color: white !important; 
    padding: 12px !important; 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    font-weight: bold !important; 
    font-size: 16px !important;
}

#acwp-close { 
    background: none !important; 
    color: white !important; 
    cursor: pointer !important; 
    font-size: 24px !important; 
    line-height: 1 !important;
    padding: 0 5px !important;
}

/* כפתורי הפעולות בתוך התפריט */
.acwp-buttons { 
    padding: 10px !important; 
}

.acwp-buttons button, .acwp-st { 
    display: block !important; 
    width: 100% !important; 
    height: auto !important;
    min-height: 40px !important;
    max-height: none !important;
    padding: 12px !important; 
    margin: 6px 0 !important; 
    border: 1px solid #eee !important; 
    background: #f9f9f9 !important; 
    cursor: pointer !important; 
    color: #333 !important; 
    font-size: 14px !important; 
    border-radius: 6px !important; 
    transition: background 0.2s !important;
    font-weight: 500 !important;
}

.acwp-buttons button:hover { 
    background: #f0f0f0 !important; 
}

/* תיקון קריטי: מניעת הגדלת אמוג'י/תמונות/אייקונים בתוך הכפתורים */
#acwp-menu img.emoji, #acwp-menu svg {
    display: inline !important;
    width: 1.2em !important;
    height: 1.2em !important;
    max-width: 20px !important;
    max-height: 20px !important;
    margin: 0 0 0 8px !important;
    vertical-align: middle !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* כפתור איפוס בולט */
.acwp-reset { 
    background: #ffeeee !important; 
    border-color: #ffcccc !important; 
    color: #d32f2f !important; 
}

/* קרדיט בתחתית */
.acwp-footer-credit {
    margin-top: 10px !important;
    padding: 10px !important;
    border-top: 1px solid #eee !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #666 !important;
}

.acwp-link-credit {
    color: #0073aa !important;
    text-decoration: none !important;
    font-weight: bold !important;
}

/* לוגיקת נגישות על ה-Body */
body.acwp-ctr-active { background: #000 !important; color: #fff !important; }
body.acwp-ctr-active *:not(#acwp-wrapper *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
body.acwp-font-active *:not(#acwp-wrapper *) { font-family: Arial, sans-serif !important; }
body.acwp-lnk-active a:not(.acwp-link-credit) { text-decoration: underline !important; background: #ffff00 !important; color: #000 !important; }