/* ============================================================
    * Component - Mobile Menu
============================================================ */

/**
    * Mobile menu component can support multiple levels
    *
    * 1. Background of first level
    * 2. Border between each
    * 3. Padding of each item
    * 4. Color of Links on first Level
*/

// Simple Colors
$JD-bg-color: #455A64 !default;
$JD-text-color: #fff !default;
$JD-border-color: $JD-text-color !default;


.jd-menu {
    display: none;
    position: relative;
	width: 100%;
	background-color: $JD-bg-color;

    ul {
        position: relative;
        left: 0;
        top: 0;
        padding: 0;
        margin: 0;
        list-style-type: none;
    }

        li {
            background: $JD-bg-color;
            margin: 0;
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid $JD-border-color;

            > ul {
                position: absolute;
                left: 100%;
                top: 0;
                width: 100%;
                display: none;
            }
        }
            
            a, span {
                padding: 20px;
                display: inline-block;
                color: $JD-text-color;
                text-decoration: none;
                width: 100%;
            }

            i {
                color: $JD-text-color;
                text-align: right;
                padding-right: 20px;

            }
        

        .hasChild {

            > a {
                width: auto;
            }

        }

}
