.ube-mt-5 {
	margin-top: 2rem;
}

.ube-meta-box-info {
	.label {
		font-weight: 500;
		font-size: 14px;
	}

	.description {
		font-size: 13px;
		color: #777;
	}
}

.ube-meta-box-content {
	input[type='text'], textarea {
		max-width: 100%;
		width: 280px;
	}
}

#ube_meta_box_list_gallery {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-ms-flex-flow: wrap;
	flex-flow: wrap;

	li.item {
		position: relative;
		float: left;
		width: 90px;
		height: 90px;
		border: 3px solid #ccc;
		margin: 10px 10px 10px 0;
		cursor: move;

		.remove-image {
			top: 0px;
			font-size: 15px;
			right: 5px;
			color: #fff;
			font-weight: 700;
			position: absolute;
		}

		&:before {
			content: "";
			position: absolute;
			width: 100%;
			height: 100%;
			top: 0;
			background-color: #000;
			opacity: 0;
		}

		&:hover:before {
			-webkit-transition: opacity .3s;
			-o-transition: opacity .3s;
			transition: opacity .3s;
			opacity: 0.5;
		}
	}

	img {
		width: 100%;
	}

	.item-empty {
		display: none;
	}

	.item-add {
		float: left;
	}
}

.ube-admin-row {
	display: flex;
	flex-wrap: wrap;
	margin-left: -12px;
	margin-right: -12px;
}

.ube-admin-col {
	padding-left: 12px;
	padding-right: 12px;
	max-width: 100%;
	flex: 1 1 100%;
	flex-wrap: wrap;
}

@for $i from 1 through 12 {
	.ube-admin-col-#{$i} {
		max-width: percentage($i/12);
		flex: 1 1 percentage($i/12);
	}
}

.ube-admin-wrap {
	font-size: 16px;

	* {
		box-sizing: border-box;
	}
}

.ube-admin-d-flex {
	display: flex !important;
}

.ube-admin-h2 {
	font-size: 24px !important;
}

.ube-admin-description {
	color: #7b7b7b;
	font-style: italic;
	margin-top: -10px;
}

.ube-admin-toggle {
	input {
		opacity: 0;
		position: absolute;
		z-index: -1;

		&:checked + div {
			background-color: #00aeb8;
			color: #fff;

			span {
				left: 19px;
			}
			&:before {
				content: attr(data-on);
			}
		}
	}

	div {
		position: relative;
		background-color: #d8d5d5;
		color: #fafafa;
		display: flex;
		font-weight: 700;
		height: 27px;
		width: 44px;
		line-height: 24px;
		border-radius: 16px;
		white-space: nowrap;
		text-transform: uppercase;
		transition: all 0.3s;

		&:before,
		&:after {
			transition: all 0.3s;
			position: absolute;
			opacity: 0;
			visibility: hidden;
		}

		&:before {
			content: attr(data-off);
			left: 50%;
			transform: translateX(-50%);
			bottom: 34px;
			padding: 8px 15px;
			background-color: #000;
			color: #fff;
			font-size: 12px;
			line-height: 1;
			border-radius: 5px;
		}

		&:after {
			left: 26px;
			transform: translateX(-100%);
			padding: 0;
			content: '';
			position: absolute;
			bottom: 29px;
			border-top: solid 5px #000;
			border-left: solid 5px transparent;
			border-right: solid 5px transparent;
		}
	}

	&:hover {
		div {
			&:after,
			&:before {
				opacity: 1;
				visibility: visible;
			}
		}
	}

	span {
		position: absolute;
		width: 21px;
		height: 21px;
		border-radius: 50%;
		background-color: currentColor;
		left: 3px;
		top: 3px;
		transition: all 0.3s;
	}
}

.ube-admin-box {
	display: flex;
	flex: 1 1 auto;
	padding: 24px;
	margin-bottom: 24px;
	background-color: #f6f6f6;
	border: solid 1px #f6f6f6;
	border-radius: 5px;
	box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.1);

	img {
		max-width: 100%;
		display: block;
	}

	p {
		font-size: 16px;
		margin-bottom: 1em;
	}

	h4 {
		font-size: 24px;
		margin-top: 6px;
		margin-bottom: 1em;
	}

	svg {
		width: 32px;
		height: 32px;
		color: #0071a1;
	}

	&-icon {
		flex: 0 0 55px;
		max-width: 55px;
	}

	&-right {
		margin-left: auto;
	}

	a.button {
		font-size: 16px;
		line-height: 42px;
		padding: 0 24px;
	}
}

.ube-admin-box-theme {
	display: flex;
	align-items: flex-start;

	> a {
		margin-right: 20px;
		flex: 0 0 80px;
	}

	h5 {
		margin: 5px 0;
		font-size: 1.25em;

		a {
			text-decoration: none;
		}
	}


}

.ube-admin-el-item {
	background-color: #fff;
	display: flex;
	align-items: center;
	margin-bottom: 12px;
	border: solid 1px #eee;
	border-radius: 10px;
	padding: 15px 20px;
	position: relative;
	box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
	transition: all 0.3s;

	&:hover {
		border-color: #007cba;
		box-shadow: 0 0 15px 0 rgba(0, 124, 186, 0.1);

		.ube-admin-el-item-link {
			display: flex;
			height: auto;
			opacity: 1;
			transform: translateX(0);
		}
	}

	h4 {
		margin: 0 auto 0 0;
		font-size: 18px;
	}

	a {
		text-decoration: none;
		padding: 3px 5px 5px;
		color: currentColor;

		&:hover {
			color: #007cba;
		}
	}

	&-link {
		display: flex;
		overflow: hidden;
		opacity: 0;
		transform: translateX(50%);
		transition: opacity 0.5s, transform 0.5s;
		margin-right: 20px;
	}
}

.ube-admin-tab-welcome {
	padding-top: 24px;
}