.multi-menu-fullscreen {
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10;

    button {
        background-color: transparent;
        border: 0 none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .menu-fullscreen-container {
        position: fixed;
        top: 0;
        bottom: 0;
        right: -100%;
        width: 100%;
        border-left: 1px solid transparent;
        transition: right 0.5s ease-in-out;
        height: 100dvh;
        overflow: scroll;

        &.open {
            right: 0;
        }

        .menu-fullscreen-container-close-container {
            margin-top: 30px;
            margin-left: 30px;
            margin-right: 30px;
            z-index: 1;
            position: relative;

            .js-multi-menu-fullscreen-toggle-close {
                margin-left: auto;
                margin-right: 0;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: flex-end;
                cursor: pointer;
                z-index: 9;

                .button-text {
                    font-weight: bold;
                    text-transform: uppercase;
                    display: block;
                    margin-right: 6px;
                }

                .button-icon {
                    width: 50px;
                    display: block;
                }
            }
        }
    }

    .menu-toggle-container {
        .js-multi-menu-fullscreen-toggle-open {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            margin-left: auto;
            margin-right: 0;
            cursor: pointer;

            .button-text {
                display: block;
                margin-right: 6px;
                font-weight: bold;
                text-transform: uppercase;
            }

            .button-icon {
                width: 50px;
                display: block;
            }
        }
    }

    .menu-fullscreen-container-inner {
        padding: 0;
        margin-top: 50px;
        margin-left: 30px;
        margin-right: 30px;
        margin-bottom: 30px;
        list-style-type: none;

        @media (min-width: 600px) {
            margin-bottom: 60px;
        }
        
        li {
            margin: 0;
            padding: 0;
        }

        .menu-item {
            position: relative;
            margin-top: 5px;

            &:first-child {
                margin-top: 0;
            }

            @media (max-width: 600px) {

                .submenu-list {
                    align-self: end;
                    min-height: 0;
                    transition: visibility 1s;
                    visibility: hidden;
                }

                .submenu-inner-wrapper {
                    display: grid;
                    grid-template-rows: 0fr;
                    overflow: hidden;
                    transition: grid-template-rows 1s;
    
                    .submenu-list {
                        margin: 0;
                        padding: 0;
                        list-style-type: none;
    
                        li {
                            margin-left: 30px;
    
                            &:first-child {
                                margin-top: 10px;
                            }
    
                            &:last-child {
                                margin-bottom: 10px;
                            }
                        }
                    }
                }
    
                .submenu-inner-wrapper.expanded {
                    grid-template-rows: 1fr;
    
                    .submenu-list {
                        visibility: visible;
                    }
                }

                .menu-clickable {
                    display: block;
                    width: 100%;
                    margin: 0;
                    padding: 0;
                    text-align: left;
                    position: relative;
                    cursor: pointer;
                    padding-right: 40px !important;

                    .arrow-toggle {
                        position: absolute;
                        width: 26px;
                        right: 0;
                        top: 0;
                        cursor: pointer;
                        overflow: hidden;

                        svg {
                            transition: all 1s;
                        }
                    }

                    .arrow-toggle.rotate {
                        svg {
                            transform: rotate(180deg);
                        }
                    }

                    .is-button {
                        .arrow-toggle {
                            pointer-events: none;
                        }
                    }
                }

                .menu-item-description {
                    display: none;
                }
            }
        }
    }

    /* On this menu all of the mobile styles are the same as the slideout menu so we only have to override the desktop styles */

    @media (min-width: 600px) {
     
        .menu-fullscreen-container {
            padding-left: 30px;
            padding-right: 30px;

            .menu-fullscreen-container-inner {
                display: flex;
                flex-wrap: wrap;
                margin-top: -30px;

                .menu-item-depth-0 {
                    margin-right: 60px;
                    margin-top: 60px;
                    min-width: 250px;
                    max-width: 300px;

                    &:last-child {
                        margin-right: 0;
                    }
                }

                .menu-item {
                    .menu-item-description {
                        margin-bottom: 2rem;
                        font-size: 1.125rem;
                        line-height: 1.5;
                    }

                    .menu-clickable {
                        text-align: left;
                        text-decoration: none;

                        .arrow-toggle {
                            display: none;
                        }

                        &.depth-0 {
                            font-size: 1.5rem;
                            line-height: 1.25;
                            margin-bottom: 1rem;
                            display: block;
                        }
                    }

                    &.menu-item-depth-1 {
                        .menu-item-description {
                            font-size: 1rem;
                            line-height: 1.5;
                            margin-top: 0.5rem;
                        }
                    }
                }

                .submenu-list {
                    margin: 0;
                    padding: 0;
                    list-style-type: none;

                    &.depth-1,
                    &.depth-2 {
                        margin-left: 30px;
                        margin-top: 0.75rem;
                        margin-bottom: 0.75rem;
                    }

                    .menu-item {
                        margin-top: .75rem;

                        &:first-child {
                            margin-top: 0;
                        }

                        .menu-clickable {
                            font-size: 1.125rem;
                            line-height: 1.5;
                        }
                    }
                }
            }
        }  
    }
}

/* Lock scrolling on the body while the menu is open */

body.mm-lock {
    overflow: hidden;
    height: 100dvh;
}