/* Erişilebilirlik widget — tema bağımsız, cms-a11y- önekli */

#cms-a11y-root,
#cms-a11y-root * {
    box-sizing: border-box;
}

.cms-a11y-root {
    position: fixed;
    z-index: 2147483000;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
    -webkit-font-smoothing: antialiased;
}

.cms-a11y-handle {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 3px solid #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #1d4ba8, #12306b);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(18, 48, 107, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cms-a11y-handle:hover {
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 22px rgba(18, 48, 107, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.15);
}

html.cms-a11y-reduced-ui-motion .cms-a11y-handle {
    transition: none;
}

.cms-a11y-handle:focus-visible {
    outline: 3px solid #ffd23f;
    outline-offset: 3px;
}

.cms-a11y-handle-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    border-radius: 6px;
    background: #12306b;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.cms-a11y-handle:hover .cms-a11y-handle-label,
.cms-a11y-handle:focus-visible .cms-a11y-handle-label {
    opacity: 1;
}

.cms-a11y-handle-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffd23f;
    border: 2px solid #12306b;
    display: none;
}

.cms-a11y-handle--active .cms-a11y-handle-dot {
    display: block;
}

.cms-a11y-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2147482999;
}

.cms-a11y-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, calc(100vw - 24px));
    height: 100%;
    max-height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    z-index: 2147483001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cms-a11y-panel--open {
    transform: translateX(0);
}

.cms-a11y-panel--closed {
    transform: translateX(100%);
    pointer-events: none;
    visibility: hidden;
}

html:not(.cms-a11y-reduced-ui-motion) .cms-a11y-panel {
    transition: transform 0.25s ease;
}

html.cms-a11y-reduced-ui-motion .cms-a11y-panel {
    transition: none;
}

.cms-a11y-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}

.cms-a11y-panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #12306b;
}

.cms-a11y-panel-close {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #374151;
    border-radius: 6px;
}

.cms-a11y-panel-close:focus-visible {
    outline: 3px solid #12306b;
    outline-offset: 2px;
}

.cms-a11y-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 14px 20px;
    -webkit-overflow-scrolling: touch;
}

.cms-a11y-live {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cms-a11y-card-stack {
    margin-bottom: 8px;
}

.cms-a11y-card-stack:last-child {
    margin-bottom: 0;
}

.cms-a11y-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: #111;
}

.cms-a11y-card:focus-visible {
    outline: 3px solid #12306b;
    outline-offset: 2px;
}

.cms-a11y-card--active,
.cms-a11y-card[aria-pressed="true"] {
    border-color: #12306b;
    background: #e8eef8;
}

.cms-a11y-card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.cms-a11y-card-main {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.cms-a11y-card-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #12306b;
    margin-top: 2px;
}

.cms-a11y-card-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cms-a11y-card-label {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.cms-a11y-card-desc {
    font-size: 11px;
    line-height: 1.35;
    color: #6b7280;
    font-weight: 400;
}

.cms-a11y-card-status {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e5e7eb;
    color: #374151;
}

.cms-a11y-card-status--on {
    background: #12306b;
    color: #fff;
}

.cms-a11y-font-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    width: 100%;
}

.cms-a11y-font-card-label {
    font-weight: 700;
    font-size: 14px;
    color: #111;
    flex-shrink: 0;
}

.cms-a11y-font-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.cms-a11y-font-btn {
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #111;
}

.cms-a11y-font-btn[aria-pressed="true"] {
    border-color: #12306b;
    background: #12306b;
    color: #fff;
}

.cms-a11y-font-btn:focus-visible {
    outline: 3px solid #12306b;
    outline-offset: 2px;
}

.cms-a11y-speech-wrap {
    display: flex;
    flex-direction: column;
}

