
/* 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;
	inset-inline-end: 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);
		}
	.usof-form-group-item-controls .ui-icon_move {
		cursor: move !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;
		inset-inline-end: 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: 1.4em;
		min-height: 2.8em;
		font-weight: 600;
		padding: .7em 1em;
		padding-inline-end: 32px;
		cursor: pointer;
		background: var(--usof-color-white);
		}
		.usof-form-group.type_accordion .usof-form-group-item-title:after {
			position: absolute;
			top: 0;
			inset-inline-end: 0;
			content: '\f0d7';
			font-family: fontawesome;
			font-weight: 900;
			line-height: 2.8em;
			text-align: center;
			width: 32px;
			transition: transform .3s;
			transform: scale(1.2);
			}
	.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) scale(1.2);
			}
	.usof-form-group.type_accordion .usof-form-group-item-content {
		padding-top: 0;
		}

/* Group with Preview */
.usof-form-group.with_preview .usof-form-group-item {
	margin: 0 40px;
	box-shadow: none;
	}
.usof-form-group.type_accordion.with_preview .hidden + .usof-form-group-item {
	border-top: none;
	}
	.usof-form-group.type_accordion.with_preview .usof-form-group-item-controls {
		top: 26.5px;
		inset-inline-end: 20px;
		}
	.usof-form-group.type_accordion.with_preview .usof-form-group-item-title {
		top: 92px;
		padding: 12px 0;
		font-weight: normal;
		border-top: 1px solid var(--usof-color-gray-5);
		color: inherit !important;
		}
		.usof-form-group.type_accordion.with_preview .usof-form-group-item-title:after {
			top: 12px;
			font-size: 18px;
			line-height: 60px;
			width: auto;
			}
.usof-form-group.with_preview .usof-form-group-item-content {
	margin: 0 -20px;
	padding: 0 0 25px;
	}
	.usof-form-group.with_preview .usof-form-row {
		padding-left: 20px;
		padding-right: 20px;
		}
	.usof-form-group.with_preview .usof-form-row:not(.leave_padding) {
		padding-top: 0;
		}
	.usof-form-group.with_preview .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;
		}

/* Extra Class Preview */
.usof-preview-class {
	position: absolute;
	top: 0;
	inset-inline-end: 0;
	font-size: 11px;
	font-family: monospace;
	color: var(--usof-color-gray-30);
	cursor: text;
	}
.usof-preview-class:hover {
	color: inherit;
	}

/* Field Styles Preview */
.usof-input-preview {
	display: flex;
	align-items: center;
	gap: 20px;
	font-family: var(--body-font-family, inherit);
	font-size: var(--body-font-size, 1rem);
	min-height: 60px;
	max-height: 20vh;
	}
	.usof-input-preview-select {
		position: relative;
		}
	.usof-input-preview-radio,
	.usof-input-preview-checkbox {
		display: flex;
		align-items: center;
		gap: 6px;
		}
		.usof-input-preview-select:after {
			content: '';
			position: absolute;
			top: calc( var(--inputs-height, 2em) / 2 + var(--inputs-border-width, 1px) );
			inset-inline-end: 0;
			font-size: var(--inputs-font-size, inherit);
			margin: -.2em calc( var(--inputs-padding, .6em) + var(--inputs-border-width, 1px) );
			color: var( --inputs-text-color );
			pointer-events: none;
			border: .4em solid;
			border-left-color: transparent;
			border-right-color: transparent;
			border-bottom-color: transparent;
			border-radius: 2px;
			}
	.usof-input-preview input[type=text] {
		width: auto !important;
		}
	.usof-input-preview input[type=checkbox],
	.usof-input-preview input[type=radio] {
		-webkit-appearance: none;
		appearance: none;
		vertical-align: top;
		flex-shrink: 0;
		text-align: center;
		font-size: var(--inputs-font-size, inherit);
		line-height: min( 60px, var(--inputs-checkbox-size, 1.5em) );
		height: min( 60px, var(--inputs-checkbox-size, 1.5em) );
		width: min( 60px, var(--inputs-checkbox-size, 1.5em) );
		min-height: 0 !important;
		padding: 0 !important;
		margin: 0 !important;
		box-sizing: content-box;
		}
		.usof-input-preview input[type=checkbox]:before {
			float: none;
			visibility: hidden;
			content: '\f00c';
			font-family: fontawesome;
			font-weight: 900;
			vertical-align: top;
			height: auto;
			width: auto;
			margin: 0;
			}
	.usof-input-preview input[type=radio] {
		border-radius: 50% !important;
		}
		.usof-input-preview input[type=radio]:before {
			visibility: hidden;
			content: '';
			display: block;
			height: 36%;
			width: 36%;
			margin: 32%;
			border-radius: inherit;
			background: currentColor;
			}
		.usof-input-preview input:checked::before {
			visibility: visible;
			}
	.usof-input-preview input,
	.usof-input-preview select {
		font-family: var( --inputs-font-family, inherit );
		font-size: min( 30px, var( --inputs-font-size, inherit ) );
		font-weight: var( --inputs-font-weight, inherit );
		letter-spacing: var( --inputs-letter-spacing, inherit );
		text-transform: var( --inputs-text-transform, inherit );
		border-radius: var( --inputs-border-radius, 0px );
		background: var( --inputs-background, transparent );
		border-color: var(--inputs-border-color, currentColor);
		color: var( --inputs-text-color, inherit );
		box-shadow: var( --inputs-box-shadow, none ) !important;
		border-width: var(--inputs-border-width, 1px);
		border-style: solid;
		transition: all 0.2s;
		max-width: 200px;
		}
	.usof-input-preview select:hover {
		color: var( --inputs-text-color, inherit );
		}
	.usof-input-preview input[type=text],
	.usof-input-preview select {
		min-height: min( 80px, var(--inputs-height, 2em) );
		line-height: min( 80px, var(--inputs-height, 2em) );
		padding: 0 min( 30px, var(--inputs-padding, .6em) );
		}
	.usof-input-preview select {
		padding-inline-end: min( 60px, var(--inputs-padding, .6em) * 2 + .8em );
		}
	.usof-input-preview input:focus,
	.usof-input-preview select:focus {
		background: var( --inputs-focus-background, transparent );
		border-color: var( --inputs-focus-border-color, currentColor );
		color: var( --inputs-focus-text-color, inherit );
		box-shadow: var( --inputs-focus-box-shadow, none ) !important;
		outline: none !important;
		}

