/*
 * cc-site.css: המאסטר של האתר (הדר, תפריט, פוטר, באנר העוגיות, הפס העליון ותפריט הנגישות) לאפליקציית הכרטיסים.
 * ⚠️ העתק מרשימה סגורה, לא לערוך כאן: המקור הוא Supermarker.Bills/wwwroot/css/bills.css, סעיפים 1-4 (שורות 13-687)
 * ו-3ב (שורות 1158-1451). ה-SHA של המקור ב-tools/cc-core-copies.manifest.json, והסטייה נבדקת ב-tools/core-copies-drift.ps1.
 * עדכון: מעתיקים מחדש את אותם טווחים מהמקור, ומריצים את הסקריפט עם -Update. את Bills לא משנים מכאן.
 * נטען עם ?v= (asp-append-version), חוסם רינדור בכוונה: ההדר והפוטר הם חלק מהציור הראשון.
 */
/* ---------- 1. טוקנים (kupat-gemel.css) ---------- */
:root {
    --kg-brand: #17765a;
    --kg-brand-dark: #0f5a47;
    --kg-line: #dce8e3;
    --kg-line-strong: #a9c2b7;  /* גבול חזק לפילים/צ'יפים בסרגל הסינון (ממצא רונן 5, 2026-09-19: הגבול הדק היה חלש למבוגרים) */
    --kg-soft: #eef4f1;
    --kg-soft2: #e3f3ec;
    --kg-ink: #263d35;
    --kg-muted: #5a6e66;
    --kg-warn: #c05a2e;
    --kg-warn-bg: #fdf1ea;
    --kg-pos: #1b7f4d;
    --kg-neg: #b3261e;
    /* טוקנים של הורטיקל */
    --bl-lime: #bfca04;            /* צבע ההובר של התפריט וגבול הפוטר (bcc000/bfca04 באתר) */
    --bl-gutter: 16px;
    --bl-max: 1400px;          /* תקן דפי ההשוואה המשודרגים (docs/compare-pages-wide-layout.md, #main.gemel-compare-wide) */
    --bl-header-h: 68px;
    --bl-radius: 12px;
    --bl-shadow: 0 1px 2px rgba(38, 61, 53, .06), 0 6px 18px rgba(38, 61, 53, .06);
}

/* ---------- 2. בסיס ---------- */
/* גופן חלופי באותן מידות של Noto Sans Hebrew (04/10/2026): הגופן האמיתי נטען אחרי הציור הראשון (_Layout), ועד אז הטקסט
   מצויר ב-Arial מוגדל כך שרוחב השורה כמעט זהה, והחלפת הגופן לא מזיזה את הטקסט. נמדד בדפדפן (canvas measureText) על פסקת
   הפתיח והכותרת של /cellular: Noto רחב מ-Arial ב-6.49% במשקל 400 וב-7.86% ב-700; ascent/descent של Noto (1.07/0.29)
   מחולקים ב-size-adjust. local() בלבד, בלי הורדה: באנדרואיד אין Arial, והדפדפן עובר לגופן המערכת (Noto Sans Hebrew עצמו). */
@font-face {
    font-family: 'Noto Sans Hebrew Fallback';
    src: local('Arial'), local('ArialMT'), local('Arial Hebrew');
    font-weight: 100 549;
    size-adjust: 106.49%;
    ascent-override: 100.48%;
    descent-override: 27.23%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Noto Sans Hebrew Fallback';
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial Hebrew Bold');
    font-weight: 550 900;
    size-adjust: 107.86%;
    ascent-override: 99.20%;
    descent-override: 26.89%;
    line-gap-override: 0%;
}

html {
    scroll-behavior: auto;
}

body.bl-body {
    margin: 0;
    font-family: 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--kg-ink);
    background: #fff;
    direction: rtl;
}

#main.centerDesign {
    width: 100%;
    max-width: var(--bl-max);
    margin: 0 auto;
    padding: 0 var(--bl-gutter);
    box-sizing: border-box;
    direction: rtl;
    background: #fff;
    position: relative;
}

#mainContainer {
    position: relative;
    margin-top: 4px;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ---------- 3. הדר, תפריט, פוטר ---------- */

/* דסקטופ (#ymheader): לוגו גדול + קו ליים + navbar פרוס */
#ymheader {
    position: relative;
    width: 100%;
    direction: rtl;
}