.cms-a11y-speech-wrap .cms-a11y-card {
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.cms-a11y-speech-wrap .cms-a11y-card:not(.cms-a11y-card--active):not([aria-pressed="true"]) {
    border-radius: 10px;
}

.cms-a11y-speech-wrap .cms-a11y-card--active,
.cms-a11y-speech-wrap .cms-a11y-card[aria-pressed="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cms-a11y-speech-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px 10px 42px;
    margin-top: -1px;
    border: 1px solid #12306b;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #f3f6fc;
}

.cms-a11y-speech-options[hidden] {
    display: none !important;
}

.cms-a11y-speech-radio {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #111;
}

.cms-a11y-speech-radio--checked,
.cms-a11y-speech-radio[aria-checked="true"] {
    border-color: #12306b;
    background: #e8eef8;
}

.cms-a11y-speech-radio:focus-visible {
    outline: 3px solid #12306b;
    outline-offset: 2px;
}

.cms-a11y-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.cms-a11y-action-btn {
    min-height: 44px;
    padding: 10px 14px;
    border: 2px solid #12306b;
    border-radius: 8px;
    background: #12306b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.cms-a11y-action-btn--secondary {
    background: #fff;
    color: #12306b;
}

.cms-a11y-action-btn:focus-visible {
    outline: 3px solid #ffd23f;
    outline-offset: 2px;
}

.cms-a11y-contact {
    margin-top: 16px;
    padding: 12px;
    background: #edf4ff;
    border: 1px solid #c5d9f5;
    border-radius: 10px;
}

.cms-a11y-contact-title {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #12306b;
}

.cms-a11y-contact-hint {
    margin: 0 0 8px;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

.cms-a11y-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #12306b;
    text-decoration: underline;
}

.cms-a11y-contact-link:focus-visible {
    outline: 3px solid #ffd23f;
    outline-offset: 2px;
}

.cms-a11y-contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cms-a11y-hint {
    margin-top: 14px;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.4;
}

.cms-a11y-skip {
    position: absolute;
    left: 8px;
    top: 8px;
    z-index: 2147482000;
    padding: 10px 16px;
    background: #12306b;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transform: translateY(-200%);
    transition: transform 0.15s;
}

.cms-a11y-skip:focus {
    transform: translateY(0);
    outline: 3px solid #ffd23f;
    outline-offset: 2px;
}

.cms-a11y-text-only {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #111;
    font-size: 18px;
    line-height: 1.7;
}

html.cms-a11y-contrast .cms-a11y-text-only {
    background: #000;
    color: #fff;
}

html.cms-a11y-contrast .cms-a11y-text-only a {
    color: #ffd23f;
}

.cms-a11y-text-only-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
    background: inherit;
}

html.cms-a11y-contrast .cms-a11y-text-only-bar {
    border-bottom-color: #fff;
}

.cms-a11y-text-only-bar-title {
    margin: 0;
    font-size: 1.1em;
    font-weight: 700;
}

.cms-a11y-text-only-close {
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #12306b;
    border-radius: 8px;
    background: #12306b;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

html.cms-a11y-contrast .cms-a11y-text-only-close {
    border-color: #ffd23f;
    background: #000;
    color: #ffd23f;
}

.cms-a11y-text-only-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px 32px;
    -webkit-overflow-scrolling: touch;
}

.cms-a11y-text-only-content {
    max-width: 760px;
    margin: 0 auto;
}

.cms-a11y-text-only-content h1,
.cms-a11y-text-only-content h2,
.cms-a11y-text-only-content h3,
.cms-a11y-text-only-content h4,
.cms-a11y-text-only-content h5,
.cms-a11y-text-only-content h6 {
    font-weight: 700;
    margin: 1.2em 0 0.5em;
}

.cms-a11y-text-only-content p {
    margin: 0 0 0.75em;
}

.cms-a11y-text-only-content a {
    color: #2563eb;
    text-decoration: underline;
}

.cms-a11y-text-only-content ul,
.cms-a11y-text-only-content ol {
    margin: 0 0 0.75em 1.25em;
}

.cms-a11y-text-only-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1em;
}

.cms-a11y-text-only-content th,
.cms-a11y-text-only-content td {
    border: 1px solid #d1d5db;
    padding: 8px;
    text-align: left;
}

.cms-a11y-text-only-img {
    font-style: italic;
    font-size: 0.9em;
    color: #6b7280;
}

html.cms-a11y-contrast .cms-a11y-text-only-img {
    color: #ccc;
}

@media (max-width: 639px) {
    .cms-a11y-handle {
        right: 12px;
        width: 52px;
        height: 52px;
    }

    .cms-a11y-handle-label {
        display: none;
    }

    .cms-a11y-font-card {
        flex-direction: column;
        align-items: stretch;
    }

    .cms-a11y-font-row {
        justify-content: stretch;
    }

    .cms-a11y-font-btn {
        flex: 1;
    }
}

@media print {
    #cms-a11y-root,
    .cms-a11y-skip {
        display: none !important;
    }
}

/* Sayfa modları — widget hariç */

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

html.cms-a11y-contrast body :not(#cms-a11y-root):not(#cms-a11y-root *):not(img):not(video):not(svg):not(picture) {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: 0 0 3px #000, 0 0 6px #000 !important;
}

html.cms-a11y-contrast body a:not(#cms-a11y-root a):not(#cms-a11y-root *) {
    color: #ffd23f !important;
    text-decoration: underline !important;
}

html.cms-a11y-contrast body :not(#cms-a11y-root):not(#cms-a11y-root *):not(img):not(video):not(svg):not(picture) {
    outline-color: #fff !important;
}

