/*
 * formIt
 * https://github.com/mindgruve/formit
 *
 * Copyright (c) 2012 Chris Kihneman | Mindgruve
 * Licensed under the MIT license.
 */

/* Consistent box sizing and appearance */
.fi-checkbox input[type="checkbox"],
.fi-radio input[type="radio"] {
	box-sizing: border-box;
	padding: 0;
	*width: 18px;
	*height: 18px;
}

/* Hide these elements once they are styled */
.fi-file-wrap .fi-styled {
	display: none !important;
	visibility: hidden;
}


/* ==========================================================================
   SELECT MENUS AND FILE INPUTS
   ========================================================================== */
.fi-select select {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	*width: auto; /* Must have width auto for IE */
	height: 36px;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
	cursor: pointer;
	z-index: 5;
	-webkit-appearance: none;
	font-size: 15px;
}
.fi-select,
.fi-file {
	color: #adadad;
	font-size: 13px;
	background: #fff;
	border: 1px solid #d4d4d4;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	/*width: 338px;  1 + 338 + 1 = 340px */
	width: auto;
	-moz-background-clip: padding;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
}
.fi-select span,
.fi-file span {
	display: block;
	height: 36px;
	line-height: 38px;
	overflow: hidden;
	padding: 0 50px 0 10px;
	cursor: pointer;
	white-space: nowrap
}
.fi-file span {
	padding-right: 90px;
}
.fi-select .fi-select-arrow-wrap {
	background: #59b2d5;
	background-image: linear-gradient(bottom, rgb(89,178,213) 49%, rgb(89,178,213) 50%, rgb(101,187,218) 51%, rgb(101,187,218) 76%);
	background-image: -o-linear-gradient(bottom, rgb(89,178,213) 49%, rgb(89,178,213) 50%, rgb(101,187,218) 51%, rgb(101,187,218) 76%);
	background-image: -moz-linear-gradient(bottom, rgb(89,178,213) 49%, rgb(89,178,213) 50%, rgb(101,187,218) 51%, rgb(101,187,218) 76%);
	background-image: -webkit-linear-gradient(bottom, rgb(89,178,213) 49%, rgb(89,178,213) 50%, rgb(101,187,218) 51%, rgb(101,187,218) 76%);
	background-image: -ms-linear-gradient(bottom, rgb(89,178,213) 49%, rgb(89,178,213) 50%, rgb(101,187,218) 51%, rgb(101,187,218) 76%);
	background-image: -webkit-gradient(
		linear,
		left bottom,
		left top,
		color-stop(0.49, rgb(89,178,213)),
		color-stop(0.5, rgb(89,178,213)),
		color-stop(0.51, rgb(101,187,218)),
		color-stop(0.76, rgb(101,187,218))
	);
	border: 1px solid #77c6e5;
	border-radius: 0 4px 4px 0;
	position: absolute;
	right: -1px;
	top: -1px;
	width: 34px;
	height: 36px;
	-moz-background-clip: padding;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
	text-align: center;
}
.fi-select .fi-select-arrow {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #fff;
	height: 0;
	left: 12px;
	position: absolute;
	top: 15px;
	width: 0;
}
.fi-file .fi-file-button {
	border: 1px solid #bbb;
	background-color: #ddd;
	position: absolute;
	right: -1px;
	top: -1px;
	height: 36px;
	padding: 0;
	border-radius: 0 3px 3px 0;
}
.fi-file .fi-file-button .fi-file-button-inner {
	padding: 9px;
}


/* ==========================================================================
   CHECKBOXES AND RADIO BUTTONS
   ========================================================================== */

.fi-checkbox .fi-styled,
.fi-radio .fi-styled {
	position: relative;
	margin: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.fi-checkbox,
.fi-radio {
	background: #88715e; /* Old browsers */
	background: -moz-linear-gradient(top,  #f6f6f6 0%, #f6f6f6 50%, #e9e9e9 51%, #e9e9e9 100%); /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#f6f6f6), color-stop(50%,#f6f6f6), color-stop(51%,#e9e9e9), color-stop(100%,#e9e9e9)); /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #f6f6f6 0%,#f6f6f6 50%,#e9e9e9 51%,#e9e9e9 100%); /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #f6f6f6 0%,#f6f6f6 50%,#e9e9e9 51%,#e9e9e9 100%); /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #f6f6f6 0%,#f6f6f6 50%,#e9e9e9 51%,#e9e9e9 100%); /* IE10+ */
	background: linear-gradient(to bottom,  #f6f6f6 0%,#f6f6f6 50%,#e9e9e9 51%,#e9e9e9 100%); /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f6f6f6', endColorstr='#e9e9e9',GradientType=0 ); /* IE6-9 */
	border: none;
	border-radius: 2px;
	position: relative;
	display: -moz-inline-stack;
	display: inline;
	float: left;
	zoom: 1;
	*display: inline;
	width: 17px;
	height: 17px;
	margin-right: 9px;
	cursor: pointer;
}
.fi-checkbox > div,
.fi-radio > div {
	background-color: #999999;
	background-image: -webkit-gradient(linear, left top, left bottom, from(#999999), to(#393939));
	background-image: -webkit-linear-gradient(top, #999999, #393939);
	background-image:    -moz-linear-gradient(top, #999999, #393939);
	background-image:      -o-linear-gradient(top, #999999, #393939);
	background-image:         linear-gradient(to bottom, #999999, #393939);
	border-radius: 5px;
	display: none;
	width: 10px;
	height: 10px;
	position: absolute;
	top: 3px;
	left: 3px;
}
.fi-checkbox.checked > div,
.fi-radio.checked > div {
	display: block;
}

.fi-checkbox .ss-icon {
	color: #444444;
	display: none;
	left: 2px;
	position: absolute;
	top: 1px;
}
.fi-checkbox.checked .ss-icon {
	display: block;
}

.fi-checkbox.disabled,
.fi-radio.disabled {
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	filter: alpha(opacity=50);
	opacity: .5;
}

.fi-radio {
	border-radius: 9px;
	height: 16px;
	width: 16px;
}
.fi-radio > div {
	border-radius: 6px;
}




