/*
 * 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[multiple]:focus,
.fi-focus {
	box-shadow: 0 0 3px #aaa;
}


/* ==========================================================================
   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: 100%;
	-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	opacity: 0;
	cursor: pointer;
	z-index: 5;
	-webkit-appearance: none;
}

select[multiple],
.fi-select,
.fi-file {
	color: #444;
	font-size: 16px;
	background: #fff;
	border: 1px solid #bbb;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
    /*width: 200px;*/
    width: auto; /* TTenoever */
	-moz-background-clip: padding-box;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
}

select[multiple] {
	padding: 5px;
}
select[multiple]:focus {
	outline: none;
}

.fi-select span,
.fi-file span {
	display: block;
	height: 30px;
	line-height: 30px;
	overflow: hidden;
	padding: 0 50px 0 10px;
	cursor: pointer;
	white-space: nowrap
}
.fi-file span {
	padding-right: 90px;
}

.fi-select .fi-select-arrow-wrap {
	border: 1px solid #bbb;
	background-color: #ddd;
	border-radius: 0 3px 3px 0;
	position: absolute;
	right: -1px;
	top: -1px;
	width: 32px;
	height: 32px;
	-moz-background-clip: padding-box;
	-webkit-background-clip: padding-box;
	background-clip: padding-box;
}
.fi-select .fi-select-arrow {
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid #999;
	height: 0;
	left: 9px;
	position: absolute;
	top: 13px;
	width: 0;
}

.fi-file .fi-file-button {
	border: 1px solid #bbb;
	background-color: #ddd;
	position: absolute;
	right: -1px;
	top: -1px;
	height: 32px;
	padding: 0;
	border-radius: 0 3px 3px 0;
}
.fi-file .fi-file-button .fi-file-button-inner {
	padding: 4px 9px;
}


/* ==========================================================================
   CHECKBOXES AND RADIO BUTTONS
   ========================================================================== */
.fi-checkbox .fi-styled,
.fi-radio .fi-styled {
	position: relative;
	margin: 0;
	width: 100%;
	height: 100%;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
	cursor: pointer;
}

.fi-checkbox,
.fi-radio {
	background-color: #ddd;
	border: 1px solid #bbb;
	border-radius: 2px;
	position: relative;
	display: -moz-inline-stack;
	display: inline;
	float: left;
	zoom: 1;
	*display: inline;
	width: 18px;
	height: 18px;
	margin-right: 10px;
	cursor: pointer;
}

.fi-checkbox .fi-check,
.fi-radio .fi-check {
	background-color: #999;
	border-radius: 2px;
	display: none;
    width: 12px;
    height: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
}
.fi-checkbox.checked .fi-check,
.fi-radio.checked .fi-check {
	display: block;
}

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

.fi-radio {
	border-radius: 9px;
}
.fi-radio .fi-check {
	border-radius: 6px;
}
