/* ==============================
   בסיס
============================== */

#vml-widget {
    --vml-yellow: #FFD200;
    --vml-ink: #19191B;
    --vml-line: #E3E3E8;
    --vml-soft: #F5F5F7;
    direction: rtl;
    font-family: "Assistant", Arial, sans-serif;
    color: var(--vml-ink);
    text-align: right;
    font-size: 17px;
    line-height: 1.75;
}

#vml-widget,
#vml-widget *,
#vml-widget *::before,
#vml-widget *::after {
    box-sizing: border-box;
}

#vml-widget [hidden] {
    display: none !important;
}

#vml-widget :is(button, input, h2, h3, p, a, label, span) {
    font-family: inherit;
    letter-spacing: normal;
}

#vml-widget :is(h2, h3, p) {
    margin: 0;
}

#vml-widget button {
    appearance: none;
    cursor: pointer;
    margin: 0;
    text-transform: none;
    font-size: inherit;
    line-height: 1.4;
}

#vml-widget button:disabled {
    cursor: default;
    opacity: .5;
}

#vml-widget a {
    color: #174B88;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}

#vml-widget :is(button, input, a, [tabindex]):focus-visible {
    outline: 3px solid #1465C0 !important;
    outline-offset: 4px;
}

/* ==============================
   פס לבן — שלושה קישורים במרכז
============================== */

#vml-widget .vml-footer {
    width: 100%;
    padding: 16px 12px;
    background: #FFF;
    border-top: 1px solid var(--vml-line);
}

#vml-widget .vml-footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

#vml-widget .vml-footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #33333A;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: background .2s, color .2s;
}

#vml-widget .vml-footer-link:hover {
    background: #F4F4F6;
    color: #111;
    text-decoration-color: currentColor;
}

#vml-widget .vml-divider {
    height: 15px;
    width: 1px;
    background: #D8D8DE;
    flex: 0 0 1px;
}

/* ==============================
   כפתור נגישות קבוע
============================== */

#vml-widget .vml-access-button {
    position: fixed !important;
    right: 16px !important;
    left: auto !important;
    top: auto !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 9400;
    width: 58px;
    height: 58px;
    padding: 12px;
    display: grid;
    place-items: center;
    background: #19191B;
    color: #FFF;
    border: 2px solid #FFF;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(0,0,0,.15),
        0 7px 25px rgba(0,0,0,.24);
    transition: background .2s, box-shadow .2s;
}

#vml-widget .vml-access-button:hover {
    background: #35353B;
    box-shadow:
        0 0 0 3px var(--vml-yellow),
        0 7px 25px rgba(0,0,0,.28);
}

#vml-widget .vml-access-button svg {
    display: block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

/* ==============================
   חלונות POP
============================== */

#vml-widget .vml-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(860px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #DEDEE4;
    border-radius: 20px;
    background: #FFF;
    color: var(--vml-ink);
    box-shadow: 0 25px 100px rgba(0,0,0,.3);
    text-align: right;
}

#vml-widget .vml-dialog::backdrop {
    background: rgba(15,15,18,.72);
    backdrop-filter: blur(5px);
}

#vml-widget .vml-dialog-small {
    width: min(580px, calc(100% - 32px));
}

#vml-widget .vml-dialog-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 28px;
    background: #FFF;
    border-bottom: 1px solid var(--vml-line);
}

#vml-widget .vml-dialog-header::after {
    content: "";
    position: absolute;
    right: 28px;
    bottom: -1px;
    width: 48px;
    height: 4px;
    background: var(--vml-yellow);
    border-radius: 4px;
}

#vml-widget .vml-dialog h2 {
    font-size: 29px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--vml-ink);
}

#vml-widget .vml-close {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid #DADAE1;
    border-radius: 50%;
    background: #FFF;
    color: #19191B;
    font-size: 29px;
    font-weight: 400;
}

#vml-widget .vml-close:hover {
    background: var(--vml-yellow);
    border-color: var(--vml-yellow);
}

#vml-widget .vml-body {
    padding: 28px;
    overflow-wrap: anywhere;
}

