/* ================================================================
   ACCESSIBILITY TOOLBAR
   ================================================================ */
.a11y-toolbar {
    top: auto;
    left: auto;
    right: 1rem;
    bottom: 8rem;
    z-index: 850;
}

.a11y-toolbar.custom-location {
    top: auto;
    right: 1rem;
    bottom: 8rem;
}

.a11y-toolbar ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(0, 52, 118, 0.12);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0, 32, 78, 0.18);
    backdrop-filter: blur(10px);
}

.a11y-toolbar ul li button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid rgba(0, 52, 118, 0.14);
    border-radius: 50%;
    background: #ffffff;
    color: #003476;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 32, 78, 0.08);
    transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.a11y-toolbar ul li:first-child button,
.a11y-toolbar ul li:last-child button {
    border-radius: 50%;
}

.a11y-toolbar ul li button:hover,
.a11y-toolbar ul li button:focus,
.a11y-toolbar ul li button.active {
    background: #003476;
    color: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 52, 118, 0.24);
    transform: translateY(-1px);
}

.a11y-toolbar .aticon-adjust:before,
.a11y-toolbar .aticon-font:before,
.a11y-toolbar .aticon-tint:before {
    font-size: 1.05rem;
}

.a11y-toolbar button:hover .offscreen,
.a11y-toolbar button:focus .offscreen {
    color: #ffffff;
    background: rgba(0, 52, 118, 0.96);
    border-radius: 0.625rem;
    padding: 0.55rem 0.7rem !important;
    box-shadow: 0 10px 22px rgba(0, 32, 78, 0.28);
    font-size: 0.875rem;
    font-family: "Roboto", sans-serif;
}

.a11y-toolbar button:hover .offscreen,
.a11y-toolbar button:focus .offscreen {
    left: auto;
    right: calc(100% + 0.75rem);
}

.a11y-toolbar.ltr.default button:hover .offscreen,
.a11y-toolbar.ltr.default button:focus .offscreen {
    left: auto;
    right: calc(100% + 0.75rem);
}

.a11y-toolbar.rtl.default button:hover .offscreen,
.a11y-toolbar.rtl.default button:focus .offscreen,
.a11y-toolbar.ltr.reversed button:hover .offscreen,
.a11y-toolbar.ltr.reversed button:focus .offscreen {
    left: auto;
    right: calc(100% + 0.75rem);
}

body.admin-bar .a11y-toolbar {
    bottom: 8.75rem;
}

@media (max-width: 960px) {
    .a11y-toolbar,
    .a11y-toolbar.custom-location {
        right: 0.875rem;
        bottom: 7rem;
    }
}
