.emsm-wrapper {
    --emsm-panel-width: 84%;
    --emsm-duration: 420ms;
    --emsm-z-index: 99999;
    position: relative;
}

.emsm-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.emsm-open-toggle,
.emsm-close-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
    outline: none;
}

.emsm-open-toggle:hover,
.emsm-open-toggle:focus,
.emsm-close-toggle:hover,
.emsm-close-toggle:focus {
    background: transparent;
    outline: none;
    box-shadow: none;
}

.emsm-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--emsm-z-index) - 1);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--emsm-duration) ease, visibility var(--emsm-duration) ease;
}

.emsm-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(var(--emsm-panel-width), 100vw);
    max-width: 100vw;
    z-index: var(--emsm-z-index);
    overflow: hidden;
    visibility: hidden;
    transition: transform var(--emsm-duration) cubic-bezier(.22, .61, .36, 1), visibility var(--emsm-duration) ease;
    will-change: transform;
}

.emsm-slide-right .emsm-panel {
    right: 0;
    transform: translateX(105%);
}

.emsm-slide-left .emsm-panel {
    left: 0;
    transform: translateX(-105%);
}

.emsm-wrapper.is-open .emsm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.emsm-wrapper.is-open .emsm-panel {
    transform: translateX(0);
    visibility: visible;
}

.emsm-panel-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.emsm-close-toggle {
    position: absolute;
    top: 45px;
    right: 42px;
    z-index: 2;
}

.emsm-nav {
    width: 100%;
}

.emsm-menu,
.emsm-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.emsm-menu {
    display: flex;
    flex-direction: column;
    gap: 44px;
    margin-top: 100px;
}

.emsm-menu li {
    margin: 0;
    padding: 0;
}

.emsm-menu a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color 220ms ease;
    line-height: 1.1;
}

.emsm-menu .is-active > a::after,
.emsm-menu .current-menu-item > a::after {
    content: '';
    position: absolute;
    left: 0;
    top: calc(100% + 30px);
    width: 100%;
    height: 3px;
    background: currentColor;
    pointer-events: none;
}

.emsm-menu .sub-menu {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 18px;
    padding-left: 18px;
}

.emsm-menu .sub-menu a {
    font-size: .72em;
    opacity: .82;
}

.emsm-cta-wrap {
    margin-top: 260px;
}

.emsm-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
    transition: transform 220ms ease, opacity 220ms ease;
}

.emsm-cta:hover {
    transform: translateY(-2px);
    opacity: .92;
}

body.emsm-body-locked {
    overflow: hidden !important;
    touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
    .emsm-panel,
    .emsm-overlay,
    .emsm-cta,
    .emsm-menu a {
        transition: none !important;
    }
}
