#block-azmartinique-sliding-rightpart {
    position: absolute;
    right: .5rem;
    z-index: 9999;
    top: 0;
    padding-top: .5rem;
}


/* visually-hide but keep input in DOM (more reliable than display:none/hidden) */
#openSidebarMenu {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}

/* open button */
.sidebar-open-button {
    cursor: pointer;
    display: inline-flex;
}

/* overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
    z-index: 1000;
    cursor: pointer;
}

/* sidebar */
#animated-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 1001;
    /* must be above overlay if you want sidebar on top */
    background: var(--bs-title-blue);
    color: var(--bs-white);
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.region-animated-sidebar>div {
    margin: 3rem 0;
}

/* close button inside */
.close-sidebar {
    cursor: pointer;
    align-self: flex-end;
    padding: 0 1rem 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
}

.sidebar-open-button svg:last-of-type {
    width: 20px;
    margin-left: 1rem;
}

.sidebar-open-button svg {
    width: 22px;
    height: 32px;
    fill: var(--bs-white);
}

#animated-sidebar h2 {
    margin-bottom: 1rem;
}

/* WHEN CHECKED — show sidebar & overlay */
#openSidebarMenu:checked~.sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

#openSidebarMenu:checked~#animated-sidebar {
    transform: translateX(0);
}

/* optional: prevent background scroll (modern browsers) */
:root {
    /* keep this optional */
}

body:has(#openSidebarMenu:checked) {
    overflow: hidden;
}