/* compareTables.css: bottom:13px מרים את הלוגו 13px מעל מקומו בזרימה (התמונה 124px בתיבה של 110px).
   עם ה-20px של הפס העליון (.sm-topbar) התמונה מתחילה 7px מתחת לפס, בדיוק כמו במאסטר (נמדד ב-About.aspx: 48 → 55) */
#ymlogo {
    position: relative;
    bottom: 13px;
    right: 0;
    height: 110px;
}

#ymlogo img {
    max-width: 100%;
    height: auto;
}

.border-box {
    border-top: 5px solid var(--bl-lime);
    height: 1%;
    margin: 0;
    overflow: hidden;
    padding: 10px 0 0;
}

.sub-section {
    background: url("/images/themarker/bg/divider1.gif") repeat-x scroll 0 100% transparent;
    font-size: 14px;
    line-height: 25px;
    margin: 0;
    overflow: hidden;
    padding: 0 0 1px;
    width: 100%;
}

/* navbar (מה-<style> של המאסטר) */
#ymmainNavigation .navbar-main {
    font-size: 14px;
    padding: 0;
}

#ymmainNavigation .navbar-main .navbar-nav {
    flex-direction: row;
    flex-wrap: nowrap;
}

#ymmainNavigation .navbar-main .nav-link {
    padding: 14px 11px;
    text-align: center;
    line-height: 15px;
    text-decoration: none;
    color: var(--kg-ink);
}

#ymmainNavigation .navbar-main .nav-link:hover,
#ymmainNavigation .navbar-main .nav-link:focus,
#ymmainNavigation .navbar-main .nav-link:active {
    text-decoration: none;
}

#ymmainNavigation .navbar-main .dropdown-toggle::after {
    display: none;
}

@media (min-width: 992px) {
    #ymmainNavigation .navbar-main .dropdown-hover .dropdown-menu {
        display: none;
    }

    #ymmainNavigation .navbar-main .dropdown-hover:hover .dropdown-menu {
        display: block;
    }
}

#ymmainNavigation .navbar-main .nav-link:hover,
#ymmainNavigation .navbar-main .nav-link:focus,
#ymmainNavigation .navbar-main .dropdown-item:hover {
    background-color: var(--bl-lime);
    color: inherit;
}

#ymmainNavigation .navbar-main .dropdown-menu {
    right: 0;
    left: auto;
    text-align: right;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

#ymmainNavigation .navbar-main .dropdown-item {
    padding: 12px 16px;
    text-align: right;
    text-decoration: none;
}

/* הדר מובייל (#searchBox): קבוע, המבורגר + לוגו */
.searchBox {
    display: none;
    background-color: #ebebeb;
}

.navbar-toggler-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #212529;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

.navbar-toggler-btn:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.navbar-toggler-btn .navbar-hamburger-icon {
    display: block;
    width: 36px;
    height: 40px;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    #searchBox.searchBox {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    #searchBox.searchBox {
        display: block !important;
        position: fixed !important;
        top: 0;
        right: 0;
        left: 0;
        width: 100% !important;
        margin-top: 0 !important;
        z-index: 99;
        height: auto !important;
        min-height: calc(var(--bl-header-h) + env(safe-area-inset-top, 0px)) !important;
        padding-top: max(4px, env(safe-area-inset-top, 0px));
        padding-bottom: 4px;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #searchBox.searchBox .logoContainer {
        display: flex;
        align-items: center;
        margin-right: 4px;
        margin-left: 4px;
    }

    #searchBox.searchBox .menuImg {
        position: relative;
        float: left;
        left: 2%;
    }

    #searchBox.searchBox .logo {
        display: inline-block;
        margin-right: 18px;
        max-height: 55px !important;
        width: auto !important;
        height: auto !important;
    }

    #ymmainNavigation .navbar-main .navbar-collapse {
        margin-top: 0.5rem;
        transition: none;
    }

    #ymmainNavigation .navbar-main .navbar-nav {
        flex-direction: column;
    }

    #ymmainNavigation .navbar-main .nav-link,
    #ymmainNavigation .navbar-main .dropdown-item {
        font-size: 1rem;
    }

    #ymmainNavigation .navbar-main .dropdown-hover .dropdown-menu {
        display: block;
        position: static;
        box-shadow: none;
        border: none;
        padding-right: 1rem;
        padding-top: 0.25rem;
    }

    /* במובייל: רק התפריט מ-#ymheader (הלוגו הגדול והקו מוסתרים) */
    #ymheader {
        display: block !important;
    }

    #ymheader #ymlogo,
    #ymheader .border-box {
        display: none !important;
    }

    /* תפריט פתוח: קבוע מתחת להדר */
    #ymmainNavigation .navbar-main .navbar-collapse.show {
        position: fixed;
        top: calc(var(--bl-header-h) + env(safe-area-inset-top, 0px) + 4px);
        left: 0;
        right: 0;
        min-height: 150px;
        max-height: calc(100vh - (var(--bl-header-h) + env(safe-area-inset-top, 0px) + 4px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        z-index: 1000;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateZ(0);
        backface-visibility: hidden;
    }

    /* מרווח בין ההדר הקבוע לתוכן (padding ולא margin, כמו kg-main) */
    #main.centerDesign {
        padding-top: calc(var(--bl-header-h) + env(safe-area-inset-top, 0px) + 8px);
    }

    html {
        scroll-padding-top: calc(var(--bl-header-h) + env(safe-area-inset-top, 0px) + 12px);
    }

    html:has(#navbarMain.show) {
        scroll-padding-top: 60vh;
    }
}