html.cms-a11y-contrast body button:not(#cms-a11y-root button):not(#cms-a11y-root *),
html.cms-a11y-contrast body [role="button"]:not(#cms-a11y-root [role="button"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body input:not(#cms-a11y-root input):not(#cms-a11y-root *),
html.cms-a11y-contrast body select:not(#cms-a11y-root select):not(#cms-a11y-root *),
html.cms-a11y-contrast body textarea:not(#cms-a11y-root textarea):not(#cms-a11y-root *),
html.cms-a11y-contrast body .btn:not(#cms-a11y-root .btn):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="btn"]:not(#cms-a11y-root [class*="btn"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="button"]:not(#cms-a11y-root [class*="button"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="card"]:not(#cms-a11y-root [class*="card"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="kart"]:not(#cms-a11y-root [class*="kart"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="box"]:not(#cms-a11y-root [class*="box"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body [class*="item"]:not(#cms-a11y-root [class*="item"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body article:not(#cms-a11y-root article):not(#cms-a11y-root *),
html.cms-a11y-contrast body .owl-item > *:not(#cms-a11y-root *),
html.cms-a11y-contrast body fieldset:not(#cms-a11y-root fieldset):not(#cms-a11y-root *) {
    border: 2px solid #fff !important;
    border-radius: inherit;
}

html.cms-a11y-contrast body button:not(#cms-a11y-root button):not(#cms-a11y-root *),
html.cms-a11y-contrast body [role="button"]:not(#cms-a11y-root [role="button"]):not(#cms-a11y-root *),
html.cms-a11y-contrast body input:not(#cms-a11y-root input):not(#cms-a11y-root *),
html.cms-a11y-contrast body select:not(#cms-a11y-root select):not(#cms-a11y-root *),
html.cms-a11y-contrast body textarea:not(#cms-a11y-root textarea):not(#cms-a11y-root *),
html.cms-a11y-contrast body .btn:not(#cms-a11y-root .btn):not(#cms-a11y-root *) {
    border-color: #ffd23f !important;
    background-color: #000 !important;
    color: #ffd23f !important;
}

html.cms-a11y-contrast body button:not(#cms-a11y-root button):not(#cms-a11y-root *):hover,
html.cms-a11y-contrast body button:not(#cms-a11y-root button):not(#cms-a11y-root *):focus-visible,
html.cms-a11y-contrast body [role="button"]:not(#cms-a11y-root [role="button"]):not(#cms-a11y-root *):hover,
html.cms-a11y-contrast body [role="button"]:not(#cms-a11y-root [role="button"]):not(#cms-a11y-root *):focus-visible,
html.cms-a11y-contrast body .btn:not(#cms-a11y-root .btn):not(#cms-a11y-root *):hover,
html.cms-a11y-contrast body .btn:not(#cms-a11y-root .btn):not(#cms-a11y-root *):focus-visible {
    background-color: #ffd23f !important;
    color: #000 !important;
}

/* Yüksek kontrastı ezer (daha yüksek özgüllük + sonradan gelir) */
html.cms-a11y-links body a[href]:not(#cms-a11y-root a):not(#cms-a11y-root *) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
    background-color: #ffd23f !important;
    color: #000 !important;
    outline: 2px solid #000 !important;
    outline-offset: 1px !important;
    border-radius: 3px !important;
    text-shadow: none !important;
}

html.cms-a11y-links.cms-a11y-contrast body a[href]:not(#cms-a11y-root a):not(#cms-a11y-root *) {
    background-color: #000 !important;
    color: #ffd23f !important;
    outline: 3px solid #ffd23f !important;
    outline-offset: 2px !important;
}

html.cms-a11y-links body a[href]:not(#cms-a11y-root a):not(#cms-a11y-root *) *:not(img):not(svg):not(video) {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: inherit !important;
    text-shadow: none !important;
}

html.cms-a11y-dyslexia body :not(#cms-a11y-root):not(#cms-a11y-root *) {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
    font-style: normal !important;
    line-height: 1.8 !important;
    letter-spacing: 0.06em !important;
    word-spacing: 0.12em !important;
}

html.cms-a11y-motion body :not(#cms-a11y-root):not(#cms-a11y-root *) {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

html.cms-a11y-cursor,
html.cms-a11y-cursor body :not(#cms-a11y-root):not(#cms-a11y-root *) {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpolygon points='4,4 4,28 12,20 18,28 22,26 16,18 26,18' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.cms-a11y-cursor body a:not(#cms-a11y-root a),
html.cms-a11y-cursor body button:not(#cms-a11y-root button) {
    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 d='M8 4 L8 22 L14 18 L18 28 L22 26 L18 16 L26 16 Z' fill='%23fff' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") 8 4, pointer !important;
}

/* Odak vurgusu — her zaman, klavye (:focus-visible) */
:focus-visible {
    outline: 3px solid #ffd23f !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.45) !important;
}
