.sort-by > span {
	display: block;
	width: 240px;
	height: 40px;
	line-height: 1.1;
	float: right;
}
span.select-fancy-container {
	display: block;
	position: absolute;
	left: 0px;
	top: 0px;
	width: 100%;
	height: 100%;
	z-index: 1;
	cursor: pointer;
	background: #3c2c54;
	border: 2px solid #fff;
}
span.select-fancy-container.open {
	background: #ea504c;
}
span.select-fancy-text {
	display: block;
	width: auto;
	height: 100%;
	line-height: 100%;
	overflow: hidden;
	padding: 0px 10px 0px 32px;
	text-transform: uppercase;
	color: #fff;
	font-weight: bold;
	text-align: center;
}
span.select-fancy-text > span {
	display: table;
	width: 100%;
	height: 100%;
}
span.select-fancy-text > span > span {
	display: table-cell;
	vertical-align: middle;
}
span.select-fancy-button {
	float: right;
	display: block;
	width: 34px;
	height: 100%;
	position: relative;
	
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	-o-box-sizing: border-box;
	box-sizing: border-box;
}
span.select-fancy-button:after {
	content: '';
	display: block;
	position: absolute;
	left: 16px;
	left: calc(50% - 7px);
	top: 50%;
	top: calc(50% - 4.5px);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 4.5px 0 4.5px;
	border-color: #fff transparent transparent transparent;
}

select.error + span.select-fancy-container {
	border-color: #f00;
}

select:focus + span.select-fancy-container {
	border-color: #a6a6a6;
}

.select-fancy-list {
	display: none;
	position: absolute;
	left: 0px;
	top: 0px;
	min-width: 200px;
	max-height: 280px;
	overflow: auto;
	overflow-x: hidden;
	z-index: 90000;
	margin-top: -1px;
}
.select-fancy-list.open {
	display: block;
}
.select-fancy-list-item {
	border: 2px solid #fff;
	border-top: 1px solid #fff;
	line-height: 28px;
	padding: 4px 12px;
	min-height: 28px;
	cursor: pointer;
	position: relative;
	white-space: nowrap;
	background: #ea504c;
	color:#fff;
	text-align: center;
}
.select-fancy-list-item + .select-fancy-list-item {
	margin-top: -1px;
}
.select-fancy-list-item:hover {
	color: rgba(255,255,255,0.75);
}
.select-fancy-list-item.selected {
	background: #eee;
}