/* פוטר (compareTables.css + התיקונים מהמאסטר), ברוחב נוזלי */
#footer {
    width: 100%;
    overflow: hidden;
    margin-top: 40px;
}

.footer {
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.footer a {
    font-size: 12px;
    color: #525252;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.border-boxFooter {
    overflow: hidden;
    margin-bottom: 30px;
    border-top: 5px solid var(--bl-lime);
    position: relative;
    z-index: 10;
}

.footer .footerHead {
    background: url("/images/themarker/separator8.gif") repeat-x scroll 0 100% transparent;
    overflow: hidden;
}

.footer .headAndCredits {
    margin: 0 auto;
    max-width: 983px;
    padding: 0 var(--bl-gutter);
}

.footer .headAndCredits li {
    background: url("/images/themarker/separator3.gif") no-repeat 0 4px transparent;
    color: #525252;
    padding: 4px 7px;
}

.footer ul.headList {
    float: right;
    margin-right: -5px;
    display: flex;
    flex-wrap: wrap;
}

.footer ul.headList li {
    display: flex;
    align-items: center;
    margin-left: -1px;
}

.footer ul.headList li a {
    display: inline-block;
}

.footer .columns {
    margin: 5px auto 0;
    max-width: var(--bl-max);
    text-align: center;
    padding: 0 var(--bl-gutter);
}

.footer .columns .columnsHolder {
    display: inline-block;
}

.footer .columns ul.column {
    border-right: 1px solid #e8e8e8;
    display: inline-block;
    vertical-align: top;
    width: 121px;
}

.footer .columns ul.column:first-child {
    border-right: 1px solid #fff;
}

.footer .columns ul.column .title {
    color: var(--kg-brand);
    font-weight: bold;
}

.footer .columns ul.column li {
    margin: 5px 10px 0 10px;
    text-align: right;
}

.disclaimer {
    color: #232323;
    font-size: 11px;
    text-align: center;
}

/* המוסכמה של האתר: עד 480px הפוטר מוסתר, ושורת ה-reCAPTCHA למובייל מופיעה במקומו */
.recaptchaNotice--mobile {
    display: none;
}

@media only screen and (max-width: 480px) {
    #footer {
        display: none !important;
    }

    .recaptchaNotice--mobile {
        display: block;
    }
}

/* ---------- 4. באנר העוגיות (Controls/CookieManager.ascx) ---------- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 3px solid var(--bl-lime);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    padding: 10px 20px;
    font-family: 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    direction: rtl;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 769px) {
    .cookie-consent-banner {
        left: 60%;
        right: 0;
    }

    .cookie-content {
        max-width: 100%;
    }
}

.cookie-text p {
    margin: 0 0 4px 0;
    color: #666;
    line-height: 1.3;
    font-size: 13px;
}

/* ניגודיות (Lighthouse 03/10/2026): ליים על לבן 1.8:1. הליים נשאר בגבול ובכפתורים, הטקסט כהה (כמו ב-Controls/CookieManager.ascx) */
.cookie-text a {
    color: #5c6300;
    text-decoration: none;
    font-size: 12px;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    justify-content: center;
}

.btn-accept,
.btn-reject,
.btn-customize {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    min-height: 44px;
}

