.ops-top-menu {
    position: relative;
    background-color: $color__ops-white;
    height: 65px;
    border-bottom: 1px solid $color__ops-borderLight;
    box-sizing: border-box;

    .ops-logo {
        display: inline-block;
        height: 35px;

        i {
            font-size: 35px;
            line-height: 35px;
        }
    }

    ul {
        margin: 0;
        padding: 0;

        li {
            margin: 0;
            padding: 0;
            position: relative;

            a {
                display: inline-block;
                text-decoration: none;
                font-size: 20px;
                line-height: 20px;
            }
        }
    }

    nav {
        display: flex;
    }

    ul {
        display: flex;
        justify-content: center;
        align-content: center;

        &.ops-right-menu {
            li {
                display: flex;
                margin: 0 20px;

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

                a {
                    display: flex;
                    align-items: center;
                    color: $color__ops-blueGray;
                    position: relative;
                    height: 65px;
                    transition: $transition__color-linear;

                    i {
                        font-size: 20px;
                        margin-right: 7px;
                    }

                    span {
                        font-size: 14px;
                    }
                }

                //&.selected,
                &:hover {
                    a {
                        color: $color__ops-topMenuHighlight;
                    }
                }

                &.ops-fullscreenBtn {
                    margin: 0;
                    padding: 0 27px;
                    border-left: 1px solid $color__ops-borderLight;

                    span {
                        display: none;
                    }
                }

                .opui-submenu-input[type="checkbox"],
                .ops-submenu-input[type="checkbox"] {
                    width: 100%;
                    height: 65px;
                    position: absolute;
                    z-index: 2;
                    opacity: 0;
                }

                .opui-submenu,
                .ops-submenu {
                    position: absolute;
                    top: 100%;
                    display: none;
                    margin-left: -12px;
                    padding: 6px 46px 6px 24px;
                    z-index: 1000;
                    background: #fff;
                    text-align: left;
                    box-shadow: 0px 13px 11px -8px rgba(56, 79, 134, 0.1);

                    li {
                        display: block;
                        margin: 0;
                        padding: 0;

                        a {
                            line-height: 46px;

                            span {
                                padding-left: 0;
                            }
                        }
                    }
                }

                .opui-submenu-input:checked ~ .opui-submenu,
                .ops-submenu-input:checked ~ .ops-submenu {
                    display: flex;
                    flex-direction: column;
                }
            }
        }
    }

    input.ops-hamburger-input[type="checkbox"] {
        display: block;
        opacity: 0;
        width: 25px;
        height: 25px;
        position: absolute;
        cursor: pointer;
        z-index: 2;

        &:hover {
            ~ .ops-hamburger-menu .ops-hamburger-bar {
                background-color: $color__ops-black;
            }
        }
    }

    .ops-hamburger-menu {
        position: relative;
        display: none;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-right: 20px;

        .ops-hamburger-bar {
            display: flex;
            width: 25px;
            height: 2px;
            margin-bottom: 5px;
            position: relative;
            background-color: $color__ops-blueGray;
            border-radius: 2px;
            z-index: 1;
            transform-origin: 3px;
            transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                        background-color 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                        opacity 0.55s ease;

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

    .ops-hamburger-input:checked ~ .ops-hamburger-menu span:first-of-type {
        transform: rotate(50grad);
    }

    .ops-hamburger-input:checked ~ .ops-hamburger-menu .ops-hamburger-bar:nth-of-type(2) {
        opacity: 0;
    }

    .ops-hamburger-input:checked ~ .ops-hamburger-menu span:last-of-type {
        transform: rotate(-45deg);
    }
}

@include wp-columnMax() {
    .ops-top-menu ul.ops-right-menu > li > a {
        i {
            margin-right: 0;
        }

        span {
            display: none;
        }
    }
}

@include wp-mobile() {
    html.wp-toolbar body.wp-admin.ops_isFullScreen {
        margin-top: -46px;
    }

    .ops-top-menu {
        .ops-hamburger-menu {
            display: flex;
        }

        .ops-hamburger-input:checked ~ ul.ops-right-menu {
            display: flex;
        }

        ul.ops-right-menu {
            display: none;
            position: absolute;
            width: 100%;
            top: 100%;
            background-color: white;
            right: 0;
            z-index: 1;
            flex-direction: column;
            border-top: 1px solid $color__ops-borderLight;
            box-shadow: 0 4px 7px -5px rgba(56, 79, 134, 0.1);
            padding: 10px 0;
            transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);

            li {
                display: flex;
                flex-direction: column;
                margin: 0 20px;
                width: 100%;

                .ops-submenu {
                    position: static;
                    top: 0;
                    margin-left: 20px;
                    padding: 0;
                    z-index: 1000;
                    background: #fff;
                    text-align: left;
                    box-shadow: none;
                    border-bottom: none;
                }

                &.ops-fullscreenBtn {
                    padding: 0;
                    margin: 0 20px;
                    border-left: none;

                    span {
                        display: flex;
                    }

                    i {
                        margin-right: 15px;
                    }
                }

                a {
                    height: 45px;

                    span {
                        display: flex;
                    }

                    i {
                        margin-right: 15px;
                    }
                }
            }
        }
    }
}
