
div.fancy-select div.trigger {
  -webkit-tap-highlight-color: transparent;
  background-color: #E5E7E8;
  border:solid 1px rgba(0,0,0,.25);
  border-top:solid 1px rgba(0,0,0,.4);
  box-sizing: border-box;
  clear: both;
  cursor: pointer;
  display: block;
  float: left;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color:#444;
  height: 36px;
  line-height: 34px;
  outline: none;
  padding-left: 15px;
  position: relative;
  text-align: left !important;
  transition: all 0.2s ease-in-out;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  white-space: nowrap;
  width: 100%; 
  -webkit-box-shadow: inset 0px 3px 12px -3px rgba(0,0,0,0.15);
-moz-box-shadow: inset 0px 3px 12px -3px rgba(0,0,0,0.15);
box-shadow: inset 0px 3px 12px -3px rgba(0,0,0,0.15);
}

div.fancy-select div.trigger:after {
	content: "";
	position: absolute;
	right:10px;
	width: 40px;
	height: 36px;
	background:url(../images/select-arrow.png) right center no-repeat; 
}

div.fancy-select div.trigger.open:after {
	background:url(../images/select-arrow-on.png) right center no-repeat; 
}

div.fancy-select ul.options {
	list-style: none;
	margin: 0;
	padding:0;
	position: absolute;
	top: 38px;
	left: 0;
	visibility: hidden;
	opacity: 0;
	z-index: 50;
	width:100%;
	max-height: 320px;
	overflow: auto;
	background: #FFF;
	border:solid 1px rgba(0,0,0,.25);
	box-sizing: border-box;
	overflow: auto;
	box-shadow: 0 3px 15px -3px rgba(0,0,0,.3);
   -moz-box-shadow: 0 3px 15px -3px rgba(0,0,0,.3);
   -webkit-box-shadow: 0 3px 15px -3px rgba(0,0,0,.3);
   

	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 {
	margin:0; padding:0;
	visibility: visible;
	top: 38px;
	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: 40px;

	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: 5px 12px;
	color: #333;
	font-size:13px;
	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 {
	
}

div.fancy-select ul.options li.hover {
	background: #8D9297;
	color:#FFF;
}

@media (max-width: 767px) {

div.fancy-select div.trigger {
  font-size: 14px;
  height: 42px;
  line-height: 40px;
}

div.fancy-select div.trigger:after {
	height: 42px;
}

div.fancy-select ul.options {
	top: 44px;
	left: 0;
	max-height: 240px;
}

div.fancy-select ul.options.open {
	top: 44px;
}

}