#main-menu-wrap {
    display: none !important;
}

#chm-mobilenav,
#mobilenav-open,
#mobilenav-close {
    position: fixed !important;
    right: calc(2rem - 0px) !important;
    top: calc(2rem - 2px) !important;
    border-radius: 0 !important;
    border: 2px solid #fff;
    outline: none !important;
}

body.admin-bar #chm-mobilenav,
body.admin-bar #mobilenav-open,
body.admin-bar #mobilenav-close {
    top: calc(2rem - 2px + 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar #chm-mobilenav,
    body.admin-bar #mobilenav-open,
    body.admin-bar #mobilenav-close {
        top: calc(2rem - 2px + 46px) !important;
    }
}

#mobilenav-open,
#mobilenav-close {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(5rem + 4px) !important;
    height: calc(5rem + 4px) !important;
}

#mobilenav-open {
    z-index: 9999997;
    opacity: 1;
    pointer-events: all;
    background-color:  #fff !important;
    transition: opacity 0.4s;
}

#mobilenav-close {
    z-index: 9999999;
    background-color: transparent !important;
    opacity: 0;
    pointer-events: none;
    border-color: transparent;
    width: 5rem !important;
    height: 5rem !important;
    right: 2rem !important;
    top: 2rem !important;
    transition: opacity 0.4s background-color 0.4s;
}

#chm-mobilenav {
    z-index: 9999998;
    background-color: #000 !important;
    opacity: 1;
    display: block !important;
    transition: transform 0.4s;
    transform-origin: calc(100% - 2.5rem) 2.5rem;
    transform: scale(0);
    padding: 1rem 0;
    max-height: calc(100vh - 4rem);
	overflow: auto;
}

#mobilenav-open:after,
#mobilenav-close:after {
    position: relative !important;
    padding: 0 !important;
    font-size: 2rem !important;
}

#mobilenav-open:after {
    color: #000 !important;
}

#mobilenav-close:after {
    color: #fff !important;
}

.mobilenav-is-open #mobilenav-open {
    opacity: 0;
    pointer-events: none;
}

.mobilenav-is-open #mobilenav-close {
    opacity: 1;
    pointer-events: all;
    background-color: transparent !important;
}

.mobilenav-is-open #chm-mobilenav {
    transform: scale(1);
}

@media(min-width: 1032px) {
    #chm-mobilenav,
    #mobilenav-open {
        right: calc(((100vw - 1032px) / 2) + 2rem - 2px) !important;
    }

    #mobilenav-close {
        right: calc(((100vw - 1032px) / 2) + 2rem) !important;
    }
}

@media(max-width: 500px) {
    #chm-mobilenav,
    #mobilenav-open {
        right: calc(1rem - 2px) !important;
    }

    #mobilenav-close {
        right: 1rem !important;
    }
}
