/* ---------- Floating action button ---------- */
.a11y-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    z-index: 99998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease;
}

.a11y-fab:hover { background: #1e40af; transform: scale(1.05); }
.a11y-fab:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.a11y-fab svg { width: 26px; height: 26px; }

/* ---------- Panel ---------- */
.a11y-panel {
    position: fixed;
    bottom: 88px;
    right: 22px;
    width: 280px;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    z-index: 99999;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    animation: a11y-pop 0.18s ease-out;
}

@keyframes a11y-pop {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.a11y-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.a11y-panel-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.a11y-close {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    border-radius: 6px;
    font-size: 20px;
    color: #6b6b6b;
    cursor: pointer;
    line-height: 1;
}

.a11y-close:hover { background: #f4f4f5; color: #1a1a1a; }

/* ---------- Text-size segmented control ---------- */
.a11y-section { margin-bottom: 12px; }

.a11y-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 6px;
}

.a11y-seg {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    background: #f4f4f5;
    border-radius: 10px;
    padding: 4px;
}

.a11y-seg button {
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.a11y-seg button:hover { background: #ffffff; }
.a11y-seg button.is-active { background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }

/* ---------- Options list ---------- */
.a11y-options {
    list-style: none;
    margin: 8px 0 12px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.a11y-opt {
    width: 100%;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    padding: 0 10px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.12s ease;
}

.a11y-opt:hover { background: #f4f4f5; }

.a11y-opt.is-on {
    background: #eef4ff;
    color: #1d4ed8;
    font-weight: 600;
}

.a11y-opt-ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #f4f4f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.a11y-opt.is-on .a11y-opt-ico { background: #dbeafe; color: #1d4ed8; }

.a11y-reset {
    width: 100%;
    height: 36px;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 8px;
    color: #1a1a1a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.a11y-reset:hover { background: #f4f4f5; }

/* ============== Applied accessibility modes ============== */

html.a11y-text-larger  { font-size: 17px; }
html.a11y-text-larger-2 { font-size: 19px; }
html.a11y-text-smaller { font-size: 13px; }

html.a11y-contrast {
    filter: contrast(1.25) saturate(1.15);
}

html.a11y-contrast body,
html.a11y-contrast .auth-form,
html.a11y-contrast .loc-sidebar {
    background: #000 !important;
    color: #fff !important;
}

html.a11y-contrast .field input,
html.a11y-contrast .select-wrap select,
html.a11y-contrast .otp-box,
html.a11y-contrast .loc-search input {
    background: #111 !important;
    color: #fff !important;
    border-color: #fff !important;
}

html.a11y-contrast .auth-title,
html.a11y-contrast .auth-subtitle,
html.a11y-contrast .loc-heading,
html.a11y-contrast .loc-store-name,
html.a11y-contrast .loc-store-addr,
html.a11y-contrast .field label,
html.a11y-contrast .loc-label,
html.a11y-contrast .loc-hint,
html.a11y-contrast .loc-count { color: #fff !important; }

html.a11y-readable-font,
html.a11y-readable-font * {
    font-family: Verdana, Tahoma, Arial, sans-serif !important;
    letter-spacing: 0.01em;
}

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

html.a11y-pause-anim,
html.a11y-pause-anim *,
html.a11y-pause-anim *::before,
html.a11y-pause-anim *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
}

html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'><path d='M5 3l14 8-7 1-3 7-4-16z' fill='%23000' stroke='%23fff' stroke-width='1.5'/></svg>") 4 4, auto !important;
}

html.a11y-highlight-focus *:focus,
html.a11y-highlight-focus *:focus-visible {
    outline: 3px solid #fbbf24 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.25) !important;
}

/* ---------- Small screens: tuck the FAB & panel into the corner ---------- */
@media (max-width: 560px) {
    .a11y-fab { width: 46px; height: 46px; bottom: 14px; right: 14px; }
    .a11y-fab svg { width: 22px; height: 22px; }
    .a11y-panel { bottom: 70px; right: 14px; width: calc(100vw - 28px); max-width: 320px; }
}
