/* ===========================================================
 *
 *  Name:          selectordie_dev.css
 *  Updated:       2014-10-10
 *  Created by:    Per V @ Vst.mn
 *  What?:         Base CSS for Select or Die
 *
 *  Copyright (c) 2014 Per Vestman
 *  Dual licensed under the MIT and GPL licenses.
 *
 *  No, I don't usually comment my CSS, but in this
 *  case it might "help" someone.
 *
 *  Oddny | Cogs 'n Kegs
 * =========================================================== */


/* Remove, change to fit your needs */

.sod_select,
.sod_select * {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* The SoD - Please keep this first three lines intact, otherwise all hell will break looooooose */

.sod_select {
	display: inline-block;
	position: relative;
	line-height: 1;
	padding: 8px 10px;
	border: 2px solid #D5D7D8;
	background: transparent;
	color: #444444;
	text-align: left;
	outline: 0;
	outline-offset: -2px;
	cursor: pointer;
	
	height: 35px;
	margin-right: 46px;
}

/* Up/Down arrows */

.sod_select:before {
	background: #D5D7D8;
	display: block;
	content: "";
	width: 46px;
	position: absolute;
	
	top: -2px;
	bottom: -2px;
	right: -2px;
	
	margin-right: -46px;
}
.sod_select:after {
	content: "";
	position: absolute;
	
	top: 50%;
	right: -34px;
	
	width: 18px;
	height: 10px;

	margin-top: -5px;
	
	background-image: url(arrow-down-green.svg);
	background-position: center center;
	background-size: contain;
	background-repeat: no-repeat;
}

/* Change the border color on hover, focus and when open */

.sod_select:hover,
.sod_select.open {
	border-color: #D5D7D8;
}
.sod_select.open {
	color: #919191;
}
.sod_select.focus {}

.sod_select:hover:before {
	background: #D5D7D8;
}
.sod_select.open:before {
	background: #00b259;	
}

.sod_select.open:after {
	background-image: url(arrow-up-white.svg);
}

/* When the entire SoD is disabled, go crazy! */

.sod_select.disabled {
	border-color: #828282;
	color: #b2b2b2;
	cursor: not-allowed;
}

/* The "label", or whatever we should call it. Keep the first three lines for truncating. */

.sod_select .sod_label {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding-right: 15px;
}
.sod_select .sod_prefix {
	/* Use this if you're using a prefix and want to style it */
}
.sod_select .sod_placeholder {
	/* Use this if you're using a placeholder and want to style it */
}

/* Options list wrapper */

.sod_select .sod_list_wrapper {
	position: absolute;
	top: 100%;
	left: -2px;
	right: -2px;
	display: none;
	height: auto;
	margin: 0 0 0 0px;
	background: #ffffff;
	border: 2px solid #D5D7D8;
	color: #444444;
	z-index: 1;
}

/* Shows the option list (don't edit) */

.sod_select.open .sod_list_wrapper {
	display: block;
}

/* Don't display the options when  */

.sod_select.disabled.open .sod_list_wrapper {
	display: none;
}

/* When the option list is displayed above the SoD */

.sod_select.above .sod_list_wrapper {
	top: auto;
	bottom: 100%;
	border-bottom: none;
}

/* Options list container */

.sod_select .sod_list {
	display: block;
	overflow-y: auto;
	padding: 0;
	margin: 0;
}

/* All the options. Keep the first three lines for truncating... */

.sod_select .sod_option {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	position: relative;
	padding: 10px 10px;
	list-style-type: none;
	cursor: pointer;
}

/* Optgroups */

.sod_select .sod_option.optgroup,
.sod_select .sod_option.optgroup.disabled {
	background: inherit;
	color: #939393;
}

.sod_select .sod_option.optgroup {
	background: #f1f1f1;
	color: #333;
	cursor: default;
}

/* Children of an optgroup */

.sod_select .sod_option.groupchild {
	padding-left: 20px;
}

/* Used together with placeholderOption / data-placeholder-option */

.sod_select .sod_option.is-placeholder {
	display: none;
}

/* Disabled option */

.sod_select .sod_option.disabled {
	background: inherit;
	color: #cccccc;
}

/* Hover state for options, also used when a user uses his/hers up/down keys */

.sod_select .sod_option.active {
	color: #00b259;
}

/*Make room for the check mark */

.sod_select .sod_option.selected {
	padding-right: 25px;
}

.sod_select.no_highlight .sod_option.selected {

}
.sod_select.no_highlight .sod_option.selected:before {
	display: none;
}
.sod_select .sod_option.link {
	/* If data-link is set on a specific option */
}
.sod_select .sod_option.linkexternal {
	/* If data-link-external is set on a specific option */
}

/* Hide native select */

.sod_select select {
	display: none !important;
}

/* The native select in touch mode. Keep this first line. Sorry, keep everything. */

.sod_select.touch select {
	-webkit-appearance: menulist-button;
	position: absolute;
	top: 0;
	left: 0;
	display: block !important;
	height: 100%;
	width: 100%;
	opacity: 0;
	z-index: 1;
}