// Select
//
// Replaces the browser default select with a custom one, mostly pulled from
// https://primer.github.io/.

.form-select {
	appearance: none;
	//box-shadow: none !important;

	&:focus {
		border-color: var(--#{$prefix}form-select-focus-border-color);
		@if $enable-shadows {
			@include box-shadow(var(--#{$prefix}form-select-box-shadow), var(--#{$prefix}form-select-focus-box-shadow));
		} @else {
			// Avoid using mixin so we can pass custom focus shadow properly
			box-shadow: var(--#{$prefix}form-select-focus-box-shadow);
		}
	}

	&:disabled {
		color: var(--#{$prefix}form-select-disabled-color);
		background-color: var(--#{$prefix}form-select-disabled-bg);
		border-color: var(--#{$prefix}form-select-disabled-border-color);
	}

	// Remove outline from select box in FF
	&:-moz-focusring {
		text-shadow: 0 0 0 var(--#{$prefix}form-select-color);
	}

	// Solid style
	&.form-select-solid {
		@include placeholder($input-solid-placeholder-color);
		background-color: $input-solid-bg;
		border-color: $input-solid-bg;
		color: $input-solid-color;
		transition: $transition-input;

		.dropdown.show > &,
		&:active,
		&.active,
		&:focus,
		&.focus {
			background-color: $input-solid-bg-focus;
			border-color: $input-solid-bg-focus !important;
			color: $input-solid-color;
			transition: $transition-input;
		}
	}

	// Transparent style
	&.form-select-transparent {
		@include placeholder($input-placeholder-color);
		background-color: transparent;
		border-color: transparent;
		color: $input-color;

		.dropdown.show > &,
		&:active,
		&.active,
		&:focus,
		&.focus {
			background-color: transparent;
			border-color: transparent !important;
			color: $input-color;
		}
	}
}
