:root {
    --a11y-blue: #075bd8;
    --a11y-blue-dark: #0647aa;
    --a11y-ink: #142033;
    --a11y-muted: #5e6f85;
    --a11y-line: #dce5f0;
    --a11y-soft: #f4f8ff;
}

.a11y-assistant-launcher {
    position: fixed;
    z-index: 10001;
    left: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 18px;
    border: 2px solid #fff;
    border-radius: 999px !important;
    background: var(--a11y-blue);
    color: #fff;
    box-shadow: 0 12px 30px rgba(7, 91, 216, .3);
    font: 700 14px/1 "Poppins", sans-serif;
    cursor: pointer;
}

.a11y-assistant-launcher:hover,
.a11y-assistant-launcher:focus-visible {
    background: var(--a11y-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

.a11y-assistant-launcher svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.a11y-assistant-panel {
    position: fixed;
    z-index: 10003;
    left: 18px;
    bottom: 82px;
    width: min(440px, calc(100vw - 36px));
    max-height: min(740px, calc(100vh - 105px));
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(20, 32, 51, .12);
    border-radius: 22px;
    background: #fff;
    color: var(--a11y-ink);
    box-shadow: 0 24px 70px rgba(20, 32, 51, .24);
}

.a11y-assistant-panel[hidden] { display: none !important; }

.a11y-assistant-panel.is-opening { animation: a11yPanelIn .2s ease-out both; }

.a11y-assistant-header {
    position: relative;
    padding: 24px 62px 21px 24px;
    background: linear-gradient(135deg, #075bd8 0%, #063f98 100%);
    color: #fff;
}

.a11y-assistant-kicker {
    display: block;
    margin-bottom: 5px;
    color: #cfe3ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.a11y-assistant-header h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.25;
}

.a11y-assistant-header p {
    margin: 8px 0 0;
    color: #e7f0ff;
    font-size: 13px;
    line-height: 1.55;
}

.a11y-assistant-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font: 400 28px/1 Arial, sans-serif;
}

.a11y-assistant-content { padding: 20px; }

.a11y-assistant-section + .a11y-assistant-section {
    margin-top: 21px;
    padding-top: 21px;
    border-top: 1px solid var(--a11y-line);
}

.a11y-assistant-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.a11y-assistant-section h3 {
    margin: 0 0 12px;
    color: var(--a11y-ink);
    font-size: 16px;
    line-height: 1.3;
}

.a11y-assistant-reset {
    min-height: 32px;
    padding: 4px 9px;
    border: 0;
    background: transparent;
    color: var(--a11y-blue);
    font-size: 12px;
    font-weight: 700;
}

.a11y-assistant-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.a11y-tool {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 68px;
    padding: 10px;
    border: 1px solid var(--a11y-line);
    border-radius: 12px !important;
    background: #fff;
    color: var(--a11y-ink);
    text-align: left;
}

.a11y-tool:hover,
.a11y-tool:focus-visible { border-color: #8bb7f4; background: var(--a11y-soft); }

.a11y-tool[aria-pressed="true"] {
    border-color: var(--a11y-blue);
    background: #eaf3ff;
    box-shadow: inset 0 0 0 1px var(--a11y-blue);
}

.a11y-tool-icon {
    display: grid;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 10px;
    background: #eaf3ff;
    color: var(--a11y-blue);
    font-size: 16px;
    font-weight: 800;
}

.a11y-tool strong,
.a11y-tool small { display: block; }
.a11y-tool strong { font-size: 12px; line-height: 1.3; }
.a11y-tool small { margin-top: 3px; color: var(--a11y-muted); font-size: 10px; line-height: 1.25; }

.a11y-assistant-reader { display: flex; gap: 8px; margin-top: 10px; }

.a11y-reader-button {
    flex: 1;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #b9d3f8;
    border-radius: 10px !important;
    background: #fff;
    color: var(--a11y-blue);
    font-size: 12px;
    font-weight: 800;
}

.a11y-reader-button--stop { color: #a61b1b; border-color: #f0b8b8; }

.a11y-assistant-question label {
    display: block;
    margin-bottom: 7px;
    color: var(--a11y-muted);
    font-size: 12px;
    font-weight: 700;
}

.a11y-assistant-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
}

.a11y-assistant-input-row input {
    min-width: 0;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #b9c8da;
    border-radius: 10px !important;
    background: #fff;
    color: var(--a11y-ink);
    font-size: 12px;
}

.a11y-assistant-input-row input:focus { border-color: var(--a11y-blue); box-shadow: 0 0 0 3px rgba(7, 91, 216, .12); }

.a11y-assistant-voice,
.a11y-assistant-submit {
    min-height: 45px;
    border: 0;
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 800;
}

.a11y-assistant-voice {
    display: grid;
    width: 45px;
    place-items: center;
    background: #edf3fb;
    color: var(--a11y-blue);
}

.a11y-assistant-voice svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.a11y-assistant-voice.is-listening { background: #fff0f0; color: #c62828; animation: a11yPulse 1s infinite; }
.a11y-assistant-submit { padding: 0 14px; background: var(--a11y-blue); color: #fff; }

.a11y-assistant-answer {
    display: none;
    margin-top: 10px;
    padding: 11px 12px;
    border-left: 3px solid var(--a11y-blue);
    border-radius: 0 8px 8px 0;
    background: var(--a11y-soft);
    color: #30435a;
    font-size: 12px;
    line-height: 1.55;
}

.a11y-assistant-answer.is-visible { display: block; }
.a11y-assistant-answer a { color: var(--a11y-blue); font-weight: 800; text-decoration: underline; }

.a11y-assistant-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }

.a11y-assistant-links a,
.a11y-assistant-links button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 8px 10px;
    border: 1px solid var(--a11y-line);
    border-radius: 10px !important;
    background: #fff;
    color: #263b55;
    font-size: 11px;
    font-weight: 750;
    text-align: left;
}

.a11y-assistant-links a:hover,
.a11y-assistant-links button:hover { border-color: #9fc2f2; background: var(--a11y-soft); color: var(--a11y-blue); }
.a11y-assistant-links span { color: var(--a11y-blue); font-size: 18px; }

.a11y-assistant-shortcut { margin: 17px 0 0; color: #718096; font-size: 10px; text-align: center; }
.a11y-assistant-shortcut kbd { padding: 2px 5px; border: 1px solid #cad5e2; border-radius: 4px; background: #f5f7fa; color: #34455a; box-shadow: none; }
.a11y-assistant-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }

html.a11y-text-lg { font-size: 68.75%; }
html.a11y-text-xl { font-size: 75%; }

html.a11y-readable-text body { line-height: 1.7; }
html.a11y-readable-text p,
html.a11y-readable-text li,
html.a11y-readable-text label,
html.a11y-readable-text .product-title { line-height: 1.75 !important; letter-spacing: .015em; word-spacing: .06em; }

html.a11y-high-contrast body { color: #111; background: #fff; }
html.a11y-high-contrast a:not(.btn):not(.a11y-assistant-launcher) { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
html.a11y-high-contrast input,
html.a11y-high-contrast select,
html.a11y-high-contrast textarea { border: 2px solid #111 !important; }
html.a11y-high-contrast :focus-visible { outline: 4px solid #ffbf00 !important; outline-offset: 3px !important; }

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
}

html.a11y-hover-read .a11y-hover-readable {
    position: relative;
    outline: 3px solid #ffbf00 !important;
    outline-offset: 4px !important;
    border-radius: 4px;
    background-color: rgba(255, 246, 191, .38) !important;
}

@keyframes a11yPanelIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes a11yPulse { 50% { box-shadow: 0 0 0 5px rgba(198, 40, 40, .14); } }

@media (prefers-reduced-motion: reduce) {
    .a11y-assistant-panel.is-opening,
    .a11y-assistant-voice.is-listening { animation: none; }
    .a11y-assistant-launcher { transition: none; }
}

@media (max-width: 575px) {
    .a11y-assistant-launcher { left: 12px; bottom: 12px; width: 52px; padding: 0; justify-content: center; }
    .a11y-assistant-launcher span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
    .a11y-assistant-panel { left: 8px; bottom: 72px; width: calc(100vw - 16px); max-height: calc(100dvh - 82px); border-radius: 18px; }
    .a11y-assistant-header { padding: 19px 56px 17px 18px; }
    .a11y-assistant-header h2 { font-size: 20px; }
    .a11y-assistant-content { padding: 16px; }
    .a11y-assistant-input-row { grid-template-columns: minmax(0, 1fr) auto; }
    .a11y-assistant-submit { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
    .a11y-assistant-tools,
    .a11y-assistant-links { grid-template-columns: 1fr; }
}

@media print {
    .a11y-assistant-launcher,
    .a11y-assistant-panel { display: none !important; }
}
