
/* Form Group
 ========================================================================== */
.usof-form-group {
	width: 100%;
	}
	.usof-form-group.dragging {
		-webkit-user-select: none;
				user-select: none;
		}
	.usof-form-group .us-bld-editor-dragshadow {
		height: 41px;
		margin: 0 40px;
		}
		.usof-form-group .us-bld-editor-dragshadow:before {
			border-radius: 0;
			}

.usof-form-group-add {
	display: block;
	text-align: center;
	line-height: 2.8em;
	margin: 0 40px;
	padding: 0 .8em;
	cursor: pointer;
	border-radius: 3px;
	background-color: var(--usof-color-gray-2);
	}
.usof-form-group-add:hover {
	background-color: var(--usof-color-gray-5);
	}
	.usof-form-group-add-title {
		display: inline-block;
		vertical-align: top;
		margin: 0 .3em;
		}
	.usof-form-group-add.adding .usof-form-group-add-title {
		opacity: 0;
		}
.usof-form-group-add .usof-preloader {
	transition: none;
	}
.usof-form-group-add.adding .usof-preloader {
	opacity: 1;
	}

.usof-form-group-item {
	position: relative;
	margin-bottom: .6em;
	border-radius: 3px;
	background: var(--usof-color-white);
	box-shadow: var(--usof-box-shadow-small);
	}
	.usof-form-group-item-content {
		display: flex;
		flex-wrap: wrap;
		padding: .5em 0;
		}
.usof-form-group-item.dragged {
	height: 40px;
	padding: 0;
	border: 0;
	background-color: var(--usof-color-gray-5);
	}

.usof-form-group-item-controls {
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	line-height: 32px;
	display: flex;
	visibility: hidden;
	}
.usof-form-group-item:hover .usof-form-group-item-controls {
	visibility: visible;
	}
	.usof-form-group-item-controls > div {
		flex-shrink: 0;
		text-align: center;
		font-size: 12px;
		width: 32px;
		cursor: pointer;
		background-color: var(--usof-color-white);
		}
	.usof-form-group-item-controls > div:hover {
		background-color: var(--usof-color-gray-2);
		}
	.ui-icon_move {
		cursor: ns-resize !important;
		}
	.usof-form-group-item:only-of-type .ui-icon_move {
		display: none;
		}

/* For custom fonts */
.usof-form-group[data-name="custom_font"] .usof-form-group-item {
	box-shadow: none;
	}
	.usof-form-group[data-name="custom_font"] .usof-form-row.type_font {
		padding-top: 0;
		}
	.usof-form-group[data-name="custom_font"] .usof-form-group-item-controls {
		top: .5em;
		right: 40px;
		}

/* For uploaded fonts */
.usof-form-group[data-name="uploaded_fonts"] .usof-form-group-item {
	margin-left: 40px;
	margin-right: 40px;
	}

/* For image sizes */
.usof-form-group[data-name="img_size"] .usof-form-group-item {
	padding: 15px 20px 0;
	margin-left: 40px;
	margin-right: 40px;
	}

/* Accordion Group */
.usof-form-group.type_accordion .usof-form-group-item {
	}
	.usof-form-group.type_accordion .usof-form-group-item-title {
		position: -webkit-sticky;
		position: sticky;
		top: 0;
		z-index: 2;
		line-height: 2.8em;
		min-height: 2.8em;
		font-weight: 600;
		padding: 0 1em;
		cursor: pointer;
		background: var(--usof-color-white);
		}
		.usof-form-group.type_accordion .usof-form-group-item-title:after {
			position: absolute;
			top: 0;
			right: 13px;
			content: '\f0d7';
			font-family: fontawesome;
			font-weight: 900;
			font-size: 16px;
			transition: transform .3s;
			}
	.usof-form-group.type_accordion .usof-form-group-item.active .usof-form-group-item-title {
		color: var(--usof-color-blue-50);
		}
		.usof-form-group.type_accordion .usof-form-group-item.active .usof-form-group-item-title:after {
			transform: rotate(180deg);
			}
	.usof-form-group.type_accordion .usof-form-group-item-content {
		padding-top: 0;
		}

/* Group with Preview */
.usof-form-group.compact .usof-form-group-item {
	margin: 0 40px;
	box-shadow: none;
	}
.usof-form-group.type_accordion.compact .hidden + .usof-form-group-item {
	border-top: none;
	}
	.usof-form-group.type_accordion.compact .usof-form-group-item-controls {
		top: 26.5px;
		right: 25px;
		}
.usof-form-group.type_accordion.compact .usof-form-group-item-title {
	top: 92px;
	font-size: 20px;
	line-height: 26px;
	padding: 12px 0;
	border-top: 1px solid var(--usof-color-gray-5);
	}
	.usof-form-group.type_accordion.compact .usof-form-group-item-title:after {
		top: 28px;
		right: 0;
		font-size: 22px;
		}
.usof-form-group.compact .usof-form-group-item-content {
	margin: 0 -20px;
	padding: 0 0 25px;
	}
	.usof-form-group.compact .usof-form-row {
		padding-left: 20px;
		padding-right: 20px;
		}
	.usof-form-group.compact .usof-form-row:not(.leave_padding) {
		padding-top: 0;
		}
	.usof-form-group.compact .usof-form-row.type_color {
		padding-bottom: 0;
		}

/* For Custom Global Colors */
.usof-form-group[data-name="custom_colors"] {
	margin-top: 1px;
	margin-bottom: 45px;
	}
	.usof-form-group[data-name="custom_colors"] .usof-form-group-item {
		margin: 0 40px 10px;
		box-shadow: none;
		max-width: 840px;
		}
		.usof-form-group[data-name="custom_colors"] .usof-form-group-item-content {
			padding: 0;
			}
			.usof-form-group[data-name="custom_colors"] .usof-form-row {
				width: auto;
				padding: 0;
				}
			.usof-form-group[data-name="custom_colors"] .usof-form-row[data-name="name"] {
				flex-grow: 1;
				padding: 0 10px;
				}
			.usof-form-group[data-name="custom_colors"] .usof-form-row[data-name="slug"] {
				flex-grow: 1;
				}
			.usof-form-group[data-name="custom_colors"] .usof-form-row[data-name="slug"] input {
				font-family: monospace;
				}
	.usof-form-group[data-name="custom_colors"] .usof-form-group-add {
		max-width: 840px;
		}

/* Form Inputs Preview */
.usof-input-preview {
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	font-family: var(--body-font-family, inherit);
	height: 100px;
	padding: 0 20px;
	margin-bottom: 20px;
	border: 2px dotted rgba(0,0,0,0.15);
	}
	.usof-input-preview > * {
		width: calc(50% - 10px) !important;
		}
	.usof-input-preview-select {
		position: relative;
		}
		.usof-input-preview-select:after {
			content: '';
			position: absolute;
			top: 56%;
			transform: translateY(-50%);
			right: 0;
			pointer-events: none;
			border: .4em solid;
			border-left-color: transparent;
			border-right-color: transparent;
			border-bottom-color: transparent;
			border-radius: 2px;
			}
	input.usof-input-preview-elm,
	select.usof-input-preview-elm {
		background: none;
		border-color: transparent;
		border-style: solid;
		transition: all .2s;
		}
	input.usof-input-preview-elm:focus,
	select.usof-input-preview-elm:focus {
		border-color: transparent;
		box-shadow: none;
		outline: none !important;
		}
