﻿:root {
    --mtu-a11y-navy: #262F59;
    --mtu-a11y-teal: #122254;
    --mtu-a11y-gold: #B99C71;
    --mtu-a11y-orange: #EF7F1A;
    --mtu-a11y-gray: #727271;
    --mtu-a11y-bg: #f6f9fc;
    --mtu-a11y-border: #c9d8e8;
    --mtu-a11y-text: #243b5a;
    --mtu-a11y-muted: #64748b;
}

/* ================================
   Contact Widget İçindeki Buton
================================ */

.api {
    z-index: 1003;
}

.api__link--accessibility {
    background: linear-gradient(135deg, var(--mtu-a11y-teal), #56b5df) !important;
    color: #fff !important;
}

    .api__link--accessibility i {
        color: #fff !important;
    }

    .api__link--accessibility:hover,
    .api__link--accessibility:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(18, 167, 205, .42);
        outline: 3px solid rgba(239, 127, 26, .35);
        outline-offset: 3px;
    }

.api__item--accessibility .api__tooltip {
    right: 110%;
}

/* ================================
   Widget Base
================================ */

.mtu-a11y-widget {
    position: fixed;
    right: 82px;
    bottom: 24px;
    z-index: 1002;
    font-family: inherit;
}

    .mtu-a11y-widget[data-position="right"] {
        right: 82px;
        left: auto;
    }

    .mtu-a11y-widget[data-position="left"] {
        left: 82px;
        right: auto;
    }

.mtu-a11y-panel {
    position: absolute;
    bottom: 0;
    width: min(360px, calc(100vw - 24px));
    max-height: min(560px, calc(100dvh - 90px));
    border: 1px solid var(--mtu-a11y-border);
    border-radius: 16px;
    background: rgba(246, 249, 252, .98);
    box-shadow: 0 22px 70px rgba(15, 23, 42, .22);
    overflow: hidden;
    color: var(--mtu-a11y-text);
}

.mtu-a11y-widget[data-position="right"] .mtu-a11y-panel {
    right: 0;
}

.mtu-a11y-widget[data-position="left"] .mtu-a11y-panel {
    left: 0;
}

.mtu-a11y-panel[hidden] {
    display: none;
}