/* Button Styles Preview */
.usof-btn-preview {
	display: flex;
	align-items: center;
	font-family: var(--body-font-family, inherit);
	min-height: 60px;
	max-height: 20vh;
	cursor: pointer;
	}
	.usof-btn {
		text-align: center;
		line-height: 1.2; /* fallback value */
		padding: .8em 1.8em; /* fallback value */
		position: relative;
		transform: translateZ(0); /* fix fo Safari */
		transition-property: all;
		transition-duration: var(--btn-transition-duration, .3s);
		-webkit-tap-highlight-color: rgba(0,0,0,0);
		}
	.usof-btn.hov_fade,
	.usof-btn.hov_slide,
	.usof-btn.hov_slideBottom,
	.usof-btn.hov_slideLeft,
	.usof-btn.hov_slideRight {
		overflow: hidden;
		}
		.usof-btn::before {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			border-radius: inherit;
			border-width: var(--btn-border-width, 0px);
			border-style: solid;
			border-color: inherit;
			border-image: inherit;
			transition: inherit;
			}
		.usof-btn-label {
			display: block;
			position: relative;
			z-index: 1;
			}
		.usof-btn.with_border_animation .usof-btn-inner::after,
		.usof-btn::after {
			content: '';
			position: absolute;
			top: 0;
			left: 0;
			right: 0;
			bottom: 0;
			border-radius: inherit;
			transition: inherit;
			background: var(--btn-hover-background, transparent);
			}

