.acc-widget,
.acc-widget * {
    box-sizing: border-box;
}

.acc-widget {
    position: fixed !important;
    top: 35%;
    z-index: 2147483647 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    filter: none !important;
    transform: none !important;
    isolation: isolate;
}

.acc-position-right { right: 16px; }
.acc-position-left { left: 16px; }

.acc-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 11px 15px !important;
    background: #121212 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.25) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.acc-toggle:hover,
.acc-toggle:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 35px rgba(0,0,0,.32) !important;
    outline: 3px solid #ffcf33 !important;
    outline-offset: 3px !important;
}

.acc-toggle-icon {
    width: 28px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #121212 !important;
    font-size: 18px !important;
}

.acc-panel {
    position: absolute !important;
    top: 58px;
    width: min(330px, calc(100vw - 32px));
    background: #ffffff !important;
    color: #111111 !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.25) !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    filter: none !important;
}

.acc-position-right .acc-panel { right: 0; }
.acc-position-left .acc-panel { left: 0; }

.acc-panel-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 16px 18px !important;
    background: #f6f6f6 !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

.acc-panel-header h2 {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    color: #111111 !important;
}

.acc-close {
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-size: 24px !important;
    line-height: 1 !important;
    cursor: pointer !important;
}

.acc-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    padding: 14px !important;
    background: #ffffff !important;
}

.acc-actions button,
.acc-statement {
    min-height: 44px !important;
    border-radius: 12px !important;
    border: 1px solid #d9d9d9 !important;
    background: #ffffff !important;
    color: #111111 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-align: center !important;
    transition: background .2s ease, border-color .2s ease, transform .2s ease !important;
}

.acc-actions button:hover,
.acc-actions button:focus-visible,
.acc-statement:hover,
.acc-statement:focus-visible {
    background: #f2f2f2 !important;
    border-color: #111111 !important;
    outline: 3px solid #ffcf33 !important;
    outline-offset: 2px !important;
}

.acc-actions button.acc-active {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #111111 !important;
}

.acc-reset { grid-column: 1 / -1; }

.acc-statement {
    display: block !important;
    margin: 0 14px 14px !important;
    padding: 12px !important;
    text-decoration: none !important;
    background: #ffffff !important;
    color: #111111 !important;
}

html.acc-readable-font body *:not(i):not(.fa):not([class*="icon"]):not(.acc-widget):not(.acc-widget *) {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: .01em !important;
    line-height: 1.65 !important;
}

html.acc-contrast-dark body *:not(img):not(video):not(svg):not(path):not(.acc-widget):not(.acc-widget *) {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}

html.acc-contrast-dark body a:not(.acc-statement) {
    color: #ffff00 !important;
}

html.acc-contrast-light body *:not(img):not(video):not(svg):not(path):not(.acc-widget):not(.acc-widget *) {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

html.acc-grayscale body *:not(.acc-widget):not(.acc-widget *) {
    filter: grayscale(100%) !important;
}

html.acc-underline-links body a:not(.acc-statement) {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

html.acc-highlight-headings body h1,
html.acc-highlight-headings body h2,
html.acc-highlight-headings body h3,
html.acc-highlight-headings body h4,
html.acc-highlight-headings body h5,
html.acc-highlight-headings body h6 {
    outline: 3px solid #ffcf33 !important;
    outline-offset: 4px !important;
}

html.acc-pause-animations body *:not(.acc-widget):not(.acc-widget *) ,
html.acc-pause-animations body *:not(.acc-widget):not(.acc-widget *)::before,
html.acc-pause-animations body *:not(.acc-widget):not(.acc-widget *)::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

html.acc-big-cursor,
html.acc-big-cursor body *:not(.acc-widget):not(.acc-widget *) {
    cursor: crosshair !important;
}

/* Keep the accessibility widget visible and readable in every mode. */
html[class*="acc-"] .acc-widget,
html[class*="acc-"] .acc-widget * {
    filter: none !important;
}

@media (max-width: 600px) {
    .acc-widget {
        top: auto !important;
        bottom: 18px !important;
    }

    .acc-toggle-text { display: none !important; }

    .acc-toggle { padding: 10px !important; }

    .acc-panel {
        top: auto !important;
        bottom: 58px !important;
    }
}
