@CHARSET "ISO-8859-1";

form {
	display:block;
	margin-bottom: 20px;
}


.form .input {
	display:block;
}

form label, fieldset fieldset legend {
	display:block;
	float:none;
	padding-bottom: 1px;	
	font-size:11px;
	color: #000;
}

form legend {
	padding:0 0 10px 0;
}


form input,
form select,
form textarea,
form button {
	padding:5px;
	margin:0;
}

form .input {
	padding:0 0 10px 0;
}

.checkbox {
	padding:4px 0;
	overflow:hidden;
}

.radio fieldset label{
	padding: 1px 0 10px 3px;
}

.radio fieldset legend{
	padding: 1px 0 10px 0;
}

.input .help {
	padding:6px 0;
	font-size:11px;
	color:#000;
	max-width:400px;
}

.input > .selectize-control {
    display: inline-block;
    min-width: 130px;
}

.help.active:hover {
	cursor:pointer;
	text-decoration:underline;
}

.checkbox label, .radio label {
	clear: right;
	float:left;
	padding-left:4px;
	padding-top:1px;
	color:#777;
	font-size:12px;
}

.checkbox input, .radio input {
	float: left;
	clear: left;
}

.checkbox input:checked + label, .radio input:checked + label {
	color: #000;
}

.datetime select {
	clear: none !important;
	float: none;
}

form .input.text input,
form .input.file input,
form .input select,
form .input textarea {
	background-color: #fff;
	border:1px solid #bbb;
	box-shadow: inset 0 1px 3px rgba(0,0,0,.17);
}

form .input select {
	-webkit-appearance: none;
	padding:4px 20px 4px 4px;
	background: #fff url(../img/select-arrow.png) right no-repeat;
}


/* Styling buttons and submits */

form .submit input, form button {
	padding: 5px 12px;
	color: #fff;
	background: #338b4c;
	border: 1px solid #1c6631;
	cursor:pointer;
}

form .submit input:hover, form button:hover {
	background-color: #3a9b56;
}

form .submit input:active, form button:active{
	padding: 6px 12px 4px 12px;
}


/* HasManyThrough Internal Form Styling */

form .hasManyThrough {
	background: #f5f5f5;
	border:1px solid #ccc;
	padding:10px 10px 0 10px;
	margin-bottom:10px;
	display:inline-block;
}

form .hasManyThrough .root {
	float:left;
	clear:left;
}

form .hasManyThrough .root label{
	display: none;
}

form .hasManyThrough .root:first-child label{
	display: block;
}

form .hasManyThrough .input {
	float: left;
	clear: none;
	padding-left:10px;
}

form .hasManyThrough .input select, 
form .hasManyThrough .input input {
	float: left;
	clear: both;
	margin-top:10px;
}

form .hasManyThrough .input select:nth-child(2),
form .hasManyThrough .input input:nth-child(2) {
	margin-top:0;
}

form .hasManyThrough .input:first-child {
	padding-left: 0;
}

form .hasManyThrough .hmt-button {
	margin-top:0px;
	margin-left:10px;
	float:right;
	background-repeat: no-repeat;
	background-position: center;
	padding: 13px 12px;
}

form .hasManyThrough .root:first-child .hmt-button {
	margin-top:11px;
}

form .hmt-button.add {
	background-image: url(../img/hmt-plus.png);
}

form .hmt-button.rem {
	background-image: url(../img/hmt-minus.png);
	background-color: #ac3131;
	border-color: #7c1c1c;
}

form .hmt-button.rem:hover {
	background-color: #c53a3a;
}

/* Error Render */
.form-error {
	outline: 1px solid #d00;
	outline-offset:-1px;
}

form input[type=hidden] {
	float:left;
	display:none !important;
}


/* Address Form Element */

.form .address {
	padding: 10px 10px 0 10px;
	background: #f5f5f5;
	border:1px solid #ccc;
	display: inline-block;
	margin:0 0 10px 0;
}

.input-table {
	width: auto;
	margin-bottom: 10px;
}



/*---- Image Uploader ----*/

#image-uploader {
	position: absolute;
	background: #333;
	width: 290px;
	height: 400px;
	right: 20px;
	top: 41px;
	border-radius: 0 0 3px 3px;
	overflow: hidden;
	box-shadow: 0 2px 3px rgba(0,0,0,.3);
}

#image-uploader.closed {
	height: 32px;
}

#image-uploader .grab-bar {
	padding: 10px;
	background: #444;
	position: absolute;
	bottom: 0;
	width: 270px;
	border-top:1px solid #666;
}

#image-uploader label,
#image-uploader .grab-bar * {
	color: #fff;
}

#image-uploader .grab-bar .expand {
	float: right;
	padding: 10px 16px;
	margin: -10px  -10px -10px 0;
	font-weight: bold;
	background: #555;
	cursor: pointer;
}

#image-uploader .grab-bar .expand:hover {
	background: #777;
}

#image-uploader form {
	padding: 10px;
}

#image-uploader .input.file input {
	width: 254px;
}

#image-uploader form label{
	padding: 5px;
}

.form-comment {
	font-size: 13px;
	padding: 10px;
	margin: 10px 5px;
	border-left: 1px solid #ccc;
	max-width: 680px;
	line-height: 1.4em;
}

.form-comment label {
	font-size: 14px;
	padding-bottom: 4px;
}