/* Border gradient animation */
.usof-btn.with_border_animation {
	contain: paint;
	padding: 0 !important;
	background: none !important;
	}
	.usof-btn.with_border_animation::after {
		display: none !important;
		}
	.usof-btn.with_border_animation::before {
		top: 50%;
		aspect-ratio: 1;
		scale: 1.2;
		translate: 0 -50%;
		transition: none;
		border: none;
		animation: btnGradientRotate var(--border-animation-duration, 3s) linear infinite;
		}
	.usof-btn.with_border_animation.play_on_hover:not(:hover)::before,
	.usof-btn.with_border_animation.pause_on_hover:hover::before {
		animation-play-state: paused;
		}
	.usof-btn.with_border_animation .usof-btn-inner {
		display: inline-block;
		vertical-align: top;
		position: relative;
		z-index: 1;
		padding: .8em 1.8em; /* fallback value */
		margin: var(--btn-border-width, 0px);
		border-radius: inherit;
		background: var(--btn-background, #fff);
		transition-duration: inherit;
		transition-timing-function: inherit;
		}
	.no-touch .usof-btn:hover .usof-btn-inner {
		background: var(--btn-hover-background, #fff);
		}

@keyframes btnGradientRotate {
	0% {
		transform: translateZ(0) rotate(0);
	}
	100% {
		transform: translateZ(0) rotate(360deg);
	}
}

/* Fade */
.usof-btn.hov_fade .usof-btn-inner::after,
.usof-btn.hov_fade::after {
	opacity: 0;
	transition-property: opacity;
	}
.usof-btn.hov_fade:hover .usof-btn-inner::after,
.usof-btn.hov_fade:hover::after {
	opacity: 1;
	}

/* Slide from Top */
.usof-btn.hov_slide .usof-btn-inner::after,
.usof-btn.hov_slide::after {
	bottom: auto;
	height: 0;
	transition-property: height;
	}
.usof-btn.hov_slide:hover .usof-btn-inner::after,
.usof-btn.hov_slide:hover::after {
	height: 100%;
	}

/* Slide from Bottom */
.usof-btn.hov_slideBottom .usof-btn-inner::after,
.usof-btn.hov_slideBottom::after {
	top: auto;
	height: 0;
	transition-property: height;
	}
.usof-btn.hov_slideBottom:hover .usof-btn-inner::after,
.usof-btn.hov_slideBottom:hover::after {
	height: 100%;
	}

/* Slide from Left */
.usof-btn.hov_slideLeft .usof-btn-inner::after,
.usof-btn.hov_slideLeft::after {
	right: auto;
	width: 0;
	transition-property: width;
	}
.usof-btn.hov_slideLeft:hover .usof-btn-inner::after,
.usof-btn.hov_slideLeft:hover::after {
	width: 100%;
	}

/* Slide from Right */
.usof-btn.hov_slideRight .usof-btn-inner::after,
.usof-btn.hov_slideRight::after {
	left: auto;
	width: 0;
	transition-property: width;
	}
.usof-btn.hov_slideRight:hover .usof-btn-inner::after,
.usof-btn.hov_slideRight:hover::after {
	width: 100%;
	}

/* Scale Up */
.usof-btn.hov_scaleUp .usof-btn-inner::after,
.usof-btn.hov_scaleUp::after {
	transform: scale(0);
	transition-property: transform;
	}
.usof-btn.hov_scaleUp:hover .usof-btn-inner::after,
.usof-btn.hov_scaleUp:hover::after {
	transform: scale(1);
	}
.usof-btn.hov_scaleUp:not(:hover) .usof-btn-inner::after,
.usof-btn.hov_scaleUp:not(:hover)::after {
	transition-timing-function: ease;
	}

/* Scale Down */
.usof-btn.hov_scaleDown .usof-btn-inner,
.usof-btn.hov_scaleDown {
	background: var(--btn-hover-background, transparent);
	}
.usof-btn.hov_scaleDown .usof-btn-inner::after,
.usof-btn.hov_scaleDown::after {
	transform: scale(1);
	transition-property: transform;
	background: var(--btn-background, transparent);
	}
.usof-btn.hov_scaleDown:hover .usof-btn-inner::after,
.usof-btn.hov_scaleDown:hover::after {
	transform: scale(0);
	}
.usof-btn.hov_scaleDown:not(:hover) .usof-btn-inner::after,
.usof-btn.hov_scaleDown:not(:hover)::after {
	transition-timing-function: ease;
	}

/* Circle */
.usof-btn.hov_circle::after {
	inset-inline-end: auto;
	width: var(--btn-height, 3em);
	border-radius: 50%;
	transition-property: background, width, border-radius;
	background: var(--btn-background, transparent);
	}
.usof-btn.hov_circle:hover::after {
	width: 100%;
	border-radius: inherit;
	}

/* Text Hover Styles */
.usof-btn.hovText_slideTop:hover .usof-btn-label {
	animation:
		btnTextStart_slideTop calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_slideTop calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_slideTop {
	100% {
		transform: translate3d(0,105%,0);
		opacity: 0;
	}
}
@keyframes btnTextEnd_slideTop {
	0% {
		transform: translate3d(0,-100%,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

.usof-btn.hovText_slideBottom:hover .usof-btn-label {
	animation:
		btnTextStart_slideBottom calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_slideBottom calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_slideBottom {
	100% {
		transform: translate3d(0,-105%,0);
		opacity: 0;
	}
}
@keyframes btnTextEnd_slideBottom {
	0% {
		transform: translate3d(0,100%,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

.usof-btn.hovText_slideLeft:hover .usof-btn-label {
	animation:
		btnTextStart_slideLeft calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_slideLeft calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_slideLeft {
	100% {
		transform: translate3d(50%,0,0);
		opacity: 0;
	}
}
@keyframes btnTextEnd_slideLeft {
	0% {
		transform: translate3d(-50%,0,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

.usof-btn.hovText_slideRight:hover .usof-btn-label {
	animation:
		btnTextStart_slideRight calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_slideRight calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_slideRight {
	100% {
		transform: translate3d(-50%,0,0);
		opacity: 0;
	}
}
@keyframes btnTextEnd_slideRight {
	0% {
		transform: translate3d(50%,0,0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0,0,0);
		opacity: 1;
	}
}

.usof-btn.hovText_scaleUp:hover .usof-btn-label {
	animation:
		btnTextStart_scaleUp calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_scaleUp calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_scaleUp {
	100% {
		transform: scale(1.5);
		opacity: 0;
	}
}
@keyframes btnTextEnd_scaleUp {
	0% {
		transform: scale(.2);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}

.usof-btn.hovText_scaleDown:hover .usof-btn-label {
	animation:
		btnTextStart_scaleDown calc( var(--btn-transition-duration) / 1.5) forwards,
		btnTextEnd_scaleDown calc( var(--btn-transition-duration) / 1.5) forwards calc( var(--btn-transition-duration) / 1.5);
	}
@keyframes btnTextStart_scaleDown {
	100% {
		transform: scale(0.2);
		opacity: 0;
	}
}
@keyframes btnTextEnd_scaleDown {
	0% {
		transform: scale(1.5);
		opacity: 0;
	}
	100% {
		transform: scale(1);
		opacity: 1;
	}
}
