.menu {
	&.menu-primary {
		padding: 0;

		.cherry-mega-menu {
			background: none;
			box-shadow: none;
		}
		.cherry-mega-menu-mobile-trigger {
			box-shadow: none;
			text-align: center;
		}
		> label {
			display: none;
		}
	}
}
.menu-items {
	font-size: 0;
	text-align: right;
	position: relative;

	> .menu-item,
	> .cherry-mega-menu-top-item {
		float: none;
		vertical-align: top;
		display: inline-block;
	}   
	&.cherry-mega-menu.mega-menu-direction-vertical {
		width: 100%;

		> .menu-item,
		> .cherry-mega-menu-top-item {
			float: none;
			position: relative;
			display: block;
			z-index: 10;

			> a {
				padding: 10px;
			}
			&.menu-item-has-children {
				div.menu-line {
					display: none;
				}
			}
			&:hover,
			&.cherry-mega-menu-hover {
				z-index: 1000;
			}
			.cherry-mega-menu-sub {
				top: 100% !important;
				left: 0 !important;
				width: 100% !important;
				@include transform(translateY(0));

				.menu-item {
					&.menu-item-has-children {
						a {
							padding: 0;
						}
					}
				}
				.mega-menu-arrow {
					display: none;
				}
				.cherry-mega-menu-sub {
					margin: 0;
					width: 100%;
					position: relative;
					visibility: visible;
					opacity: 1;
					height: 100%;
					padding: 10px 0 0 10px;
					box-shadow: none;
				}
			}
		}
	}
	&.cherry-mega-menu {
		> .menu-item {
			position: static;
		}
	}
	> .menu-item {
		text-transform: uppercase;
		text-align: left;
		margin: 0;		

		&.item-type-standard {
			position: relative;
		}
		> a {
			display: block;
			padding: 40px 10px;
			position: relative;
			z-index: 100;
			text-decoration: none;
			transition: none;
			@include transition(all 0.3s ease-in-out);

			&:before {
				content: '';
				width: 100%;
				height: 100%;
				position: absolute;
				top: 0;
				left: 0;
				background: #f2f2f2;
				z-index: -1;
				-webkit-transform: scale(1, 0);
				transform: scale(1, 0);
				@include transition(all 0.3s ease-in-out);
			}
			&:hover {
				text-decoration: none;

				&:before {
					-webkit-transform: scale(1, 1);
					transform: scale(1, 1);
				}
			}
			&:focus,
			&:active {}
		}
		&.cherry-mega-menu-hover,
		&.current-menu-item,
		&.current-page-item,
		&:hover {
			> a {
				&:before {
					-webkit-transform: scale(1, 1);
					transform: scale(1, 1);
				}
			}
		}
		&.menu-item-has-children {
			a {
				position: relative;
				z-index: 100;
			}
			> div.menu-line {
				position: relative;
				width: 100%;
				height: 0;
				pointer-events: none;

				&:before {
					content: '';
					width: 100%;
					height: 0;
					position: absolute;
					bottom: 0;
					left: 0;
					@include opacity(0);
					@include transition(all 0.5s ease-in-out);
				}
			}
			&:hover {
				> div.menu-line {
					&:before {
						height: 6px;
						@include transform(translateY(17px));
						@include opacity(1);
					}
				}
			}
		}
	}
}
.menu-item {
	> .mega-sub {
		@include transform(translateY(16px));
	}
	.mega-sub {
		padding: 25px 0;
		
		.mega-block-title {
			color: $baseWhite;
			font-weight: normal;
			padding: 0 0 5px;
		}
		> .menu-item-widget {
			border-left: 1px solid #484848;

			&.menu-columns-3 {
				&:nth-child(4n+1) {
					border-left: none;
				}
			}
			&.menu-columns-4 {
				&:nth-child(3n+1) {
					border-left: none;
				}
			}
			&.menu-columns-2 {
				&:nth-child(6n+1) {
					border-left: none;
				}
			}
			&.menu-columns-6 {
				&:nth-child(2n+1) {
					border-left: none;
				}
			}
		}
		.cherry-mega-menu-sub-item {
			padding: 10px 30px;

			.menu {
				list-style-type: none;
				padding: 0 0 0 10px;

				li {
					padding: 4px 0;

					a {
						color: #888888;

						&:hover,
						&:active,
						&:focus {
							text-decoration: none;
						}
					}
				}
			}
		}
	}
	> .simple-sub,
	> .sub-menu {
		@include transform(translateY(16px));

		.simple-sub,
		.sub-menu {
			@include transform(translateY(0));
		}
	}
	.cherry-mega-menu-sub.simple-sub,
	.sub-menu {		
		padding: 20px 25px;
		width: 200px;

		.cherry-mega-menu-sub,
		.sub-menu {
			margin-top: -20px;
			margin-left: 25px;
		}
		.menu-item {
			padding: 6px 0;
			float: none;

			a {
				color: #888888;
				margin: 0;
				display: inline;

				&:hover,
				&:active,
				&:focus {
					text-decoration: none;
				}
				i {
					vertical-align: baseline;
				}
			}
		}
	}
	&.menu-item-language {
		position: relative;

		.sub-menu {
			position: absolute;
			visibility: hidden;
			opacity: 0;
			transition: 300ms all;
		}
		&:hover {
			.sub-menu {
				visibility: visible;
				opacity: 1;
			}
		}
	}
}
.simple-menu.menu-items {
	.menu-item {
		.cherry-navigation-arrow & {
			> a::after {
				content: '';
				vertical-align: middle;
				padding-left: 5px;
			}
		}
		&.menu-item-has-children {
			.cherry-navigation-arrow & {
				> a {
					&::after {
						content: '\f347';
					}
				}
			}
		}
		.sub-menu {
			position: absolute;

			.cherry-navigation-arrow & {
				.menu-item {
					> a {
						&::after {
							padding-left: 0;
							content: '';
						}
					}
					&.menu-item-has-children {
						> a {
							&::after {
								content: '\f345';
							}
						}
					}
				}
			}
		}
		> div.menu-line {
			display: none;
		}
	}
}
.menu-primary #menu-primary-items li a, 
.menu-secondary #menu-secondary-items li a {
	text-decoration: none;

	&:hover,
	&:active,
	&:focus {
		text-decoration: none;
	}
}
