// Color
$errorColoBg: #ffeeeb;
$errorColoBorder: #ddaaa2;

.kit-time-field {
	position: relative;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	width: 72px;
	height: 29px;
	padding-left: 9px;
	background-color: #ffffff;
	border: 1px solid #b0b2b5;
	border-radius: 2px;
	box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	font-family: "PT Sans", sans-serif;
	font-size: 14px;

	&_disabled {
		opacity: 0.35;
	}

	&_no-shadow {
		border: 1px solid #c5d6e1;
		box-shadow: none;
	}

	&_error {
		background-color: $errorColoBg;
		border-color: $errorColoBorder;
	}

	&__outer {
		position: relative;
		display: inline-block;
	}

	&_wrapper {
		width: 72px;

		&-open {
			background-color: #f2f2f2;
			border-color: #d4d4d4;

			&::after {
				content: "";
				position: absolute;
				top: -9px;
				right: -11px;
				bottom: -9px;
				left: -11px;
				background-color: #f2f2f2;
				border: 2px solid #d4d4d4;
				border-top-left-radius: 2px;
				border-top-right-radius: 2px;
			}
		}
	}

	&__input {
		position: relative;
		z-index: 2;
		width: 40px;
		height: 16px;
		padding-right: 0;
		padding-left: 0;
		background: none;
		border: none;
		outline: none;
		font-family: "PT Sans", sans-serif;
		font-size: 14px;
		color: #000000;
		text-align: left;
	}

	&__controls {
		display: flex;
		flex-direction: column;
		margin-left: 3px;
		padding-top: 1px;
	}

	&__button {
		margin: 0;
		padding: 0;
		background: none;
		border: none;
		outline: none;
		cursor: pointer;
	}

	&_disabled &__button {
		outline: none;
		cursor: default;
	}

	&__arrow {
		display: flex;
		justify-content: center;
		align-items: center;
		width: 8px;
		height: 8px;

		&::after {
			content: "";
			display: block;
			margin-top: -3px;
			border: 3px solid transparent;
			border-bottom: 4px solid #000000;
		}

		&_down::after {
			margin-top: 0;
			border-top: 4px solid #000000;
			border-bottom: 3px solid transparent;
		}
	}

	&__drop-down {
		position: absolute;
		top: 38px;
		left: -11px;
		z-index: 10;
		display: flex;
		width: 94px;
		height: 318px;
		background-color: #f2f2f2;
		border-left: 2px solid #d4d4d4;
		border-right: 2px solid #d4d4d4;
		border-bottom: 2px solid #d4d4d4;
		overflow: hidden;
		box-sizing: border-box;
		list-style: none;

		&_list {
			position: absolute;
			display: flex;
			flex-direction: column;
			height: 100%;
			margin: 0;
			padding: 0;
			padding-right: calc(50% + 15px);
			overflow-x: hidden;
			overflow-y: scroll;

			&:last-child {
				left: 50%;
				padding-right: 15px;
				border-left: 2px solid #d4d4d4;
			}
		}

		&_item {
			padding-top: 3px;
			padding-right: 14px;
			padding-left: 14px;
			padding-bottom: 3px;
			background: none;
			border: none;
			font-family: "PT Sans", sans-serif;
			font-size: 14px;
			cursor: pointer;

			&-selected {
				background-color: #ffffff;
				font-weight: bold;
			}
		}
	}
}

// .element::-webkit-scrollbar {
//     width: 0;
// }

// /* ie 10+ */
// .element {
//     -ms-overflow-style: none;
// }

// /* фф (свойство больше не работает, других способов тоже нет)*/
// .element {
//     overflow: -moz-scrollbars-none;
// }
