.offcanvas-menu {
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 2000000;
    pointer-events: none;
}

.offcanvas-shell {
    background: #fff;
    padding: 50px 20px 20px;
    border-radius: 20px 20px 0 0;

    /*transform: translateY(100%);*/
    opacity: 0;

    transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.3s ease;
    will-change: transform, opacity;
}

.offcanvas-shell.is-dragging {
    transition: none !important;
}

@media (max-width: 450px) {
    .offcanvas-shell {
        padding: 30px 20px 20px;
    }
}

#canvas-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
}

/* POSITION VARIANTS */
.offcanvas-menu.full-height {
    height: 100%;
}

.offcanvas-menu.bottom {
    bottom: 0; left: 0;
}
.offcanvas-menu.bottom .offcanvas-shell {
    transform: translateY(100%);
}

.offcanvas-menu.top {
    top: 0; left: 0;
}
.offcanvas-menu.top .offcanvas-shell {
    transform: translateY(-100%);
}

.offcanvas-menu.left {
    top: 0; left: 0;
}
.offcanvas-menu.left .offcanvas-shell {
    transform: translateX(-100%);
}

.offcanvas-menu.right {
    top: 0; right: 0;
}
.offcanvas-menu.right .offcanvas-shell {
    top: 0; right: 0;
}

/* OPEN STATE */

.offcanvas-menu.open {
    pointer-events: auto;
}
.offcanvas-menu.open .offcanvas-shell {
    transform: translate(0);
    opacity: 1;
}

/* LARGE SCREENS */

@media (min-width: 1600px) {
    .offcanvas-menu.top,
    .offcanvas-menu.bottom {
        max-height: 70%;
    }
}

/* MOBILE */

@media (max-width: 991px) {
    .offcanvas-menu.open.mobile-navigation {
        padding-bottom: 80px;
    }
}

/* OVERLAY */

.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background-color: rgb(80 80 81 / 50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1200;
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* UI DETAILS */

.offcanvas-menu-indicator {
    opacity: 0;
    display: none; /* hidden by default */
    width: 50px;
    height: 5px;
    background-color: #999;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;

    transition: opacity 0.3s ease; /* opacity animates */
}

.offcanvas-menu-indicator.show {
    display: block;
    opacity: 1;
    transition-delay: 0.3s;
}

.offcanvas-menu-indicator.hide {
    opacity: 0;
    transition-delay: 0s;
}

@media (max-width: 450px) {
    .offcanvas-menu-indicator {
        height: 3px;
        top: 12px;
    }
}


.offcanvas-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}