#vml-widget .vml-body p {
    margin-bottom: 16px;
    color: #37373F;
    font-size: 17px;
    line-height: 1.85;
}

#vml-widget .vml-body h3 {
    margin: 27px 0 12px;
    color: var(--vml-ink);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

#vml-widget .vml-body :is(ul, ol) {
    margin: 10px 0 20px;
    padding-inline-start: 25px;
}

#vml-widget .vml-body li {
    margin-bottom: 8px;
    padding-inline-start: 3px;
    font-size: 17px;
    line-height: 1.8;
}

#vml-widget .vml-date {
    display: inline-block;
    margin-bottom: 20px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--vml-soft);
    color: #50505A;
    font-size: 14px;
}

#vml-widget .vml-contact {
    margin: 16px 0;
    padding: 18px;
    background: var(--vml-soft);
    border-radius: 12px;
}

#vml-widget .vml-contact p {
    margin-bottom: 8px;
}

#vml-widget .vml-contact p:last-child {
    margin-bottom: 0;
}

/* ==============================
   כפתורי פעולה
============================== */

#vml-widget .vml-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

#vml-widget .vml-btn {
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid #CBCBD3;
    border-radius: 9px;
    background: #FFF;
    color: #19191B;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

#vml-widget .vml-btn:hover {
    background: #F0F0F3;
}

#vml-widget .vml-btn-primary {
    background: var(--vml-yellow);
    border-color: var(--vml-yellow);
}

#vml-widget .vml-btn-primary:hover {
    background: #EBC200;
    border-color: #EBC200;
}

/* ==============================
   הודעת פרטיות
============================== */

#vml-widget .vml-cookie-banner {
    position: fixed;
    right: auto;
    left: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 9500;
    width: min(520px, calc(100% - 36px));
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 24px;
    border: 1px solid #DDDDE3;
    border-top: 4px solid var(--vml-yellow);
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0 12px 60px rgba(0,0,0,.22);
}

#vml-widget .vml-cookie-banner h2 {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: #19191B;
}

#vml-widget .vml-cookie-banner p {
    color: #44444D;
    font-size: 16px;
    line-height: 1.75;
}

#vml-widget .vml-cookie-banner .vml-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 17px;
}

#vml-widget .vml-cookie-customize {
    grid-column: 1 / -1;
}

#vml-widget .vml-inline-link {
    min-height: 40px;
    margin-top: 8px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: #174B88;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==============================
   בחירת פרטיות
============================== */

#vml-widget .vml-option {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px 0;
    border-bottom: 1px solid var(--vml-line);
}

#vml-widget .vml-option input {
    appearance: auto;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 5px 0 0;
    accent-color: #19191B;
}

#vml-widget .vml-option label {
    display: block;
    cursor: pointer;
    color: #19191B;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
}

#vml-widget .vml-option p {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.7;
}

#vml-widget .vml-badge {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 2px 8px;
    border-radius: 5px;
    background: #ECECF0;
    color: #474750;
    font-size: 12px;
    font-weight: 700;
}

/* ==============================
   תפריט נגישות
============================== */

#vml-widget .vml-tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 18px 0;
}

#vml-widget .vml-tool {
    min-height: 64px;
    padding: 12px;
    border: 1px solid #D5D5DD;
    border-radius: 10px;
    background: #FFF;
    color: #19191B;
    font-size: 16px;
    font-weight: 700;
}

#vml-widget .vml-tool:hover {
    background: #F5F5F7;
}

#vml-widget .vml-tool[aria-pressed="true"] {
    background: #FFF4AE;
    border-color: #746100;
    box-shadow: inset 0 0 0 1px #746100;
}

#vml-widget .vml-size-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    background: var(--vml-soft);
    border-radius: 10px;
}

#vml-widget .vml-size-value {
    min-width: 60px;
    text-align: center;
    direction: ltr;
    font-size: 18px;
    font-weight: 800;
}

#vml-widget .vml-small-note {
    font-size: 14px !important;
    color: #575761 !important;
}

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

