// -------------------------------------------------------------------
// :: SELECT
// -------------------------------------------------------------------


select{
	padding-right: 2rem;
}
// Add pointer cursor for selects
// Provide styling when no
// value has been selected

select.has-no-value {
	color: $font-color-medium;
	font-weight: 100;
}

select[disabled].has-no-value {
	color: $font-color-medium;
}

.input select + [class*='icon'] {
	color: $font-color-medium;
	margin: 0.35rem 0.9rem;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 3px;
}

.a-input select + [class*='icon']:before {
	font-size: 1rem;
	line-height: 0;
	position: absolute;
	top: 1.35rem;
	right: 1.35rem;
	color: $dark-extra;
	pointer-events: none;
}

.a-input select.has-no-value + [class*='icon'] {
	color: $font-color-medium;
}

.select--hidden {
	display: none;
}

.a-select {

	position: relative;

	.a-select__styled {
		@extend %__input;
	}

	.a-select__options {
		@extend %__input;
		position: absolute;
		top: 100%;
		z-index: $z-index-high;
		margin-top: 1rem;

		list-style: none;

		li {
			cursor: pointer;
			border-bottom: 1px solid darken($light, 10%);
			padding: rem(2px) 0;
			position: relative;

			&:first-child {
				display: none;
			}

			&:last-child {
				border-bottom: none;
			}

			&.active {
				&:before {
					@extend %___FLOW-icon; content: "\EA07";
					position: absolute;
					top: 50%;
					left: 0.5rem;
					margin-top: rem(-8px);
				}
			}

			&.disabled {
				cursor: not-allowed;
				color: darken($light, 20%);

				span {
					&:hover {
						background: transparent;
					}
				}
			}

			span {
				display: block;
				padding: 0.3rem 1rem 0.3rem rem(30px);

				&:hover {
					background: $light;
				}
			}
		}
	}

	& + span[class*='icon'] {
		position: absolute;
		top: 0.6rem;
		right: 0.9rem;
	}

}
