/*
	VARIABLES
*/
:root {
	--c-white: 		#fcfdfa;
	--c-primary:	#de6e4b;
	--c-secundary:	#7fd1b9;
	--c-error:		#F4436C;
}

/*
	_FONTS
*/

/*
	RESET
*/
fieldset {
	border: 1px solid #ccc;
}

/*
	ELEMENTOS COMUNES
*/
	/* checkbox switch */
	.switch-container {
		width: 48px;
		padding-left: 10px;
	}
	.switch {
		position: relative;
		display: inline-block;
		width: 38px;
		height: 20px;
		margin-bottom: 0;
	}
		.switch input {
			opacity: 0;
			width: 0;
			height: 0;
		}
	.slider {
		position: absolute;
		cursor: pointer;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		border-radius: 10px;
		background-color: #ccc;
		transition: .4s;
	}
		.slider:before {
			position: absolute;
			content: "";
			height: 16px;
			width: 16px;
			left: 2px;
			bottom: 2px;
			background-color: white;
			border-radius: 50%;
			transition: .4s;
		}
		input:focus + .slider {
			box-shadow: 0 0 0 1px #2196F3;
		}
		input:checked + .slider:before {
			transform: translateX(18px);
		}

/* TEMPLATE SELECTOR */
#TEMPLATE_FORM {
	margin-top: 20px;
}

.template-selection {
	display: table;
}
	.template-selection img {
		border: 1px solid #000;
	}

/* #CONFIG {
	display: none;
} */

.config-container {
	max-width: 960px;
	margin: auto;
}

.template-orientation {
	width: auto;
}
.template-config {
	position: relative;
	width: 100%;
	height: 0;
	padding-top: 56.25%;
	overflow: hidden;
	margin-bottom: 2em;
	outline: 1px solid #000;
	background-size: contain;
	background-repeat: no-repeat;
}
	.template-config input[type=text],
	.template-config textarea {
		position: absolute;
		padding: .1em .2em;
		background: rgba(255,255,255,0.25);
		border: 1px solid #7a6563;
		color: #fff;
		transition: all .2s ease-in-out;
	}
	.template-config input[type=text]:focus,
	.template-config textarea:focus {
		background: none;
		border-color: #fff !important;
		outline: none;
	}
	.required {
		border: 2px solid var(--c-error);
	}

.validation {
	min-height: 1px;
	margin-top: 40px;
	margin-bottom: 20px;
}
	.validation p {
		margin-top: 20px;
		margin-bottom: 0;
		color: var(--c-error);
		font-size: 1.25em;
		font-weight: 500;
	}
	.validation p + p {
		margin-top: 5px;
	}


.extra-fields {
	overflow: hidden;
}
.fields-img {
	float: right;
	margin-left: 120px;
}
.fields-desc_config {
	float: left;
	margin-right: 120px;
}
.img-preview {
	position: absolute;
	transform: translate(-50%, -50%);
	border: 1px solid #000;
	background: #fff url(../img/select-file.gif) no-repeat center center;
	background-size: contain;
	cursor: pointer;
	transition: all .2s ease-in-out;
}

/*
	VERTICAL PREVIEW
*/
.config-container.vertical {
	max-width: 540px;
}
.vertical .template-config {
	padding-top: 177.777%;
}


/*
	TEMPLATE SPECIFIC STYLES
*/
.img-preview {
	top: 50%;
	left: 73.5%;
	width: 46.5625%;
	height: 58%;
}