
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;
	color: #004eaf;
	box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
	border-top:1px solid #fff;
	height:64px;
	z-index: 2;
    font-size: 14px;
    width: 100%;
    border-radius: 3px;
    box-sizing: border-box;

	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;
    
    background: rgb(255,255,255);
    background: -moz-linear-gradient(top,  rgba(255,255,255,1) 0%, rgba(245,245,245,1) 100%);
    background: -webkit-linear-gradient(top,  rgba(255,255,255,1) 0%,rgba(245,245,245,1) 100%);
    background: linear-gradient(to bottom,  rgba(255,255,255,1) 0%,rgba(245,245,245,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#f5f5f5',GradientType=0 );

}
div.fancy-select div.trigger:after {
	content: "";
	display: block;
	position: absolute;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-top-color: #004eaf;
	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 {
	color:#1363f6;
}

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

div.fancy-select ul.options {
	list-style: none;
	margin: 0;
	position: absolute;
	top: 0px;
	right: 0;
	visibility: hidden;
	opacity: 0;
	z-index: 50;
	max-height: 250px;
	overflow: auto;
    overflow-x: hidden;
	background: #f5f5f5;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.13), 0 3px 6px rgba(0, 0, 0, 0.26);
	width:100%;
	font-size:12px;
	padding: 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: 64px;
	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 20px;
	color: #004eaf;
    font-size: 14px;
    width: 100%;
	cursor: pointer;
	white-space: nowrap;
    border-bottom: 1px solid #dadada;

	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: #fafafa;
	color: #1363f6;
}

div.fancy-select ul.options li.hover {
	background: #fafafa;
	color: #1363f6;
}