#menu-posts-wiloke-menu-item {
	display: none;
}

.wil-table {
	width: 100%;
	height: 100%;
	display: table;

	> .wil-table__cell {
		display: table-cell;
		vertical-align: middle;
		width: 100%;
	}
}

// Nav Menu
.wil-menu-item-setting {
    cursor: pointer;
    font-size: 11px;
    border: 1px solid #f1f1f1;
    padding: 4px 7px;
    font-weight: normal;
    margin-left: 4px;
    display: inline-block;
    line-height: 1;
    border-radius: 1px;
    background-color: #ddd;
    border-radius: 2px;
    transition: all 0.3s ease;

    &:hover, &.active {
    	background-color: #008ec2;
    	border-color: #008ec2;
    	color: #fff;
    }
}

// Panel
.metabox-menu {
	margin-bottom: 10px;

	.form-table {
		border-collapse: collapse;

		tr {
			border-bottom: 1px solid #f1f1f1;

			> th {
				text-align: left;
				vertical-align: top;
				font-weight: 600;
				color: #333;

				@media(min-width: 782px) {
					padding: 20px 10px 20px 0px;
				}
			}

			> td {
				padding: 0;

				fieldset {
					padding: 10px 0px;
					border-width: 0;
					margin: 0;

					@media(min-width: 782px) {
						padding: 20px 0px;
					}
				}

				.description {
					margin-top: 5px;

					&.top {
						margin-top: 0;
						margin-bottom: 10px;
					}
				}

				select, 
				input[type="text"], 
				input[type="number"],
				input[type="url"],
				input[type="email"],
				input[type="password"],
				textarea {
					border-radius: 3px;
				}

				select {
					text-transform: capitalize;
					min-width: 160px;
				}

				.wp-picker-active .color-picker {
					display: inline-block !important;
				}

				@media(max-width: 782px) {
					select {
						padding-top: 0;
						padding-bottom: 0;
					}
				}
			}
		}
	}
}

// Icon Dropdown
.wil-icon-select {
	position: relative;
	display: inline-block;
	vertical-align: top;

	&.is-dropdown {

		.wil-icon-dropdown {
			display: block;
		}
	}

	&:after {
		content: '';
		display: block;
		clear: both;
	}
}

.wil-icon-selector {
    height: 40px;
	overflow: hidden;
    border: 1px solid #ededed;
    background-color: #fff;
    display: inline-block;
    float: left;
}

.wil-icon-selected {
    display: block;
    width: 50px;
    height: 100%;
    float: left;
    text-align: center;

    i {
    	color: #404040;
	    line-height: 40px;
	    font-size: 18px;
	    cursor: default;
    }
}

.wil-icon-button {
    width: 39px;
    height: 100%;
    display: block;
    text-align: center;
    cursor: pointer;
    float: left;
    background-color: #f4f4f4;
    border-left: 1px solid #e1e1e1;
    color: #999;

    i {
	    color: #aaa;
    	text-shadow: 0 1px 0 #fff;
	    line-height: 38px;
    	text-align: center;
    }
}

.wil-icon-dropdown {
	border: 1px solid #e5e5e5;
	padding: 5px;
	width: 410px;
	display: none;
	top: calc(100% - 1px);
	background-color: #fff;
	margin-bottom: 20px;
	clear: both;
	max-width: 410px;
}

.wil-icon-search {
	margin-bottom: 5px;
	position: relative;

	&:before {
		content: '\f002';
		font-family: 'FontAwesome';
		color: #ddd;
		position: absolute;
		right: 10px;
		top: 10px;
	}

	.wil-icon-search-input {
		border: 1px solid #ededed;
		border-radius: 0;
		width: 100%;
		background-color: transparent;
		padding: 0 10px;
		height: 40px;

		&:focus {
			outline-width: 0;
		}
	}
}

.wil-icon-list {
	list-style: none;
	padding: 0;
	margin: 0;
	overflow: hidden;
	border: 1px solid #ededed;
	padding: 3px;
	max-height: 210px;
	overflow-x: hidden;
	overflow-y: scroll;
	min-height: 56px;

	li {
		float: left;
		width: 56px;
		height: 42px;
		border: 1px solid #ededed;
		margin: 3px;
		cursor: pointer;
		text-align: center;
		line-height: 40px !important;

		&:hover {
			background-color: #f1f1f1;
		}

		&.selected {
			background-color: #00aeee;
			color: #fff;
			border-color: #00aeee;
		}
	}
}

// Media
.wil-media-buttons {
	clear: both;

	.button {
		margin-right: 3px;
	}
}

