ul {
	list-style: none;
}

.form-select {
	max-width: 240px;
}

.form-select, .form-select * {
	padding: 0;
	margin: 0;
}

.form-select.button > div {
	background-color: #b3b3b3;
	background-image: -moz-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(242,242,242) 0%, rgb(255,255,255) 100%);
	border:1px solid #cccccc;
	border-radius: 3px;
	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.07);
	box-shadow: 0 1px 2px rgba(0,0,0,.07);
	color: #777777;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	line-height: 15px;
	height: auto;
	padding: 8px 16px;
	text-transform: uppercase;
}

.form-select.button:active > div {
	-moz-box-shadow: none;
	box-shadow: none;
	background: #e5e5e5;
	border-color: #bbb;
	color: #777;
}

.form-select.button.cloudy > div {
	background-image: -moz-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	background-image: -webkit-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	background-image: -ms-linear-gradient( 90deg, rgb(229,229,229) 0%, rgb(242,242,242) 100%);
	border-color: #ccc;
	color: #777;
}

.form-select.button.cloudy:hover > div {
	border-color: #c3c3c3;
}

.form-select.button.cloudy:active > div {
	background: #dedede;
	border-color: #aaa;
}

.form-select.disabled > div {
	background: transparent !important;
	background-image: none !important;
	border-color: #ddd !important;
	-moz-box-shadow: none;
	box-shadow: none;
	color: #ddd !important;
}

.form-select > div > span {
	background-position: -104px -62px;
	height: 7px;
	margin-left: 9px;
	margin-right: 0;
	width: 9px;
}

/* Custom Form Select */
label + .form-select {
	margin-left: 10px;
}

.form-select {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: inline-block;
	vertical-align: middle;
}

.form-select * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.form-select.disabled > div span {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)" !important;
	opacity: 0.3 !important;
}

.form-select > div {
	cursor: pointer;
	height: 28px;
	line-height: 28px;
	padding: 0 10px;
	vertical-align: middle;
	white-space: nowrap;
}

.form-select > div label {
	cursor: pointer;
	text-align: left;
	vertical-align: middle;
	width: calc(100% - 20px);
	overflow: hidden;
	text-overflow: ellipsis;
}

.form-select.default > div label {
	float:left;
}

.form-select.default > div span {
	margin-top: -3px;
}

.form-select.button > div label {
	text-transform: uppercase;
}

.form-select.button {
	position: relative;
}

.form-select.button ul {
	top: 34px;
}

/* Default Form Select */
.form-select.default > div {
	background-color: #fff;
	border: 1px solid #d7d7d7;
	font-size: 14px;
	text-align: right;
}

.form-select.default .placeholder label {
	color: #999;
}

/* Form Select List */
.form-select ul {
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 0 0 6px 6px;
	-webkit-box-shadow: 0 5px 10px #ccc;
	-moz-box-shadow: 0 5px 10px #ccc;
	box-shadow: 0 5px 10px #ccc;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	padding: 5px;
	position: absolute;
	z-index: 1100;
}

.form-select ul li {
	border: 0;
	padding: 0;
	width: 100%;
}

.form-select ul li a {
	color: #333 !important;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	display: list-item;
	height: auto;
	line-height: 19px;
	margin: 0;
	padding: 6px 15px;
	text-align: left;
	text-decoration: none;
	width: 100%;
}

.form-select ul li a:hover {
	background-color: #ededed;
	border-radius: 5px;
	text-decoration: none;
}

.form-select ul li.disabled a {
	color: #bbb !important;
}

.form-select ul li.disabled a:hover {
	background-color: #fff;
	cursor: not-allowed;
}

.form-select select {
	display: none;
	visibility: hidden;
}

.icon {
	background-image: url('/member/images/icons/layout.png');
	display: inline-block;
	height: 16px;
	margin: 0 5px;
	width: 16px;
	vertical-align: middle;
}

/* Image select */
.form-select.image-select ul {
	/*
	Images are shown side-by-side in the dropdown. To achieve this result we have to use display inline-block. jQuery
	is not able to calculate the correct width of the select with this property so we have to set width of the dropdown
	to 1 px, in this way the Javascript script will set the width properly.
	*/
	width: 1px;
}

.form-select.image-select ul li {
	border: 0;
	display: inline-block;
	margin: 0;
	padding: 0;
	width: 20%;
}

.form-select.image-select ul li.full-width {
	width: 100%;
}

.form-select.image-select ul li a {
	display: inline-block;
	height: 28px;
	line-height: normal;
	margin: 0;
	padding: 0;
	width: 100%;
}

.form-select.image-select ul li.no-image {
	width: 100%;
}

.form-select.image-select ul li.no-image a {
	background: #939393;
	background-image: -webkit-linear-gradient(top, #939393, #7A7A7A);
	background-image: -moz-linear-gradient(top, #939393, #7A7A7A);
	background-image: -ms-linear-gradient(top, #939393, #7A7A7A);
	background-image: -o-linear-gradient(top, #939393, #7A7A7A);
	background-image: linear-gradient(to bottom, #939393, #7A7A7A);
	color: #ffffff !important;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: solid #747474 1px;
	line-height: 1em;
	padding-top: 5px;
	padding-bottom: 5px;
	text-align: center;
	text-decoration: none;
	text-overflow: ellipsis;
	text-transform: capitalize;
}

.form-select.image-select ul li.no-image a:hover {
	background: #858585;
	background-image: -webkit-linear-gradient(top, #858585, #707070);
	background-image: -moz-linear-gradient(top, #858585, #707070);
	background-image: -ms-linear-gradient(top, #858585, #707070);
	background-image: -o-linear-gradient(top, #858585, #707070);
	background-image: linear-gradient(to bottom, #858585, #707070);
	text-decoration: none;
}
