/* iconpicker */
.bt_bb_iconpicker {
	margin-top: 5px;
	.bt_bb_iconpicker_select {
		height: 36px;
		border: 1px solid #ddd;
		margin-top: 5px;
		background-color: #fff;
		cursor: pointer;
		box-shadow: inset 0 1px 2px rgba(0,0,0,.07);
		position: relative;
		i {
			position: absolute;
			top: 0px;
			right: 0px;
			margin: 0px;
			line-height: 36px;
			width: 36px;
			color: #ddd;
			text-align: center !important;
			opacity: 1;
		}
		i.fa-angle-down {
			opacity: 1 !important;
			color: #333;
		}
		.bt_bb_iconpicker_clear {
			right: 36px;
			color: #777;
			display: none;
			&:hover {background-color: rgba(0,0,0,.05);}
		}
		.bt_bb_icon_preview {
			display: inline-block;
			width: 36px;
			height: 36px;
			font-size: 20px;
			position: relative;
			vertical-align: top;
		}
		.bt_bb_iconpicker_select_text {
			display: inline-block;
			line-height: 36px;
		}
	}
	.bt_bb_iconpicker_filter_container {
		margin-top: 5px;
		display: none;
	}
	.bt_bb_iconpicker_icons {
		margin-top: 5px;	
		border: 1px solid #ddd;
		background-color: #fff;
		height: 350px;
		overflow-x: hidden;
		overflow-y: auto;
		display: none;
		.bt_bb_iconpicker_title {
			padding: 0.8em 0.6em;
			font-size: 1.1em;
			line-height: 1.2;
			text-transform: uppercase;
			text-align: center;
			background: $(accentBright);
			color: $(contrastFontColor);
		}
		.bt_bb_icon_preview {
			padding: 0.3em;
			box-sizing: border-box;
			transition: 150ms ease all;
			&:hover {
				border: 1px solid rgba(0,0,0,.1);
				transform: scale(2.25);
				background: #FFF;
				color: #000;
				z-index: 1;
			}
		}
	}
	.bt_bb_icon_preview {
		display: inline-block;
		width: 6.25%;
		height: 2em;
		font-size: 2em;
		position: relative;
		vertical-align: top;
		cursor: pointer;
		border-radius: 5px;
		border: 1px solid transparent;
		&.bt_bb_icon_preview_fa {
			font-family: FontAwesome;
		}
		&.bt_bb_icon_preview_s7 {
			font-family: Icon7Stroke;
		}
		&:before {
			content: attr(data-icon-code);
			position: absolute;
			left: 50%;
			top: 50%;
			transform: translate(-50%,-50%);
			line-height: 0px;
			font-size: 0.9em;
		}			
	}
}

/* colorpicker */

.bt_bb_colorpicker {
	.wp-picker-container {
		margin-top: 5px;
		a {margin-bottom: 0px;}
	}
}

/* preview */

.bt_bb_preview {
	font-weight: normal;
}

.bt_bb_preview_image {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-size: cover;
	vertical-align: top;
	transition: all 0.1s;
	&:hover {
		transform: scale(2);
	}
}


#bt_bb_dialog {
	.wp-picker-open + .wp-picker-input-wrap {
		display: inline-block;
		margin: 0;
		input.bt_bb_color_picker.wp-color-picker {
			width: 7em;
			display: inline-block;
			height: auto;
			padding: 0.3em 1.1em;
			margin: 0 0 -10px;
			&[style*="block"] {display: inline-block !important;}
		}
	}
}

/* checkbox group */
#bt_bb_dialog {
	.bt_bb_dialog_content {
		.bt_bb_dialog_item[data-type="checkbox_group"] {
			label {
				margin-right: 1em;
				&:last-of-type {
					margin-right: 0;
				}
			}
		}
	}
}

/* Checkbox for responsive element */
.bt_bb_dialog_item[data-param_name="responsive"] {
	label {
		display: inline-block;
		position: relative;
		margin-right: 2em !important;
		input[type=radio], input[type=checkbox] {
			position: absolute;
			right: 0;
			bottom: 1.75em;
			margin: 0;
		}
		input[type=radio]:checked + span:before, input[type=checkbox]:checked + span:before {
			opacity: 0.3;
		}
		span {
			display: inline-block;
			width: 100%;
			text-align: center;
			&:before {
				font-family: bold-builder;
				font-size: 3em;
				display: block;
				opacity: 1;
				transition: opacity 200ms ease;
			}
		}
		&:nth-of-type(1) {
			span:before {
				content: "\e95b";
			}
		}
		&:nth-of-type(2) {
			span:before {
				content: "\e95c";
			}
		}
		&:nth-of-type(3) {
			span:before {
				content: "\e95d";
			}
		}
		&:nth-of-type(4) {
			span:before {
				content: "\e95e";
			}
		}
		&:nth-of-type(5) {
			span:before {
				content: "\e95f";
			}
		}
	}
}

.bt_bb_iconpicker_widget_container {
	margin-top: 1em;
}

.bt_bb_iconpicker_widget_container .bt_bb_filter {
	width: 100%;
}

.bt_bb_iconpicker_widget_container {
	.bt_bb_iconpicker .bt_bb_iconpicker_icons .bt_bb_icon_preview {
		width: 20%;
		&:hover {
			transform: scale(1.5);
		}
	}
}