%menu-icon {
	font-size: 1.2em;
	display: flex;
	align-content: center;
	align-items: center;
	justify-content: center;

	width: 50px;
	height: 50px;

	@include query-above($palm) {
		width: 60px;
		height: 60px;
	}

	@include query-above($sidebar-jump) {
		width: 35px;
		height: 50px;
		font-size: 0.85em;
	}

	svg {
		display: block;
		width: 24px;
		height: 24px;
	}

	.icon {
		margin: 0 auto;
	}
}

.menu-open,
.menu-close,
.sidebar-open,
.right-close-button {
	@extend %menu-icon;
}

.menu-toggle {
	float: left;
	border-right: 1px solid $light;

	@include query-above($sidebar-jump) {
		display: none;
	}
}

.menu-open {
	svg {
		width: 16px;
		height: 16px;

		@include query-above($palm) {
			width: 20px;
			height: 20px;
		}
	}
}

.menu-close,
.search-toggle,
.right-close-button {
	svg {
		width: 20px;
		height: 20px;

		@include query-above($palm) {
			width: 24px;
			height: 24px;
		}
	}
}

.search-toggle {
	float: right;
	color: $dark;

	@include query-above($sidebar-jump) {
		float: left;
	}
}

.sidebar-open {
	float: right;
	border-left: 1px solid $light;

	@include query-above($sidebar-jump) {
		display: none;
	}

	svg {
		width: 20px;
		height: 20px;

		@include query-above($palm) {
			width: 28px;
			height: 28px;
		}
	}
}





// Close icons
%close-icon {
	position: absolute;
	top: 0;
	left: 0;

	z-index: 1200;

	opacity: 0;
	pointer-events: none;
	transition: all .3s ease-in-out;
}

.menu-close, .right-close-button {
	@extend %close-icon;
}

.nav-is-open .menu-close {
	opacity: 1;
	pointer-events: auto;
}

.right-close-button {
	left: auto;
	right: 0;

	@include query-above($sidebar-jump) {
		padding: rem(16px);
		width: auto;
		height: auto;
	}

	.sidebar-is-open &, .search-is-open & {
		opacity: 1;
		pointer-events: auto;
	}
}





.overlay-shadow {
	content: "";
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 990;
	width: 100%;
	height: 100%;
	background: black;
	opacity: 0;
	transition: all .3s ease-in-out;
	pointer-events: none;

	.overlay-is-open & {
		opacity: 0.45;
		pointer-events: auto;
	}

	.is--ie-le10 & {
		display: none;
	}

	.is--ie-le10 .overlay-is-open & {
		display: block;
	}
}