/* ==============================
   התאמות תצוגה מוגבלות לתוכן קריא בלבד
   אין מחיקת תמונות/רקעים, אין דריסה של רכיבי עיצוב,
   של פופאפים חיצוניים או של תפריטי האתר.
============================== */

html.vml-a-links body :is(main, article, .entry-content, .elementor-widget-text-editor) a:not(#vml-widget *):not(.elementor-button):not([role="button"]) {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

html.vml-a-readable body :is(p, li, blockquote, dt, dd, h1, h2, h3, h4, h5, h6):not(#vml-widget *) {
    font-family: Arial, sans-serif !important;
}

html.vml-a-spacing body :is(p, li, blockquote, dt, dd):not(#vml-widget *) {
    line-height: 1.85 !important;
    word-spacing: .10em !important;
    letter-spacing: .02em !important;
}

/* Contrast mode improves text contrast without removing background images, icons or content. */
html.vml-a-contrast body :is(p, li, blockquote, dt, dd, h1, h2, h3, h4, h5, h6):not(#vml-widget *) {
    color: #111 !important;
    background-color: #fff !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    text-shadow: none !important;
}
html.vml-a-contrast body :is(main, article, .entry-content, .elementor-widget-text-editor) a:not(#vml-widget *):not([role="button"]) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
}

/* Use near-instant animations instead of animation:none to avoid hiding content
   that becomes visible through animation-fill-mode/entrance animations. */
html.vml-a-motion body *:not(#vml-widget *),
html.vml-a-motion body *:not(#vml-widget *)::before,
html.vml-a-motion body *:not(#vml-widget *)::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
}

html.vml-a-focus body :is(
    a, button, input, select, textarea, [tabindex]
):not(#vml-widget *):focus-visible {
    outline: 3px solid #1465C0 !important;
    outline-offset: 3px !important;
}

html.vml-a-headings body :is(h1, h2, h3, h4, h5, h6):not(#vml-widget *) {
    outline: 2px solid #1465C0 !important;
    outline-offset: 4px !important;
}

/* ==============================
   מובייל
============================== */

@media (max-width: 600px) {
    #vml-widget .vml-footer {
        padding: 13px 6px;
    }

    #vml-widget .vml-footer-nav {
        gap: 2px 3px;
    }

    #vml-widget .vml-footer-link {
        padding: 10px 8px;
        font-size: 14px;
    }

    #vml-widget .vml-access-button {
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
        top: auto !important;
        width: 49px;
        height: 49px;
        padding: 9px;
    }

    #vml-widget .vml-access-button svg {
        width: 27px;
        height: 27px;
    }

    #vml-widget .vml-dialog,
    #vml-widget .vml-dialog-small {
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 14px;
    }

    #vml-widget .vml-dialog-header {
        padding: 18px;
        gap: 12px;
    }

    #vml-widget .vml-dialog-header::after {
        right: 18px;
    }

    #vml-widget .vml-dialog h2 {
        font-size: 25px;
    }

    #vml-widget .vml-body {
        padding: 22px 18px;
    }

    #vml-widget .vml-body h3 {
        font-size: 21px;
    }

    #vml-widget .vml-cookie-banner {
        right: 12px;
        left: 12px;
        bottom: calc(75px + env(safe-area-inset-bottom, 0px));
        width: calc(100% - 24px);
        padding: 20px;
        max-height: calc(100dvh - 99px);
    }

    #vml-widget .vml-cookie-banner .vml-btn {
        padding: 12px 8px;
        font-size: 15px;
    }
}

@media (max-width: 340px) {
    #vml-widget .vml-divider {
        display: none;
    }

    #vml-widget .vml-footer-link {
        padding: 10px 7px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #vml-widget *,
    #vml-widget *::before,
    #vml-widget *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    #vml-widget .vml-access-button,
    #vml-widget .vml-cookie-banner {
        display: none !important;
    }
}

/* Visibility: never hide plugin controls just because a third-party popup exists. */
#vml-widget .vml-footer[hidden],
#vml-widget .vml-access-button[hidden],
#vml-widget .vml-cookie-banner[hidden] {
    display: none !important;
}
/* Elementor/Popup Maker overlays are not re-styled or re-positioned by this plugin. */

