﻿/* --- EASYformdrop METRO THEME --- */

/* PREFIXED CSS */

.formdrop,
.formdrop div,
.formdrop li,
.formdrop div::after,
.formdrop .carat,
.formdrop .carat:after,
.formdrop .selected::after,
.formdrop:after{
	-webkit-transition: all 150ms ease-in-out;
	-moz-transition: all 150ms ease-in-out;
	-ms-transition: all 150ms ease-in-out;
	transition: all 150ms ease-in-out;
}

.formdrop .selected::after,
.formdrop.scrollable div::after{
	-webkit-pointer-events: none;
	-moz-pointer-events: none;
	-ms-pointer-events: none;
	pointer-events: none;
}

/* WRAPPER */

.formdrop{
	position: relative;
	width: auto;
	cursor: pointer;
	
	-webkit-user-select: none;
	-moz-user-select: none;
	user-select: none;
}

.formdrop.open{
	z-index: 2;
}

.formdrop:hover{
	
}

.formdrop:after{
	content: '';
	position: absolute;
	right: 3px;
	bottom: 3px;
	top: 2px;
	width: 30px;
	background: transparent;
}

.formdrop.focus:after{
	background: none;
}

/* CARAT */

.formdrop .carat,
.formdrop .carat:after{
	content: '';
	position: absolute;
	right: 8px;
	top: 65%;
	margin-top: -4px;
	border: 7px solid transparent;
	border-top: 7px solid #000;
	z-index: 0;
	
	-webkit-transform-origin: 50% 20%;
	-moz-transform-origin: 50% 20%;
	-ms-transform-origin: 50% 20%;
	transform-origin: 50% 20%;
	
}

.formdrop .carat:after{
	margin-top: -9px;
	right: -7px;
	border-top-color: #fff;
}

.formdrop:hover .carat:after{
	border-top-color: #f4f4f4;
}

.formdrop.focus .carat{
	border-top-color: #000;
}

.formdrop.focus .carat:after{
	border-top-color: #ededed;
}

.formdrop.open .carat{
	-webkit-transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-ms-transform: rotate(180deg);
	transform: rotate(180deg);
}

/* OLD SELECT (HIDDEN) */

.formdrop .old{
	position: absolute;
	left: 0;
	top: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.formdrop select{
	position: absolute;
	left: 0px;
	top: 0px;
}

.formdrop.touch .old{
	width: 100%;
	height: 100%;
}

.formdrop.touch select{
	width: 100%;
	height: 100%;
	opacity: 0;
}

/* SELECTED FEEDBACK ITEM */ 

.formdrop .selected,
.formdrop li{
	display: block;
	font-size: 18px;
	line-height: 1;
	color: #000;
	padding: 6px 5px 0px;
	overflow: hidden;
	white-space: nowrap;
	font-family: 'PT Serif', serif;
	line-height: 13px;
}

.formdrop .selected::after{
	content: '';
	position: absolute;
	right: 5px;
	top: 5px;
	bottom: 0;
	width: 20px;
	border-radius: 50%;
	border: 1px solid #000;
	height: 20px;
}

.formdrop:hover .selected::after{
	box-shadow: inset -55px 0 25px -20px #f4f4f4;
}

/* DROP DOWN WRAPPER */

.formdrop div{
	position: absolute;
	height: 0;
	left: 0;
	right: 0;
	top: 37px;
	margin-top: 1px;
	background: rgba(255,255,255,0.9);
	border: 1px solid #ccc;
	overflow: hidden;
	opacity: 0;
}

.formdrop:hover div{
	background: rgba(255,255,255,0.9);
}

/* Height is adjusted by JS on open */

.formdrop.open div{
	opacity: 1;
	z-index: 2;
}

/* FADE OVERLAY FOR SCROLLING LISTS */

.formdrop.scrollable div::after{
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50px;
	
}

.formdrop.scrollable:hover div::after{
}

.formdrop.scrollable.bottom div::after{
	opacity: 0;
}

/* DROP DOWN LIST */

.formdrop ul{
	position: absolute;
	padding: 0;
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
	list-style: none;
	overflow: hidden;
	text-align: center;
	margin-top: 0px
}

.formdrop.scrollable.open ul{
	overflow-y: auto;
}

/* DROP DOWN LIST ITEMS */

.formdrop li{
	list-style: none;
	padding: 8px 5px;
	font-size: 16px;
}

/* .focus class is also added on hover */

.formdrop li.focus{
	background: #318DDE;
	position: relative;
	z-index: 3;
	color: #fff;
}

.formdrop li.active{
	background: #0180d1;
	color: #fff;
}
