/**
 * @author zhixin wen <wenzhixin2010@gmail.com>
 */

.ms-parent {
	width: 100% !important;
    display: inline-block;
	margin-bottom: 20px;
    position: relative;
    vertical-align: middle;
}
.ms-parent.genre {
	width: 48% !important;
}

.ms-choice {
    display: block;
    width: 100%;
    height: 41px;
    padding: 0 10px 0 0;
	margin: 0;
    overflow: hidden;
    cursor: pointer;
	background: #282828 url(/assets/img/icon-arrow-down.svg) no-repeat calc(100% - 15px) center / 22px;	
	border: 0;
    text-align: left;
    white-space: nowrap;
    font-family: 'rawline';
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    text-decoration: none;
    -webkit-border-radius: 6px;
    border-radius: 6px;
	outline: none;
}

.ms-choice.disabled {
    background-image: none;
    cursor: default;
}

.ms-choice > span {
	width: 100%;
	display: inline-block;
    position: absolute;
    top: 10px;
    left: 15px;
    right: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-left: 0;
	color: #fff;
}

.ms-choice > span.placeholder {
    color: #999;
	padding: 0;
	opacity:  1;
}

.ms-choice > div {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 25px;
    background: #EFF0F2;
	display: none;
}

select[multiple] {
  background:none;
  width:auto;
  height:auto;
  padding:0;
  margin:0;
  background: transparent !important;
  border-width: 0;
  border-style: inset;
  display: none;
}

.ms-choice > div.open {
    background: #EFF0F2;
}

.ms-drop {
    width: calc(100%);
    /*overflow: hidden;*/
    display: none;
    margin-top: -1px;
    padding: 0;
    position: absolute;
    z-index: 1000;
    background: #282828;
	border: 0 solid #d6d6d6;
    color: #fff;
	border-top: 0;
    border-radius: 6px;
	overflow: hidden;
	-webkit-box-shadow: 0 4px 3px 0 rgba(0, 0, 0, .05);
	box-shadow: 0 4px 3px 0 rgba(0, 0, 0, .05);
}

.ms-drop.bottom {
    top: 100%;
}

.ms-drop.top {
    bottom: 100%;
}

.ms-search {
    display: inline-block;
    margin: 0;
    min-height: 26px;
    padding: 4px;
    position: relative;
    white-space: nowrap;
    width: 100%;
    z-index: 10000;
}

.ms-search input {
    width: 100%;
    height: auto !important;
    min-height: 24px;
    padding: 0 20px 0 5px;
    margin: 0;
    outline: 0;
    font-family: sans-serif;
    font-size: 1em;
    border: 1px solid #aaa;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: #fff url('multiple-select.png') no-repeat 100% -22px;
    background: url('multiple-select.png') no-repeat 100% -22px, -webkit-gradient(linear, left bottom, left top, color-stop(0.85, white), color-stop(0.99, #eeeeee));
    background: url('multiple-select.png') no-repeat 100% -22px, -webkit-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -moz-linear-gradient(center bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -o-linear-gradient(bottom, white 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, -ms-linear-gradient(top, #ffffff 85%, #eeeeee 99%);
    background: url('multiple-select.png') no-repeat 100% -22px, linear-gradient(top, #ffffff 85%, #eeeeee 99%);
}

.ms-search, .ms-search input {
    -webkit-box-sizing: border-box;
    -khtml-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
}

.ms-drop ul {
    overflow: auto;
    margin: 0;
}

.ms-drop ul > li {
    list-style: none;
    display: list-item;
    background-image: none;
    position: static;
	cursor: pointer;
}

.ms-drop ul > li:first-of-type label {
	padding: 0;
	cursor: pointer;
}

.single .ms-drop ul > li:first-of-type label,
.singleCategory .ms-drop ul > li:first-of-type label,
.singleCountry .ms-drop ul > li:first-of-type label {
	padding: 0;
	border-bottom: 0;
}
.singleCountry .ms-drop ul > li:nth-of-type(1) {
	border-bottom: 5px solid #dfdfdf;
}
.singletop .ms-drop ul > li:first-of-type label {
	padding: 0;
	border-bottom: 0;
}

.hover .ms-drop ul > li:first-of-type label:hover {
	background: #ff5f1e;
	border-bottom-color: #FF530D;
}

.hover .singleCategory .ms-drop ul > li:first-of-type label:hover,
.hover .single .ms-drop ul > li:first-of-type label:hover {
	border-bottom: 0;
}
.hover .singletop .ms-drop ul > li:first-of-type label:hover {
	border-bottom: 0;
}
	
.ms-drop ul > li:nth-last-child(2) {
	border-bottom: 0;
}

.ms-drop ul > li .disabled {
    opacity: .35;
    filter: Alpha(Opacity=35);
}

.ms-drop ul > li.multiple,
.ms-drop ul > li.multipletop {
    display: block;
    float: left;
}

.ms-drop ul > li.group {
    clear: both;
}

.ms-drop ul > li.multiple label,
.ms-drop ul > li.multipletop label {
    width: 100%;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ms-drop ul > li label {
	margin: 0 !important;
    font-weight: normal;
    display: block;
    white-space: nowrap;
	font-size: 14px !important;
}

.ms-drop ul > li span {
	padding: 8px 8px 8px 15px;
	width: 100%;
	display: inline-block;
	vertical-align: top;
	border-bottom: 0 solid #dfdfdf;
	font-size: 16px;
    line-height: 21px;
    font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-drop ul > li label.optgroup {
    font-weight: bold;
}

.ms-drop input[type="checkbox"] {
    vertical-align: middle;
}

.ms-drop .ms-no-results {
    display: none;
}

.ms-drop.bottom ul li input,
.ms-drop.top ul li input {
    visibility: hidden; 
    position: absolute;
    margin: 0;
    padding: 0;
}
.hover .ms-drop.bottom ul li input:hover + span,
.hover .ms-drop.top ul li input:hover + span,
.ms-drop.bottom ul li input:checked + span,
.ms-drop.top ul li input:checked + span {
    background: #e76903;
	border-bottom: 1px solid transparent;
	cursor: pointer;
}

.hover .ms-drop.bottom ul li input:hover + span,
.hover .ms-drop.top ul li input:hover + span {
	background: #ff5f1e;
}
