/* Certificate template editor */
#edr-crt-template:after {
	clear: both;
	content: '';
	display: table;
}

#edr-crt-template .image {
	border: 1px solid #ddd;
	float: left;
	margin: 0 0 1em;
	overflow: auto;
}

#edr-crt-template .image > div {
	background: #f5f5f5;
	height: 842px;
	position: relative;
	width: 595px;
}

#edr-crt-template .image img {
	height: 100%;
	position: absolute;
	top: 0;
	width: 100%;
}

#edr-crt-template .image .box {
	background: #fff;
	border: 1px solid #999;
	text-align: center;
	word-break: break-word;
	z-index: 10;
}

#edr-crt-template .image .box .feedback {
	background: #fff;
	border: 1px solid #999;
	display: block;
	font-size: 12px;
	line-height: 18px;
	opacity: 0;
	padding: 0 5px;
	position: absolute;
	right: -1px;
	top: -1px;
}

#edr-crt-template .blocks,
#edr-crt-template .buttons {
	clear: both;
	max-width: 842px;
}

#edr-crt-template .blocks label {
	display: block;
	font-weight: 600;
	margin: 0 0 5px;
}

#edr-crt-template .content,
#edr-crt-template .font-size,
#edr-crt-template .align {
	margin-top: 15px;
}

#edr-crt-template input[type="text"],
#edr-crt-template textarea {
	vertical-align: middle;
	width: 100%;
}

/* Portrait */
#edr-crt-template.portrait .blocks,
#edr-crt-template.portrait .buttons {
	clear: none;
	margin-left: 634px;
}

@media (max-width: 1339px) {
	#edr-crt-template.portrait .blocks,
	#edr-crt-template.portrait .buttons {
		margin-left: 0;
	}
}
