/* CobWeb marketing — accessibility toolbar (ת״י 5568) */
.a11y-widget {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 10050;
    font-family: 'Heebo', 'Rubik', Arial, sans-serif;
}

.a11y-widget-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border: none;
    border-radius: 999px;
    background: #1e3a8a;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.a11y-widget-toggle:hover,
.a11y-widget-toggle:focus-visible {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(30, 58, 138, 0.34);
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.a11y-widget-toggle-label {
    line-height: 1;
}

.a11y-widget-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 0.75rem);
    width: min(320px, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.a11y-widget-panel[hidden] {
    display: none;
}

.a11y-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.a11y-widget-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
}

.a11y-widget-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #475569;
    cursor: pointer;
}

.a11y-widget-close:hover,
.a11y-widget-close:focus-visible {
    background: #e2e8f0;
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.a11y-widget-body {
    padding: 0.85rem 1rem 1rem;
    display: grid;
    gap: 0.65rem;
}

.a11y-widget-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f5f9;
}

.a11y-widget-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
}

.a11y-widget-stepper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.a11y-widget-step {
    width: 34px;
    height: 34px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.a11y-widget-step:hover,
.a11y-widget-step:focus-visible {
    border-color: #3b82f6;
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.a11y-widget-value {
    min-width: 3.5rem;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.a11y-widget-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
}

.a11y-widget-switch {
    width: 42px;
    height: 24px;
    accent-color: #2563eb;
    cursor: pointer;
}

.a11y-widget-reset {
    margin-top: 0.35rem;
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
}

.a11y-widget-reset:hover,
.a11y-widget-reset:focus-visible {
    background: #e2e8f0;
    outline: 2px solid #93c5fd;
    outline-offset: 1px;
}

.a11y-widget-footer {
    margin: 0;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}

/* Applied accessibility modes */
html.a11y-readable-font body {
    font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-large-cursor,
html.a11y-large-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M4 2l7 22 4-9 9-4z'/%3E%3C/svg%3E") 2 2, auto !important;
}

html.a11y-grayscale body {
    filter: grayscale(1);
}

html.a11y-highlight-links a {
    background: #fef08a !important;
    color: #111827 !important;
    outline: 2px solid #ca8a04 !important;
}

html.a11y-underline-links a {
    text-decoration: underline !important;
    text-underline-offset: 0.15em;
}

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

html.a11y-high-contrast body :where(
    p, h1, h2, h3, h4, h5, h6, li, span, label, small, strong, em, td, th, div, a, button, input, select, textarea
) {
    background-color: transparent !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.a11y-high-contrast body :where(
    .mk-btn-primary, .mk-btn, .global-footer, .global-header, .hero, .mk-section, .mk-contact, .a11y-widget-panel
) {
    background: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.a11y-high-contrast body a,
html.a11y-high-contrast body button {
    outline: 2px solid #ffff00 !important;
}

@media (max-width: 520px) {
    .a11y-widget {
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .a11y-widget-toggle-label {
        display: none;
    }

    .a11y-widget-toggle {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}
