/* === סרגל נגישות - בינט פתרונות / Bnet Solutions === */

/* כפתור צף - בצד שמאל */
#a11y-toggle-btn {
    position: fixed;
    bottom: 16px;
    left: 16px;
    /* היה right: 16px; */
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 9999;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: #000000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

#a11y-toggle-btn:focus-visible {
    outline: 3px solid #0066ff;
    outline-offset: 2px;
}

/* חלון הסרגל - בצד שמאל */
#a11y-panel {
    position: fixed;
    bottom: 80px;
    left: 16px;
    /* היה right: 16px; */
    width: 320px;
    max-width: calc(100% - 32px);
    background-color: #ffffff;
    color: #000000;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 14px 16px 16px;
    z-index: 9998;
    font-family: inherit;
    direction: rtl;
    display: none;
}

#a11y-panel.a11y-open {
    display: block;
}

/* כותרת */
#a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

#a11y-panel-title {
    font-size: 16px;
    font-weight: 600;
}

#a11y-panel-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* קבוצות כפתורים */
.a11y-group {
    margin-bottom: 10px;
}

.a11y-group-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

/* כפתורים */
.a11y-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.a11y-btn {
    flex: 1;
    min-width: 70px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    padding: 6px 8px;
    font-size: 13px;
    cursor: pointer;
    background-color: #f5f5f5;
    white-space: nowrap;
}

.a11y-btn.a11y-btn-small {
    flex: 0 0 auto;
}

.a11y-btn.a11y-active {
    background-color: #0066ff;
    color: #ffffff;
    border-color: #0050c8;
}

.a11y-btn:focus-visible {
    outline: 3px solid #0066ff;
    outline-offset: 2px;
}

/* טקסט קטן בתחתית */
#a11y-panel-footer {
    font-size: 11px;
    color: #666666;
    margin-top: 4px;
}

/* === מצבי נגישות (מחילים על <body>/<html>) === */

/* גודל פונט מנוהל ב-html (font-size: X%) */

/* ניגודיות גבוהה – מינימלי, לא שובש את כל האלמנטים */
body.a11y-high-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}

body.a11y-high-contrast #app,
body.a11y-high-contrast main,
body.a11y-high-contrast .site-wrapper {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* קישורים בניגודיות גבוהה */
body.a11y-high-contrast a {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* מצב כהה נגיש – בסיסי, לא נוגע לכל * */
body.a11y-dark-mode {
    background-color: #111111;
    color: #f5f5f5;
}

body.a11y-dark-mode #app,
body.a11y-dark-mode main,
body.a11y-dark-mode .site-wrapper {
    background-color: #111111;
    color: #f5f5f5;
}

body.a11y-dark-mode a {
    color: #4aa8ff;
}

/* הדגשת קישורים */
body.a11y-highlight-links a {
    text-decoration: underline !important;
    border-bottom: 2px solid currentColor !important;
}

/* פונט קריא */
body.a11y-readable-font {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Arial, sans-serif !important;
}

/* פוקוס מודגש לכל האלמנטים המתמקדים */
body.a11y-strong-focus *:focus-visible {
    outline: 3px solid #ff9800 !important;
    outline-offset: 2px;
}

/* מובייל: הסרגל יתפוס את כל הרוחב בתחתית */
@media (max-width: 600px) {
    #a11y-panel {
        bottom: 80px;
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
    }

    #a11y-toggle-btn {
        bottom: 16px;
        left: 16px;
    }
}