/* Mobile Menus > Toggle Nav */
.mobile-toggle-nav {
	display: none;
	background: #fff;
	z-index: 9999;
	height: auto;
	line-height: inherit;
	margin-top: 0;
	
	// Absolutely positioned
	&.wpex-togglep-absolute {
		position: absolute;
		top: 100%;
		left: 0;
		width: 100%;
		max-height: 500px;
		overflow-y: auto;
	}

	// Links
	a {
		position: relative;		
		color: #555;
		display: block;
		padding: 10px 0;
		border-top: 1px solid $borders__color-light;
		
		&:hover {
			color: #000;
			text-decoration: none;
		}

		.fa {
			margin-right: 10px;
		}

	}

	// Hide dropdown arrows
	.nav-arrow {
		display: none;
	}

	// Dropdowns
	.menu-item-has-children {

		& > a {
			padding-right: 60px;
		}

		ul {
			display: none;
			
			a {
				padding-left: 12px;

				&:before {
					content:"-";
					margin-right: 10px;
				}

			}

			ul {
				
				a {
					padding-left: 22px;

					&:before {
						content:"--";
						margin-right: 10px;
					}

				}

				ul {
				
					a {
						padding-left: 32px;

						&:before {
							content:"---";
							margin-right: 10px;
						}

					}

					ul {
				
						a {
							padding-left: 42px;
						}

					}

				}

			}

		}

	}

	// Dropdown toggle
	.wpex-open-submenu {
		position: absolute;
		height: 100%;
		width: 50px;
		right: 0;
		top: 0;
		cursor: pointer;
		text-align: center;
		font-size: 1.2em;
		text-align: right;
	
		&:before {
			content: "\f107";
			position: absolute;
			height: 30px;
			line-height: 30px;
			width: 50px;
			top: 50%;
			right: 0;
			margin-top: -15px;
			font-family: "FontAwesome";
			opacity: 0.8;
		}

	}

	.active > a > .wpex-open-submenu:before {
		content: "\f106";
	}

	// Fixed top mobile nav
	.wpex-mobile-toggle-menu-fixed_top & {
		 background: $background__dark;
	
		a {
			border-color: #333;
			color: #aaa;

			&:hover {
				color: #fff;
			}

		}

	}

	// Search
	#mobile-menu-search {
		display: block;
		padding-bottom: 20px;
		position: relative;
	}

}

.mobile-toggle-nav-search {

	input[type="search"] {
		width: 100%;
		padding: 0 50px 0 10px;
		height: 45px;
	}

	.searchform-submit {
		position: absolute;
		top: 0;
		right: 0;
		padding: 0;
		height: 45px;
		line-height: 45px;
		width: 45px;
		@include border-radius( 0 );
	}

}

// Hide search toggle
.mobile-toggle-nav-ul li.search-toggle-li {
	display: none;
}