.mtu-a11y-panel__header {
    padding: 14px 16px;
    display: block;
    background: linear-gradient(180deg, #ffffff 0%, #eaf1f7 100%);
    border-bottom: 1px solid var(--mtu-a11y-border);
}

    .mtu-a11y-panel__header h2 {
        margin: 0;
        color: var(--mtu-a11y-navy);
        font-size: 18px;
        line-height: 1.2;
        font-weight: 800;
        text-align: left;
    }

    .mtu-a11y-panel__header p {
        margin: 6px 0 0;
        color: var(--mtu-a11y-text);
        font-size: 13px;
        line-height: 1.35;
        text-align: left;
    }

.mtu-a11y-panel__body {
    max-height: calc(min(560px, calc(100dvh - 90px)) - 122px);
    overflow-y: auto;
    padding: 12px;
    scrollbar-width: thin;
    scrollbar-color: #9fb6cf transparent;
}

    .mtu-a11y-panel__body::-webkit-scrollbar {
        width: 8px;
    }

    .mtu-a11y-panel__body::-webkit-scrollbar-track {
        background: transparent;
    }

    .mtu-a11y-panel__body::-webkit-scrollbar-thumb {
        background: #9fb6cf;
        border-radius: 999px;
    }

.mtu-a11y-info {
    border: 1px solid var(--mtu-a11y-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: #eef7fc;
    color: var(--mtu-a11y-text);
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
    text-align: left;
}

.mtu-a11y-group,
.mtu-a11y-position {
    border: 1px solid var(--mtu-a11y-border);
    border-radius: 12px;
    background: #f8fbff;
    margin-bottom: 10px;
    overflow: hidden;
}

.mtu-a11y-group__toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 12px 14px;
    color: var(--mtu-a11y-navy);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

    .mtu-a11y-group__toggle strong,
    .mtu-a11y-position strong {
        display: block;
        font-size: 14px;
        font-weight: 800;
        color: var(--mtu-a11y-navy);
        text-align: left;
    }

    .mtu-a11y-group__toggle small,
    .mtu-a11y-position small {
        display: block;
        margin-top: 3px;
        color: var(--mtu-a11y-muted);
        font-size: 12px;
        line-height: 1.35;
        text-align: left;
    }

    .mtu-a11y-group__toggle i {
        flex: 0 0 auto;
        font-style: normal;
        color: var(--mtu-a11y-navy);
        font-size: 18px;
        font-weight: 800;
        text-align: center;
    }

.mtu-a11y-group__content {
    display: none;
    padding: 0 10px 10px;
}

.mtu-a11y-group.is-open .mtu-a11y-group__content {
    display: block;
}

.mtu-a11y-setting {
    min-height: 54px;
    border: 1px solid #d5e1ee;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mtu-a11y-setting--stack {
    display: block;
}

.mtu-a11y-setting > div {
    min-width: 0;
}

.mtu-a11y-setting strong {
    display: block;
    color: var(--mtu-a11y-navy);
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.mtu-a11y-setting small {
    display: block;
    margin-top: 3px;
    color: var(--mtu-a11y-muted);
    font-size: 11.5px;
    line-height: 1.35;
    text-align: left;
}

.mtu-a11y-setting__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

    .mtu-a11y-setting__title strong {
        white-space: nowrap;
    }

    .mtu-a11y-setting__title small {
        flex: 0 0 auto;
        white-space: nowrap;
        text-align: right;
    }

.mtu-a11y-switch {
    flex: 0 0 auto;
    min-width: 68px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid #c7d6e7;
    border-radius: 999px;
    background: #f2f6fa;
    color: #607089;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .mtu-a11y-switch.is-active {
        background: var(--mtu-a11y-teal);
        border-color: var(--mtu-a11y-teal);
        color: #fff;
    }

.mtu-a11y-segment {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

    .mtu-a11y-segment button {
        width: 100%;
        height: 32px;
        border: 1px solid #c7d6e7;
        border-radius: 8px;
        background: #fff;
        color: var(--mtu-a11y-navy);
        cursor: pointer;
        font-size: 12px;
        font-weight: 800;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .mtu-a11y-segment button.is-active {
            background: var(--mtu-a11y-teal);
            border-color: var(--mtu-a11y-teal);
            color: #fff;
        }

.mtu-a11y-position {
    padding: 12px;
}

.mtu-a11y-position__options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

    .mtu-a11y-position__options label {
        height: 36px;
        border: 1px solid #c7d6e7;
        border-radius: 8px;
        background: #fff;
        color: var(--mtu-a11y-navy);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 800;
        text-align: center;
    }

    .mtu-a11y-position__options input {
        margin: 0;
    }

.mtu-a11y-reset {
    width: 100%;
    height: 44px;
    border: 1px solid #c7d6e7;
    border-radius: 10px;
    background: #f5f8fc;
    color: var(--mtu-a11y-navy);
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    text-align: center;
}

    .mtu-a11y-reset:hover,
    .mtu-a11y-reset:focus-visible {
        background: #eef4fa;
        outline: 3px solid rgba(18, 167, 205, .18);
    }

.mtu-a11y-panel__footer {
    height: 56px;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #e7eef5 0%, #dce7f0 100%);
    border-top: 1px solid var(--mtu-a11y-border);
}

    .mtu-a11y-panel__footer strong {
        display: block;
        color: var(--mtu-a11y-text);
        font-size: 12px;
        line-height: 1.2;
        text-align: left;
    }

    .mtu-a11y-panel__footer small {
        display: block;
        color: var(--mtu-a11y-muted);
        font-size: 11px;
        text-align: left;
    }

/* ================================
   Reading Helpers
================================ */

.mtu-a11y-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mtu-a11y-orange);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 0 14px rgba(239, 127, 26, .55);
    z-index: 2147482998;
    pointer-events: none;
}

.mtu-a11y-reading-mask {
    position: fixed;
    inset: 0;
    z-index: 2147482997;
    pointer-events: none;
    background: linear-gradient( to bottom, rgba(0, 0, 0, .48) 0, rgba(0, 0, 0, .48) calc(var(--mtu-mask-y, 50vh) - 48px), transparent calc(var(--mtu-mask-y, 50vh) - 48px), transparent calc(var(--mtu-mask-y, 50vh) + 48px), rgba(0, 0, 0, .48) calc(var(--mtu-mask-y, 50vh) + 48px), rgba(0, 0, 0, .48) 100% );
}

/* ================================
   Global Accessibility Effects
================================ */

html.a11y-large-text body {
    font-size: 112%;
}

html.a11y-line-height-1 body p,
html.a11y-line-height-1 body li,
html.a11y-line-height-1 body td,
html.a11y-line-height-1 body th {
    line-height: 1.7 !important;
}

html.a11y-line-height-2 body p,
html.a11y-line-height-2 body li,
html.a11y-line-height-2 body td,
html.a11y-line-height-2 body th {
    line-height: 2 !important;
}

html.a11y-line-height-3 body p,
html.a11y-line-height-3 body li,
html.a11y-line-height-3 body td,
html.a11y-line-height-3 body th {
    line-height: 2.35 !important;
}

html.a11y-text-spacing-1 body {
    letter-spacing: .03em;
    word-spacing: .08em;
}

html.a11y-text-spacing-2 body {
    letter-spacing: .06em;
    word-spacing: .14em;
}

html.a11y-text-spacing-3 body {
    letter-spacing: .09em;
    word-spacing: .22em;
}

html.a11y-align-left body,
html.a11y-align-left body p,
html.a11y-align-left body div,
html.a11y-align-left body article,
html.a11y-align-left body section {
    text-align: left !important;
}

html.a11y-highlight-links body a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    font-weight: 800 !important;
}

html.a11y-dyslexia-friendly body {
    font-family: Arial, Verdana, Tahoma, sans-serif !important;
    letter-spacing: .035em;
    word-spacing: .12em;
}

html.a11y-big-buttons body button,
html.a11y-big-buttons body .btn,
html.a11y-big-buttons body a,
html.a11y-big-buttons body input,
html.a11y-big-buttons body select,
html.a11y-big-buttons body textarea {
    min-height: 42px;
}

html.a11y-focus-highlight body a:hover,
html.a11y-focus-highlight body button:hover,
html.a11y-focus-highlight body input:focus,
html.a11y-focus-highlight body select:focus,
html.a11y-focus-highlight body textarea:focus,
html.a11y-focus-highlight body [tabindex]:focus {
    outline: 3px solid var(--mtu-a11y-orange) !important;
    outline-offset: 3px !important;
}

/* Kontrast / görünüm ayarları */

html.a11y-high-contrast body {
    background: #000 !important;
    color: #fff !important;
}

    html.a11y-high-contrast body a {
        color: #ffd166 !important;
    }

    html.a11y-high-contrast body input,
    html.a11y-high-contrast body textarea,
    html.a11y-high-contrast body select,
    html.a11y-high-contrast body button {
        border-color: #fff !important;
    }

html.a11y-dark-mode body {
    background: #101827 !important;
    color: #e5eefb !important;
}

    html.a11y-dark-mode body a {
        color: #7dd3fc !important;
    }

html.a11y-grayscale body > *:not(.mtu-a11y-widget) {
    filter: grayscale(1);
}

html.a11y-low-saturation body > *:not(.mtu-a11y-widget) {
    filter: saturate(.55);
}

html.a11y-high-saturation body > *:not(.mtu-a11y-widget) {
    filter: saturate(1.65);
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0OCIgaGVpZ2h0PSI0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJNNyA0IEw3IDM5IEwxOCAyOSBMMjUgNDQgTDMzIDQwIEwyNiAyNiBMNDAgMjYgWiIgZmlsbD0iIzI2MkY1OSIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1qb2luPSJyb3VuZCIvPjwvc3ZnPg==") 7 4, auto !important;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
}

/* Widget, global erişilebilirlik ayarlarından bozulmasın */

.mtu-a11y-widget,
.mtu-a11y-widget * {
    letter-spacing: normal;
    word-spacing: normal;
    line-height: normal;
    box-sizing: border-box;
}

.mtu-a11y-panel,
.mtu-a11y-panel div,
.mtu-a11y-panel article,
.mtu-a11y-panel section,
.mtu-a11y-panel footer {
    text-align: left;
}

.mtu-a11y-switch,
.mtu-a11y-segment button,
.mtu-a11y-reset,
.mtu-a11y-position__options label {
    text-align: center;
}

/* ================================
   Responsive
================================ */

@media (max-width: 575.98px) {
    .mtu-a11y-widget[data-position="right"] {
        right: 72px;
        bottom: 12px;
    }

    .mtu-a11y-widget[data-position="left"] {
        left: 72px;
        bottom: 12px;
    }

    .mtu-a11y-panel {
        width: min(350px, calc(100vw - 20px));
        max-height: calc(100dvh - 82px);
    }

    .mtu-a11y-panel__body {
        max-height: calc(100dvh - 198px);
    }

    .mtu-a11y-setting {
        gap: 8px;
    }

        .mtu-a11y-setting strong {
            font-size: 12.5px;
        }

        .mtu-a11y-setting small {
            font-size: 11px;
        }

    .mtu-a11y-setting__title {
        align-items: flex-start;
    }

        .mtu-a11y-setting__title small {
            font-size: 10.5px;
        }
}
