.bsm-menu-wrap {
    --bsm-bg: #f8f4ef;
    --bsm-text: #171717;
    --bsm-muted: #4a4a4a;
    --bsm-line: #ddd5cc;
    background: var(--bsm-bg);
    box-sizing: border-box;
    font-family: inherit;
    height: 90vh;
    max-height: 90dvh;
    margin: 0 !important;
    overflow: hidden;
    padding: 0 !important;
    position: relative;
    width: 350px;
}

.bsm-menu-close {
    height: 24px;
    position: relative;
    width: 24px;
}

.bsm-menu-panel {
    background: var(--bsm-bg);
    box-sizing: border-box;
    color: var(--bsm-text);
    height: 100%;
    max-height: 90dvh;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.bsm-menu-header {
    align-items: center;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    min-height: 58px;
    padding: 0 16px;
}

.bsm-menu-tabs {
    align-items: center;
    display: flex;
    gap: 26px;
    min-height: 48px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 32px;
    scrollbar-width: none;
    white-space: nowrap;
}

.bsm-menu-tabs::-webkit-scrollbar {
    display: none;
}

.bsm-menu-tab {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--bsm-muted);
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    padding: 0 0 12px;
    position: relative;
}

.bsm-menu-tab.is-active {
    color: var(--bsm-text);
}

.bsm-menu-tab.is-active::after {
    background: var(--bsm-text);
    bottom: 0;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    right: 0;
}

.bsm-menu-close {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    grid-column: 1;
    padding: 0;
}

.bsm-menu-close::before,
.bsm-menu-close::after {
    background: var(--bsm-text);
    content: "";
    height: 1.5px;
    left: 2px;
    position: absolute;
    top: 11px;
    width: 24px;
}

.bsm-menu-close::before {
    transform: rotate(45deg);
}

.bsm-menu-close::after {
    transform: rotate(-45deg);
}

.bsm-menu-brand {
    font-size: 18px;
    font-weight: 700;
    grid-column: 2;
    justify-self: center;
    line-height: 1.2;
    overflow-wrap: anywhere;
    text-align: center;
}

.bsm-menu-screen {
    bottom: 0;
    box-sizing: border-box;
    left: 0;
    opacity: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 44px 32px 48px;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 106px;
    transform: translateX(18px);
    transition: opacity 180ms ease, transform 180ms ease;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bsm-menu-screen::-webkit-scrollbar {
    display: none;
}

.bsm-menu-screen.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.bsm-menu-title {
    color: var(--bsm-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    margin: 0 0 24px;
}

.bsm-menu-title__link {
    color: inherit;
    text-decoration: none;
}

.bsm-menu-title__link:hover,
.bsm-menu-title__link:focus {
    color: var(--bsm-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.bsm-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bsm-menu-list .bsm-menu-list {
    margin-top: 30px;
}

.bsm-menu-list__item {
    margin: 0 0 13px;
    padding: 0;
}

.bsm-menu-link {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--bsm-text);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 16px;
    gap: 20px;
    justify-content: space-between;
    letter-spacing: 0;
    line-height: 1.25;
    padding: 0;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.bsm-menu-link__arrow {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    opacity: 1;
    transform: translateX(0);
    transition: opacity 160ms ease, transform 160ms ease;
}

.bsm-menu-link--button:hover .bsm-menu-link__arrow,
.bsm-menu-link--button:focus .bsm-menu-link__arrow {
    opacity: 1;
    transform: translateX(4px);
}

.bsm-menu-link:hover,
.bsm-menu-link:focus {
    color: var(--bsm-muted);
    outline: none;
    text-decoration: none;
}

.bsm-menu-link:focus-visible,
.bsm-menu-back:focus-visible,
.bsm-menu-close:focus-visible,
.bsm-menu-tab:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.bsm-menu-back {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--bsm-muted);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    gap: 12px;
    line-height: 1.2;
    margin: -10px 0 30px;
    padding: 0;
}

.bsm-menu-empty {
    color: #b00020;
    font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
    .bsm-menu-screen,
    .bsm-menu-link__arrow {
        transition: none;
    }
}
