/*
======================================== 
ch/form-tinymce/css/form-tinymce.scss 
======================================== 
*/
.form-field.tinymce {
	&.has-error {
		span.error {
			display: block;
		}
	}
}

.mce-container {
	.error {
		&.alert {
			padding: 15px;
			margin-bottom: 20px;
			border: 1px solid transparent;
			border-radius: 4px;
			display: block;
			margin: 20px 20px 0;

			&.alert-danger {
				background-color: #f2dede;
				border-color: #ebccd1;
				color: #a94442;
			}
		}
	}
}





/*
======================================== 
     ch/form/css/form-hint.css 
======================================== 
*/
.form-field {
	$hint-button-color: #eb2116; 
	.form-hint {
		margin-left: 5px;
		display: inline-block;
		position: relative;
		
		.icon {
			display: block;
			width: 16px;
			height: 16px;
			border-radius: 3px;
			background-color: $hint-button-color;
			color: #fff;
			font-size: 13px;
			line-height: 16px;
			text-align: center;
			
			&:before {
				content: "?";
			}
		}
		.content {
			display: none;
			position: absolute;
			left: 25px;
			top: -6px;
			background-color: $hint-button-color;
			border-radius: 3px;
			font-size: 12px;
			color: #fff;
			padding: 5px;
			white-space: nowrap;
			box-shadow: 0 1px 5px rgba(0,0,0,0.25);
			z-index: 9;
			
			&:before {
				content: ' ';
				display: block;
				position: absolute;
				left: -5px;
				top: 15px;
				margin-top: -4px;
				width: 0;
				height: 0;
				border-top: 4px solid transparent;
				border-bottom: 4px solid transparent; 
				border-right: 5px solid $hint-button-color; 
			}
		}
		
		&:hover {
			.content {
				display: block;
				width: auto;
				height: auto;
			}
		}
	}
}




/*
======================================== 
ch/form/css/form-lang-tabs.css 
======================================== 
*/
div.form-lang-tabs {
	ul {
		list-style-type: none;
		padding-left: 0;
		
		li {
			display: inline;
			margin-right: 20px;
			
			&.active {
				font-weight: bold;
			}
			&.error {
				text-decoration: underline;
			}
		}
	}
}




/*
======================================== 
          ch/form/css/form.css 
======================================== 
*/
form .form-field.invisible {
	display: none;
}
.form .form-field.textarea div {
    height: auto;
}





/*
======================================== 
ch/form/css/formfield-autocomplete.css 
======================================== 
*/
ul.ui-autocomplete {
	border-radius: 0;
	background-color: #fff;
	background-image: none;
	border: 1px solid #aaa;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: normal;
	color: #000;
	line-height: 16px;
	margin: 0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.2);
	
	.ui-menu-item { 
		padding: 0;
		border: 0;
		
		a {
			border-radius: 0;
			border: 0;
			background-color: #fff;
			background-image: none;
			padding: 7px;
			margin: 0;
			
			&:hover, &.ui-state-active, &.ui-state-focus, &.ui-state-hover {
				background-image: none;
				background-color: rgba(0,0,0,0.05);
				padding: 7px;
				margin: 0;
				border: 0;
			}
		}
	}
	
	.ui-autocomplete-category {
		border-radius: 0;
		padding: 7px 7px;
		margin: 0;
		font-size: 18px;
		text-shadow: 0 2px 4px rgba(0,0,0,0.1);
		background-color: rgba(0,0,0,0.04);
		color: rgba(0,0,0,0.75);
		
		a:hover {
			border: 0;
			margin: 0;
			padding: 7px;
		}
	}
}




/*
======================================== 
ch/form/css/formfield-combobox.css 
======================================== 
*/
.ui-autocomplete.ui-front {
	z-index: 1000;
}
.custom-combobox {
	width: 100%;
	
	input {
		border-radius: 0;
		background-color: #fff;
		background-image: none;
		border: 1px solid #aaa;
		font-family: Arial, sans-serif;
		font-size: 13px;
		font-weight: normal;
		color: #000;
		height: 16px;
		line-height: 16px;
		padding: 7px;
		width: calc(100% - 50px);
		display: inline-block;
		vertical-align: top;
		margin: 0;
		border-right: 0;
	}
	
	a.custom-combobox-toggle {
		border-radius: 0;
		background-color: #fff;
		background-image: none;
		width: 33px;
		height: 30px;
		display: inline-block;
		vertical-align: top;
		margin: 0;
		border-color: #aaa;
		
		&:hover {
			border-color: #666;
		}
	}
}





/*
======================================== 
ch/form/css/formfield-rating.scss 
======================================== 
*/
.form-field.rating {
  .rate {
    cursor: pointer;
    &.active, &.selected {
      color: gold;
    }
    &.inactive {

    }
  }
}



