.offcanvas-menu {
    position: fixed;
    background-color: #ffffff;
    z-index: 2000000;
    padding: 50px 20px 20px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
    overflow-y: auto;
    visibility: hidden;

    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    will-change: transform, visibility;
}

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

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

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

.offcanvas-menu.right {
    top: 0;
    right: 0;
    height: 100%;
    width: 70%;
    transform: translateX(100%);
}

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

.offcanvas-menu.open {
    transform: translate(0);
    visibility: visible;
}

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

.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;
}

.offcanvas-menu-indicator {
    width: 50px;
    height: 5px;
    background-color: #999;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

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