/* MoneySaver Accessibility Widget styles */
/* Floating button: vertically centered, attached to the left edge of the screen */
#a11y-widget { position: fixed; top: 50%; left: 0; transform: translateY(-50%); z-index: 99999; font-size: 16px; direction: rtl; }
#a11y-open { width: 56px; height: 64px; border: 0; border-radius: 0 18px 18px 0; background: #1a73e8; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 10px rgba(0,0,0,.3); padding: 0; }
#a11y-open:hover, #a11y-open:focus-visible { background: #1557b0; outline: 3px solid #ffbf47; }
#a11y-open .a11y-icon-ring { width: 40px; height: 40px; border: 2.5px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#a11y-panel { position: absolute; top: 50%; transform: translateY(-50%); left: 62px; width: 250px; background: #fff; color: #111; border: 1px solid #d0d5dd; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.25); padding: 10px; display: flex; flex-direction: column; gap: 6px; }
#a11y-panel[hidden] { display: none; }
#a11y-panel .a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
#a11y-panel .a11y-head strong { font-size: 15px; }
#a11y-close { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 8px; }
#a11y-panel .a11y-row { display: flex; gap: 6px; }
#a11y-panel .a11y-row button { flex: 1; }
#a11y-panel button:not(#a11y-close) { border: 1px solid #d0d5dd; background: #f8fafc; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 14px; text-align: start; }
#a11y-panel button:not(#a11y-close):hover, #a11y-panel button:not(#a11y-close):focus-visible { background: #eef2ff; outline: 2px solid #1a56db; }
#a11y-panel button[aria-pressed="true"] { background: #1a56db; color: #fff; border-color: #1a56db; }
#a11y-panel .a11y-reset { background: #fef2f2; border-color: #fca5a5; }
#a11y-panel .a11y-statement { font-size: 13px; text-align: center; margin-top: 2px; color: #1a56db; }

@media (max-width: 480px) {
    #a11y-panel { width: 220px; }
}

/* --- Effects applied on <html> --- */
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast body * { background-color: #000 !important; color: #ffef00 !important; border-color: #ffef00 !important; }
html.a11y-contrast body a { color: #4dc3ff !important; text-decoration: underline !important; }

html.a11y-grayscale body { filter: grayscale(100%); }

html.a11y-links body a { text-decoration: underline !important; outline: 2px solid #1a56db; outline-offset: 1px; }

html.a11y-no-anim *, html.a11y-no-anim *::before, html.a11y-no-anim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

html.a11y-font body, html.a11y-font body * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .02em; }

/* keep the widget itself usable in contrast mode */
html.a11y-contrast #a11y-widget #a11y-panel, html.a11y-contrast #a11y-widget #a11y-panel * { background-color: #fff !important; color: #111 !important; border-color: #d0d5dd !important; }
html.a11y-contrast #a11y-open { background-color: #1a56db !important; color: #fff !important; }
html.a11y-contrast #a11y-panel button[aria-pressed="true"] { background-color: #1a56db !important; color: #fff !important; }