.btn-accept {
    width: 100px;
    min-width: 100px;
    background: var(--bl-lime);
    color: var(--kg-ink);
}

.btn-accept:hover {
    background: #a8b003;
}

.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cookieSettingsModal .modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    direction: rtl;
    font-family: 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
}

#cookieSettingsModal .modal-content h3 {
    margin: 0 0 20px 0;
    color: #333;
    text-align: center;
}

#cookieSettingsModal .cookie-categories {
    margin: 20px 0;
}

#cookieSettingsModal .category-item {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
}

#cookieSettingsModal .category-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 5px;
}

#cookieSettingsModal .category-item input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

#cookieSettingsModal .required {
    color: #dc3545;
    font-size: 12px;
    margin-right: 5px;
}

#cookieSettingsModal .category-item p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 13px;
}

#cookieSettingsModal .modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

#cookieSettingsModal .btn-save,
#cookieSettingsModal .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    min-height: 44px;
}

#cookieSettingsModal .btn-save {
    background: var(--bl-lime);
    color: var(--kg-ink);
}

#cookieSettingsModal .btn-save:hover {
    background: #a8b003;
}

#cookieSettingsModal .btn-cancel {
    background: #6c757d;
    color: #fff;
}

#cookieSettingsModal .btn-cancel:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 6px 15px;
    }

    .cookie-buttons {
        flex-wrap: wrap;
    }

    #cookieSettingsModal .modal-content {
        padding: 20px;
        margin: 20px;
    }

    #cookieSettingsModal .modal-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cookie-text p {
        font-size: 11px;
    }
}


/* ---------- 3ב. הפס העליון ותפריט הנגישות (Controls/AccessibilityBar.ascx, פורט 2026-09-18) ----------
   המזהים/המחלקות (.sm-topbar, .sm-a11y-toggle, .sm-a11y-panel, html.sm-a11y-contrast) הם החוזה של /JS/accessibility.js.
   ההערות של הקונטרול הן הערות שרת; כאן הן הערות CSS רגילות. */
.sm-topbar {
    position: relative;
    direction: rtl;
    height: 48px;
    /* במאסטר: margin-bottom:-20px על הפס + top:40px (יחסי) על #main מ-compareTables.css ⇒ #main מתחיל 20px מתחת לפס
       (נמדד ב-About.aspx: פס 0-48, #main ב-68). כאן #main בלי top, ולכן ה-20px נטו יושבים על הפס עצמו;
       0 (הערך הקודם) הצמיד את הלוגו לפס וכיסה את הצל שלו. מתחת ל-992px הפס מוסתר והשוליים לא פועלים */
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sm-topbar__tm {
    display: inline-flex;
    align-items: center;
    padding: 4px;
    line-height: 0;
}

.sm-topbar__tm img {
    display: block;
    width: 115px;
    height: 24px;
}

/* כפתור נגישות, בשני המיקומים (פס עליון + הדר מובייל). אזור מגע 44px */
.sm-a11y-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    margin: 0;
    border: 2px solid #212529;
    border-radius: 6px;
    background: #fff;
    color: #212529;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sm-a11y-toggle svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.sm-a11y-toggle[aria-expanded="true"] {
    background: var(--bl-lime);
}

/* hover רק במכשיר עם עכבר: במגע ה-hover "נתקע" על הכפתור האחרון שנלחץ */
@media (hover: hover) {
    .sm-a11y-toggle:hover,
    .sm-a11y-panel button[data-sm-a11y]:hover {
        background: var(--bl-lime);
    }
}

.sm-a11y-toggle:focus-visible,
.sm-a11y-panel button:focus-visible,
.sm-a11y-panel a:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.sm-topbar .sm-a11y-toggle {
    position: absolute;
    left: 4px;
    top: 2px;
}

/* הדר מובייל (#searchBox): ליד ההמבורגר, באותו מנגנון מיקום (.menuImg: float:left; left:2%). נראה 32px, מגע 44px דרך ::after */
.sm-a11y-toggle--mobile {
    float: left;
    position: relative;
    left: 2%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    margin: 8px 6px 0;
    border-radius: 5px;
}

.sm-a11y-toggle--mobile svg {
    width: 22px;
    height: 22px;
}

.sm-a11y-toggle--mobile::after {
    content: '';
    position: absolute;
    top: -6px;
    right: -6px;
    bottom: -6px;
    left: -6px;
}

