$crc: '.h-autocomplete';
#{$crc}{
	width: 100%;
	min-width: $v-control-height;
	height: $v-control-height;
	line-height: $v-control-height;
	border-radius: $v-control-border-radius;
	border-width: $v-control-border-width;
	border-style: solid;
	border-color: $c-primary-border;
	background: $c-primary-background;
	display: inline-flex;
	transition: $t-fast-standard;
	font-size: $fs-default;
	cursor: text;
	vertical-align: top;
	box-sizing: border-box;

	&:hover{
		border-color: $c-hover--primary-border;
		box-shadow: $sd-hover--primary-box-shadow;
	}

	&.-focus{
		border-color: $c-active--primary-border;
		box-shadow: $sd-active--primary-box-shadow;
	}

	&.-readonly{
		border-style: dashed;

		&:hover, &.-focus{
			border-color: $c-primary-border;
			box-shadow: none;
		}
	}

	&.-disabled{
		background: $c-disabled--primary-background;
		border-color: $c-primary-border;
		color: $c-disabled--negative-text;
		opacity: $v-control-disabled-opacity;
		pointer-events: none;
	}
}

#{$crc}__input{
	appearance: none;
	border: none;
	outline: none;
	background: none;
	color: $c-dark-text;
	padding: 0 $g-8;
	flex-grow: 1;
	width: 100%;

	&::placeholder{
		color: $c-dark-text-hint;
	}

	&:disabled{
		background: transparent;
	}
}

#{$crc}__suffix-icon, #{$crc}__prefix-icon{
	margin: ($g-8 - $v-control-border-width) $g-8;
	fill: $c-dark-text;
	opacity: .64;
	flex-shrink: 0;
}
#{$crc}__prefix-icon{
	color: $c-dark-text;
	margin-right: 0;
}
#{$crc}__suffix-icon{
	color: $c-dark-text;
	margin-left: 0;
}

#{$crc}__prefix, #{$crc}__suffix{
	padding: 0 $g-8;
	background: rgba($c-primary-border, .32);
	color: $c-dark-text-hint;
	fill: $c-dark-text-hint;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	border-width: 0;
	border-style: solid;
	border-color: $c-primary-border;
	transition: border-color $t-fast-standard;
}
#{$crc}__prefix{
	border-right-width: $v-control-border-width;
}
#{$crc}__suffix{
	border-left-width: $v-control-border-width;
}


#{$crc}__list-container {
	box-shadow: $sd-active--primary-box-shadow;
	margin-top: -($v-control-height) !important;
	padding-top: $v-control-height;
	pointer-events: none;

	#{$crc}__list-box {
		border: $v-control-border-width solid $c-primary-border;
		border-top: none;
		background: $c-primary-background;
		border-radius: 0 0 $v-control-border-radius $v-control-border-radius;
		pointer-events: all;
		display: flex;
		max-height: 300px;

		.h-scroll-container{
			flex-grow: 1;
		}

		/*&:after {
			content: '';
			position: absolute;
			height: 3px;
			left: -$v-control-border-width;
			right: -$v-control-border-width;
			top: -$v-control-border-width;
			background: $c-primary;
			border-radius: 3px 3px 0 0;
		}*/
	}

	#{$crc}__list {
		margin: 0;
		padding: 0;
	}

	#{$crc}__list-item {
		line-height: $v-control-height;
		padding: 0 $g-12 0 $g-8;
		font-size: $fs-default;
		cursor: pointer;
		white-space: nowrap;
		transition: $t-fast-standard;
		display: flex;
		align-items: center;
		outline: none;
		position: relative;

		&:hover, &.-focused, &.-selected {
			color: $c-primary-text;
		}

		&:hover, &.-focused {
			color: $c-primary-text;
			background: rgba($c-primary, $o-4);
		}

		&.-disabled {
			color: $c-disabled--primary-text;
			background: transparent;
			cursor: not-allowed;
		}
	}
}
