/* עיצוב כללי של הסרגל - המיקום נשלט ע"י ה-PHP */
#acwp-wrapper { 
    position: fixed; 
    z-index: 999999; 
    font-family: sans-serif; 
    direction: rtl; 
}

/* כפתור הציפה הראשי */
#acwp-toggle { 
    border-radius: 50% !important; 
    border: none !important; 
    color: white !important; 
    cursor: pointer !important; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

#acwp-toggle:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.4) !important;
    transform: scale(1.05);
}

/* עיצוב ה-SVG למניעת ריבועים כחולים */
#acwp-toggle svg {
    fill: white !important;
    display: block !important;
    transition: transform 0.2s ease;
}

/* קיבוע גודל הטקסט בתפריט ומניעת השפעת גופני האתר */
#acwp-wrapper #acwp-menu, 
#acwp-wrapper #acwp-menu * { 
    font-size: 14px !important; 
    line-height: normal !important; 
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* חלונית התפריט */
#acwp-menu { 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 12px; 
    width: 260px; 
    margin-bottom: 10px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
    overflow: hidden; 
}

/* כותרת התפריט */
.acwp-header { 
    background: #333; 
    color: white; 
    padding: 12px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold; 
}

#acwp-close { 
    background: none; 
    border: none; 
    color: white; 
    cursor: pointer; 
    font-size: 20px; 
    padding: 5px !important; 
    line-height: 1 !important;
}

/* כפתורי הפעולות */
.acwp-buttons { padding: 10px; }

.acwp-buttons button, .acwp-st { 
    display: block; 
    width: 100%; 
    padding: 10px; 
    margin: 5px 0; 
    border: 1px solid #eee; 
    background: #fdfdfd; 
    cursor: pointer; 
    text-align: right; 
    text-decoration: none; 
    color: #333 !important; 
    font-size: 14px !important; 
    border-radius: 4px; 
    transition: background 0.2s;
}

.acwp-buttons button:hover { background: #f0f0f0; }

/* כפתור איפוס */
.acwp-reset { 
    background: #ffeeee !important; 
    border-color: #ffcccc !important; 
    font-weight: bold; 
    color: #d32f2f !important; 
    margin-top: 10px !important;
}

/* קרדיט בתחתית */
.acwp-footer-credit {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 12px !important;
    color: #666 !important;
}

.acwp-link-credit {
    color: #0073aa !important;
    text-decoration: none !important;
    font-weight: bold !important;
    display: inline !important;
}

.acwp-link-credit:hover {
    text-decoration: underline !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-kb-active *:focus { outline: 4px solid #ffeb3b !important; outline-offset: 2px; }
body.acwp-ani-active * { animation: none !important; transition: none !important; }
body.acwp-font-active *:not(#acwp-wrapper *) { font-family: Arial, Helvetica, sans-serif !important; }
body.acwp-ttl-active h1, body.acwp-ttl-active h2, body.acwp-ttl-active h3 { outline: 2px dashed #0073aa !important; background: rgba(0,115,170,0.1) !important; }

/* סימון קישורים */
body.acwp-lnk-active a:not(.acwp-st):not(.acwp-link-credit) { 
    text-decoration: underline !important; 
    font-weight: bold !important; 
    color: #0000ee !important; 
    background: #ffff00 !important; 
}

/* חזרה למצב רגיל */
body:not(.acwp-lnk-active) a:not(.acwp-link-credit) {
    font-weight: inherit;
}