/* הפס מוצג רק כשה-navbar הפרוס מוצג (מהמאסטר: מתחת ל-992px ההדר הקבוע מחליף אותו) */
@media (max-width: 991.98px) {
    .sm-topbar {
        display: none !important;
    }

    /* קישור דהמרקר בראש התפריט המובייל (_Nav.cshtml), מופרד מהקטגוריות */
    #ymmainNavigation .navbar-main .sm-nav-tm {
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 0.25rem;
    }

    #ymmainNavigation .navbar-main .sm-nav-tm .nav-link {
        text-align: right;
    }

    #ymmainNavigation .navbar-main .sm-nav-tm img {
        display: inline-block;
        vertical-align: middle;
    }
}

@media only screen and (max-width: 480px) {
    /* supermarkerMobile.css נותן ל-.menuImg top:12% בטווח הזה; אותו יישור אנכי לכפתור */
    .sm-a11y-toggle--mobile {
        top: 12%;
    }
}

/* פאנל ההגדרות: גיליון קבוע בראש המסך, מעל ההדר הקבוע (99) ומעל התפריט המובייל (1000), מתחת ל-modal של Bootstrap (1050) */
.sm-a11y-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    direction: rtl;
    max-height: 100vh;
    overflow-y: auto;
    background: #f4f4f4;
    border-bottom: 3px solid #212529;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    font: 16px/1.4 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    color: #212529;
    text-align: right;
}

.sm-a11y-panel[hidden] {
    display: none !important;
}

.sm-a11y-panel__inner {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 16px 14px;
    padding-top: max(12px, env(safe-area-inset-top, 0px));
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 20px;
}

.sm-a11y-panel__title {
    margin: 0;
    padding-left: 52px; /* מקום לכפתור הסגירה */
    min-height: 44px;   /* בגובה כפתור הסגירה */
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 700;
    flex: 1 0 100%;
}

.sm-a11y-panel__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sm-a11y-panel button[data-sm-a11y] {
    min-height: 44px;
    padding: 8px 14px;
    border: 2px solid #212529;
    border-radius: 6px;
    background: #fff;
    color: #212529;
    font: 700 15px/1.2 'Noto Sans Hebrew', 'Noto Sans Hebrew Fallback', Arial, sans-serif;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.sm-a11y-panel button[aria-pressed="true"] {
    background: #212529;
    color: #fff;
}

.sm-a11y-panel button[aria-disabled="true"] {
    opacity: .45;
    cursor: default;
}

.sm-a11y-panel__status {
    min-width: 4.5em;
    font-weight: 700;
}

.sm-a11y-panel__link {
    color: #0b5d45;
    font-weight: 700;
    text-decoration: underline;
}

.sm-a11y-panel button.sm-a11y-panel__close {
    position: absolute;
    top: 12px; /* גיבוי לדפדפן בלי max() */
    top: max(12px, env(safe-area-inset-top, 0px));
    left: 12px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 26px;
    line-height: 1;
}

@media (max-width: 600px) {
    .sm-a11y-panel__group {
        flex: 1 0 100%;
    }

    .sm-a11y-panel__group button[data-sm-a11y] {
        flex: 1 1 0;
        padding: 8px 6px;
    }

    .sm-a11y-panel__status {
        flex: 1 0 100%;
    }
}

/* ניגודיות גבוהה: לבן על שחור בכל הדף (כולל הדר ופוטר), קישורים בצהוב עם קו תחתון */
html.sm-a11y-contrast,
html.sm-a11y-contrast body,
html.sm-a11y-contrast body * {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

html.sm-a11y-contrast body img {
    background-color: #fff !important;
}

html.sm-a11y-contrast body a,
html.sm-a11y-contrast body a * {
    color: #ff0 !important;
    text-decoration: underline !important;
}

html.sm-a11y-contrast body :focus {
    outline: 3px solid #ff0 !important;
    outline-offset: 2px;
}

html.sm-a11y-contrast body ::placeholder {
    color: #ccc !important;
}

html.sm-a11y-contrast body button,
html.sm-a11y-contrast body input,
html.sm-a11y-contrast body select,
html.sm-a11y-contrast body textarea {
    border: 2px solid #fff !important;
}

html.sm-a11y-contrast .sm-a11y-panel button[aria-pressed="true"] {
    background-color: #ff0 !important;
    color: #000 !important;
}

