/* Custom checkbox and radio styles */

.fields p
{
	position: relative;
	overflow: hidden;
	float: left;
}
.fields td p
{
	float: none !important;
}

label + p,
input + p
{
	margin-top: 5px;
}

p:not(.s) > input
{
	padding: 0;
	margin: 0;
	height: 16px;
	width: 16px;
	float: left;
	position: absolute;
	left: 0;
	opacity: 0;
}
td p:not(.s) > input
{
	float:none !important;
}
p:not(.s) > label 
{
	float: left;
	line-height: 16px;
	color: #cecece;
	padding: 0 0 0 25px;
	width: 150px;
	margin-bottom: 15px;
}
td p:not(.s) > label 
{
	width: 5px !important;
	float:none;
}

p:not(.s) > input + label
{
	background: url(gr_custom-inputs.png) 0 -1px no-repeat;
	height: 16px;
}

p:not(.s) > input[type=radio] + label										{ background-position: 0 -161px; }

/* Checked styles */
p:not(.s) > input[type=radio]:checked + label 							{ background-position: 0 -241px; }
p:not(.s) > input[type=checkbox]:checked + label 							{ background-position: 0 -81px; }
p:not(.s) > input[type=checkbox]:hover:checked + label,
p:not(.s) > input[type=checkbox]:focus:checked + label,
p:not(.s) > input[type=checkbox]:checked + label:hover,
p:not(.s) > input[type=checkbox]:focus:checked + label 					{ background-position: 0 -101px; }
p:not(.s) > input[type=radio]:hover:checked + label,
p:not(.s) > input[type=radio]:focus:checked + label,
p:not(.s) > input[type=radio]:checked + label:hover,
p:not(.s) > input[type=radio]:focus:checked + label 						{ background-position: 0 -261px; }

/* Hover & Focus styles */
p:not(.s) > input[type=checkbox]:hover + label,
p:not(.s) > input[type=checkbox]:focus + label,
p:not(.s) > input[type=checkbox] + label:hover 							{ background-position: 0 -21px; }
p:not(.s) > input[type=radio]:hover + label,
p:not(.s) > input[type=radio]:focus + label,
p:not(.s) > input[type=radio] + label:hover								{ background-position: 0 -181px; }

/* Active styles */
p:not(.s) > input[type=checkbox]:active + label,
p:not(.s) > input[type=checkbox] + label:hover:active						{ background-position: 0 -41px; }
p:not(.s) > input[type=radio]:active + label,
p:not(.s) > input[type=radio] + label:hover:active						{ background-position: 0 -201px; }
p:not(.s) > input[type=checkbox]:active:checked + label,
p:not(.s) > input[type=checkbox]:checked + label:hover:active				{ background-position: 0 -121px; }
p:not(.s) > input[type=radio]:active:checked + label,
p:not(.s) > input[type=radio]:checked + label:hover:active				{ background-position: 0 -281px; }

/* Disabled styles */
p:not(.s) > input[type=checkbox]:disabled + label,
p:not(.s) > input[type=checkbox]:hover:disabled + label,
p:not(.s) > input[type=checkbox]:focus:disabled + label,
p:not(.s) > input[type=checkbox]:disabled + label:hover,
p:not(.s) > input[type=checkbox]:disabled + label:hover:active			{ background-position: 0 -61px; }
p:not(.s) > input[type=radio]:disabled + label,
p:not(.s) > input[type=radio]:hover:disabled + label,
p:not(.s) > input[type=radio]:focus:disabled + label,
p:not(.s) > input[type=radio]:disabled + label:hover,
p:not(.s) > input[type=radio]:disabled + label:hover:active				{ background-position: 0 -221px; }
p:not(.s) > input[type=checkbox]:disabled:checked + label,
p:not(.s) > input[type=checkbox]:hover:disabled:checked + label,
p:not(.s) > input[type=checkbox]:focus:disabled:checked + label,
p:not(.s) > input[type=checkbox]:disabled:checked + label:hover,
p:not(.s) > input[type=checkbox]:disabled:checked + label:hover:active	{ background-position: 0 -141px; }
p:not(.s) > input[type=radio]:disabled:checked + label,
p:not(.s) > input[type=radio]:hover:disabled:checked + label,
p:not(.s) > input[type=radio]:focus:disabled:checked + label,
p:not(.s) > input[type=radio]:disabled:checked + label:hover,
p:not(.s) > input[type=radio]:disabled:checked + label:hover:active		{ background-position: 0 -301px; }
