.bs23-offscreen-menu {
    --bs23-offscreen-duration: 600ms;
    position: relative;
}

.bs23-offscreen-menu__toggle,
.bs23-offscreen-menu__close {
    appearance: none;
    border: 0;
    font: inherit;
}

.bs23-offscreen-menu__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    background: transparent;
    color: #111;
}

.bs23-offscreen-menu__toggle-icon,
.bs23-offscreen-menu__toggle-icon svg,
.bs23-offscreen-menu__close svg {
    display: block;
}

.bs23-offscreen-menu__overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.4);
    transition:
        opacity var(--bs23-offscreen-duration) ease,
        visibility 0s linear var(--bs23-offscreen-duration);
}

.bs23-offscreen-menu__panel {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 99999;
    width: 320px;
    max-width: 100vw;
    padding: 32px 16px;
    overflow-x: hidden;
    overflow-y: auto;
    visibility: hidden;
    background-color: #fff;
    box-sizing: border-box;
    transition:
        transform var(--bs23-offscreen-duration) ease,
        visibility 0s linear var(--bs23-offscreen-duration);
    will-change: transform;
}

.bs23-offscreen-menu__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bs23-offscreen-menu__panel--left {
    left: 0;
    transform: translateX(-100%);
}

.bs23-offscreen-menu__panel--right {
    right: 0;
    transform: translateX(100%);
}

.bs23-offscreen-menu__close {
    position: absolute;
    top: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    background: transparent;
    color: #111;
    font-size: 24px;
    line-height: 1;
}

.bs23-offscreen-menu__panel--left .bs23-offscreen-menu__close {
    left: 16px;
}

.bs23-offscreen-menu__panel--right .bs23-offscreen-menu__close {
    right: 16px;
}

.bs23-offscreen-menu__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.bs23-offscreen-menu__placeholder {
    margin-top: 48px;
    padding: 16px;
    border: 1px dashed #c4c7ca;
    color: #555;
    text-align: center;
}

.bs23-offscreen-menu.is-open .bs23-offscreen-menu__overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.bs23-offscreen-menu.is-open .bs23-offscreen-menu__panel {
    visibility: visible;
    transform: translateX(0);
    box-shadow: 0 0 65px rgba(0, 0, 0, 0.12);
    transition-delay: 0s;
}

body.bs23-offscreen-menu-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .bs23-offscreen-menu__overlay,
    .bs23-offscreen-menu__panel {
        transition-duration: 0.01ms;
    }
}
