
div.fancy-select {
	position: relative;
	font-size: 12px;
	color: #666;
	z-index:5;
    font: 14px;
    width: 100%;
	
	font-weight:normal;
	font-style:normal;
}
div.fancy-select * { z-index:9;}



div.fancy-select.disabled {
	opacity: 0.5;
}

div.fancy-select select:focus + div.trigger {
	box-shadow: 0 0 1px 1px rgba(0,0,0,0.2);
}

div.fancy-select select:focus + div.trigger.open {
	box-shadow: none;
}

div.fancy-select div.trigger {
	cursor: pointer;
	padding: 0px 39px 0px 20px;
	white-space: nowrap;
	overflow: hidden;
	line-height:62px;
	position: relative;
	background: #f9f9f9;
	color: #666;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	border-top:1px solid #fff;
	height:62px;
	z-index: 51;
    font-size: 14px;
    width: 100%;

	transition: all 240ms ease-out;
	-webkit-transition: all 240ms ease-out;
	-moz-transition: all 240ms ease-out;
	-ms-transition: all 240ms ease-out;
	-o-transition: all 240ms ease-out;
}
div.fancy-select div.trigger:after {
	content: "";
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-top-color: #a4a4a4;
	top: 29px;
	right: 20px;
}
fieldset.error div.fancy-select div.trigger {
	background:#fff2f2;
	color:#790606;
	
	-webkit-box-shadow:2px 2px 10px 0px #ba6969;
	-moz-box-shadow:2px 2px 10px 0px #ba6969;
	box-shadow:2px 2px 10px 0px #ba6969;
}
fieldset.error div.fancy-select div.trigger:after { border-top-color: #790606;}

div.fancy-select div.trigger.open {
	background: #004c8f;
	color:#fff;
	border-top:1px solid #004c8f;
}

div.fancy-select div.trigger.open:after {
	border-top-color: #fff;
}

div.fancy-select ul.options {
	list-style: none;
	margin: 0;
	position: absolute;
	top: 0px;
	left: 0;
	visibility: hidden;
	opacity: 0;
	z-index: 50;
	max-height: 250px;
	overflow: auto;
	background: #004c8f;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
	width:100%;
	font-size:12px;
	padding: 20px 0px;

	transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
	-webkit-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
	-moz-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
	-ms-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
	-o-transition: opacity 300ms ease-out, top 300ms ease-out, visibility 300ms ease-out;
}

div.fancy-select ul.options.open {
	visibility: visible;
	top: 62px;
	opacity: 1;

	/* have to use a non-visibility transition to prevent this iOS issue (bug?): */
	/*http://stackoverflow.com/questions/10736478/css-animation-visibility-visible-works-on-chrome-and-safari-but-not-on-ios*/
	transition: opacity 300ms ease-out, top 300ms ease-out;
	-webkit-transition: opacity 300ms ease-out, top 300ms ease-out;
	-moz-transition: opacity 300ms ease-out, top 300ms ease-out;
	-ms-transition: opacity 300ms ease-out, top 300ms ease-out;
	-o-transition: opacity 300ms ease-out, top 300ms ease-out;
}

div.fancy-select ul.options.overflowing {
	top: auto;
	bottom: 64px;

	transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
	-webkit-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
	-moz-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
	-ms-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
	-o-transition: opacity 300ms ease-out, bottom 300ms ease-out, visibility 300ms ease-out;
}

div.fancy-select ul.options.overflowing.open {
	top: auto;
	bottom: 50px;

	transition: opacity 300ms ease-out, bottom 300ms ease-out;
	-webkit-transition: opacity 300ms ease-out, bottom 300ms ease-out;
	-moz-transition: opacity 300ms ease-out, bottom 300ms ease-out;
	-ms-transition: opacity 300ms ease-out, bottom 300ms ease-out;
	-o-transition: opacity 300ms ease-out, bottom 300ms ease-out;
}

div.fancy-select ul.options li {
	padding: 12px 40px;
	color: #fff;
    font-size: 14px;
    width: 100%;
	cursor: pointer;
	white-space: nowrap;

	transition: all 150ms ease-out;
	-webkit-transition: all 150ms ease-out;
	-moz-transition: all 150ms ease-out;
	-ms-transition: all 150ms ease-out;
	-o-transition: all 150ms ease-out;
}

div.fancy-select ul.options li.selected {
	background: #004078;
	color: #4aa6ff;
}

div.fancy-select ul.options li.hover {
	background: #004078;
	color: #4aa6ff;
}