.wil-media-screen {
	padding: 0;
	margin: 0;
	overflow: hidden;

	li {
		float: left;
		width: 70px;
		height: 70px;
		background-repeat: no-repeat;
		background-size: cover;
		margin-right: 10px;
		margin-bottom: 10px;
		border: 1px solid #f1f1f1;
		border-radius: 4px;
		overflow: hidden;
		position: relative;

		span {
			position: absolute;
			width: 30px;
			height: 30px;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			margin: auto;
			cursor: pointer;
			display: none;

			&:after, &:before {
				content: '';
				width: 100%;
				height: 2px;
				top: 0;
				left: 0;
				bottom: 0;
				right: 0;
				margin: auto;
				background-color: red;
				position: absolute;
			}

			&:before {
				transform: rotate(-45deg);
			}

			&:after {
				transform: rotate(45deg);
			}
		}

		&:hover {
			span {
				display: block;
			}
		}
	}
}

.wil-nav-setting {

	.wil-menu-select {
		display: none;

		&.active {
			display: block;
		}
	}

	dl {
		overflow: hidden;

		dt {
			float: left;
			width: 20%;
		}

		dd {
			overflow: hidden;
		}
	}
}

.loading {
	position: relative;

	&:before {
		content: '';
		width: 20px;
		height: 20px;
		border: 1px solid #008ec2;
		border-right-color: transparent;
		border-radius: 50%;
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
		display: block;
		z-index: 11;
		animation: spine 1s linear infinite;
	}

	&:after {
		content: '';
		top: 0;
		left: 0;
		z-index: 10;
		width: 100%;
		height: 100%;
		display: block;
		position: absolute;
		background-color: rgba(#fff, 0.5);
	}
}


@keyframes spine {
	0% {
		transform: rotate(0)
	}

	100% {
		transform: rotate(359deg);
	}
}

// Builder
.wiloke-mega-menu-builder {
	position: fixed;
	top: 46px;
	left: 10px;
	right: 0;
	bottom: 0;
	z-index: 10;
	background-color: #fff;
	display: none;
	box-shadow: 0 1px 1px rgba(0,0,0,.04);

	@media(min-width: 783px) {
		left: 58px;
		top: 32px;
	}

	@media(min-width: 961px) {
		left: 180px;
	}

	&.wiloke-mega-menu-builder-open {
		display: block;
	}

	&:after {
		content: '';
		display: block;
		clear: both;
	}
}

.wiloke-mega-menu-builder-actions {
	padding: 0 15px; 
	height: 60px;
	text-align: right;
	border-bottom: 1px solid #e4e4e4;
	background-color: #f1f1f1;
	box-sizing: border-box;
	display: flex;
	width: 100%;
	justify-content: flex-end;
	align-items: center;
}

.wiloke-mega-menu-builder-tab {
	float: left;
	width: 200px;

	@media(min-width: 782px) {
		width: 250px;
	}

	.wiloke-mega-menu-builder-name {
		padding: 0 20px;
		font-size: 16px;
		width: 100%;
		height: 60px;
		align-items: center;
		display: flex;
		box-sizing: border-box;
	}

	a, span {
		display: block;
	    text-decoration: none;
	    background-color: #fff;
	    padding: 20px 20px;
	    color: #000;
	    font-weight: 600;
	    border-bottom: 1px solid #f1f1f1;

	    &.active {
	    	background-color: #f1f1f1;
	    }

	    &:focus, &:active {
	    	outline-width: 0;
	    	box-shadow: none;
	    }
	}
}

.wiloke-mega-menu-builder-group {
	height: 100%;
	background-color: #f1f1f1;
	margin-left: 200px;
	overflow: hidden;

	@media(min-width: 782px) {
		margin-left: 250px;
	}
}

.wiloke-mega-menu-builder-form {
	height: 100%;
}

.wiloke-mega-menu-builder-content {
	height: calc(100% - 60px);
	position: relative;

	> iframe {
		width: 100%;
		height: 100%;
	}
}

.wiloke-mega-menu-builder-panel {
	position: absolute;
	opacity: 0;
	visibility: hidden;
	padding: 10px;
	min-height: calc(100% - 60px);
	box-sizing: border-box;
	
	&.active {
		display: block;
		opacity: 1;
		visibility: visible;
		position: relative;
	}
}

.wiloke-mega-menu-builder-settings {
    border-top-width: 0;

    .metabox-menu {
    	padding: 0 20px;
    	margin: 0;
    	background-color: #fff;
    	border: 1px solid #e5e5e5;
    	box-shadow: 0 1px 1px rgba(0,0,0,.04);

    	.form-table {
    		margin-top: 0;
    	}

    	tbody tr:last-child {
    		border-bottom-width: 0;
    	}
    }
}