/* Custom checkboxes */
// http://blog.karenmenezes.com/2014/nov/1/another-pure-css-checkbox-article/

.checkbox-custom, .radio-custom {
	opacity: 0;
	position: absolute;   
}

#div.span12 > .checkbox-custom, .checkbox-custom-label, .radio-custom, .radio-custom-label {
	display: inline-block;
	vertical-align: middle;
	margin: 5px;
	cursor: pointer;
	font-weight: normal !important;
}

.checkbox-custom-label, .radio-custom-label {
	position: relative;
}

.radio-custom-label { /* Bold labels only for radio labels */
	font-weight: bold !important;
}

/*radio custom label color changes start*/
.radio-custom-label-info {
	color: #5896cb;
}

.radio-custom-label-success {
	color: #21a521;
}

.radio-custom-label-warning {
	color: #f0b708;
}

.radio-custom-label-danger {
	color: #c91a1a;
}
/*radio custom label color changes end*/

.checkbox-custom + .checkbox-custom-label:before, .radio-custom + .radio-custom-label:before {
	content: '';
	background: #fff;
	border: 2px solid #ddd;
	display: inline-block;
	vertical-align: middle;
	width: 20px;
	height: 20px;
	padding: 2px;
	margin-right: 10px;
	text-align: center;
}

.checkbox-custom[disabled] + .checkbox-custom-label, .radio-custom-disabled + .radio-custom-label {
    cursor: not-allowed;
}

.checkbox-custom[disabled] + .checkbox-custom-label:before, .radio-custom-disabled + .radio-custom-label:before {
    background: darkgrey;
    box-shadow: none!important;
}

.checkbox-custom:checked + .checkbox-custom-label:before {
	box-shadow: inset 0px 0px 0px 4px #fff;
	font-family: 'FontAwesome';
	content: "\f00c";
	font-size: 1.5em;
	color: #2e7cbe;
}

.checkbox-custom:checked + .checkbox-custom-label.muted:before {
	box-shadow: inset 0px 0px 0px 4px #fff;
	font-family: 'FontAwesome';
	content: "\f00c";
	font-size: 1.5em;
	color: #999999;
}

.radio-custom + .radio-custom-label:before {
	border-radius: 50%;
}

.radio-custom:checked + .radio-custom-label:before {
	background: #2e7cbe;
	box-shadow: inset 0px 0px 0px 4px #fff;
}

/*radio custom button color changes start*/
.radio-custom-info:checked + .radio-custom-label:before {
	background: #5896cb;
}

.radio-custom-success:checked + .radio-custom-label:before {
	background: #21a521;
}

.radio-custom-warning:checked + .radio-custom-label:before {
	background: #f0b708;
}

.radio-custom-danger:checked + .radio-custom-label:before {
	background: #c91a1a;
}
/*radio custom button color changes end*/

.checkbox-custom:focus + .checkbox-custom-label, .radio-custom:focus + .radio-custom-label {
	outline: 1px solid #ddd; /* focus style */
}

.checkbox-custom-green:checked + .checkbox-custom-label:before {
	background: #21a521 !important;
}

.checkbox-custom-red:checked + .checkbox-custom-label:before {
	background: #c91a1a !important;
}

.checkbox-custom, .radio-custom {
	display: none;
}