/* Lightbox Display */
.bb-logic-display-lightbox {
	background: rgba( 255, 255, 255, 0.85 );
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
    overflow: auto;
    padding: 30px;
	z-index: 999999999;
}
.bb-logic-display-lightbox .bb-logic-content {
	background: #FCFCFC;
	box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
	-moz-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
	-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0 7px 30px;
}

/* Main Content */
.bb-logic-content {
	color: #333;
	font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
	margin: 0 auto;
    max-width: 1100px;
	padding: 25px;
}
.bb-logic-heading {
	color: #333;
    font-weight: 600;
    font-size: 20px;
	margin-bottom: 10px;
}
.bb-logic-description {
	margin-bottom: 20px;
}

/* Rule Groups */
.bb-logic-rule-group-rules {
	background: #fff;
	border: 1px solid #DCDCDC;
    padding: 15px;
}
.bb-logic-rule {
    display: flex;
	margin-bottom: 15px;
}

/* Rule Fields */
.bb-logic-rule-fields {
	display: flex;
	width: 100%;
}
.bb-logic-rule-field {
	align-items: center;
	display: flex;
	font-size: 14px;
	margin-right: 10px;
	position: relative;
	width: 95%;
}
.bb-logic-rule-field:last-of-type {
	margin-right: 0;
}

/* Rule Form Inputs */
.bb-logic-rule-field input[type],
.bb-logic-rule-field select {
	width: 100%;
}
.bb-logic-rule-field input[type='checkbox'],
.bb-logic-checkbox-field {
	width: auto;
}
.bb-logic-rule-field {
	.react-select__value-container {
		display: contents;
		.react-select__input {
			input {
				height: auto !important;
			}
		}
	}
}


/* Rule Delete */
.bb-logic-rule-delete {
	align-items: center;
	background: transparent !important;
	border: none !important;
    color: #999;
	cursor: pointer;
	display: flex;
    font-size: 18px;
    line-height: 18px;
	margin-left: 10px;
	padding: 0;
}
.bb-logic-rule-delete:hover {
	background: transparent;
}
.bb-logic-rule-delete:active {
	background: transparent;
}
.bb-logic-rule-delete:focus {
	background: transparent;
}
.bb-logic-rule-delete svg.bb-logic-icon {
	fill: #ccc;
}
.bb-logic-rule-delete:hover svg.bb-logic-icon {
	fill: #d54e21;
}

/* Rule clone */
.bb-logic-rule-clone {
	align-items: center;
	background: transparent !important;
	border: none !important;
    color: #999;
	cursor: pointer;
	display: flex;
    font-size: 18px;
    line-height: 18px;
	margin-left: 10px;
	padding: 0;
}
.bb-logic-rule-clone:hover {
	background: transparent;
	border: none;
}
.bb-logic-rule-clone:active {
	background: transparent;
	border: none;
}
.bb-logic-rule-clone svg.bb-logic-icon {
	fill: #ccc;
}
.bb-logic-rule-clone:hover svg.bb-logic-icon {
	fill: #000;
}

/* Rule drag */
.bb-logic-rule-drag {
	align-items: center;
	background: transparent !important;
	border: none !important;
	color: #999;
	cursor: pointer;
	display: flex;
	font-size: 18px;
	line-height: 18px;
	margin-left: 10px;
	padding: 0;
}
.bb-logic-rule-drag:hover {
	color: #000;
	background: transparent;
	border: none;
}
.bb-logic-rule-drag:active {
	background: transparent;
	border: none;
}
.bb-logic-rule-drag:focus {
	color: #000;
}
.bb-logic-rule-drag svg.bb-logic-icon {
	fill: #ccc;
}
.bb-logic-rule-drag:hover svg.bb-logic-icon {
	fill: #000;
}

/* Rule Group Separator */
.bb-logic-rule-group-separator  {
	padding: 15px;
}
.bb-logic-rule > .bb-logic-rule-group-separator {
	margin-bottom: 15px;
	padding: 0;
}

/* Form Action Buttons */
.bb-logic-buttons {
    display: flex;
	margin-top: 20px;
}
.bb-logic-save {
	margin-right: 10px !important;
}

/* Dark UI */
.fl-builder-ui-skin--dark {
	.bb-logic-content {
		background-color: #191B20 !important;
	}
	.bb-logic-rule-field {
		.react-select__control {
			background-color: #2c333a !important;
		}
		.react-select__menu {
			background-color: #2c333a !important;
			border-color: #a7b1bb !important;
		}
	}

	.react-select__single-value {
		color: #c6cdd6;
	}
	.bb-logic-header,
	.bb-logic-heading{
		color:#b4b9be;
		border-bottom-color: #1d1d1d;
		border-top-color: #1d1d1d;
	}
	.react-select__value-container {
		.react-select__input {
			opacity: 0;
		}
	}
	.bb-logic-rule-group {
		background-color: #22272D !important;

	}
	.bb-logic-rule-group-rules {
		border: none;
	}
	.bb-logic-rule-group-separator {
		background-color: #191B20;
	}
	.react-select__control--isFocused {
		border: none !important;
	}
}


.fl-builder-ui-skin--dark {
	.bb-logic-content *:not(i) {
		color: #a7b1bb !important;
	}
}

/* Responsive Layout */
@media (max-width:768px) {

	.bb-logic-rule {
		margin-bottom: 25px;
	}
	.bb-logic-rule-fields {
		display: block;
	}
	.bb-logic-rule-field {
		margin-bottom: 5px;
	}
}
