.kit-flat-select {
	position: relative;
	width: auto;
	box-sizing: border-box;
	font-family: "PT Sans", sans-serif;
}

.kit-selectR.form-control:focus {
	outline: none;
}

.kit-selectR-offscreen {
	position: absolute;
	top: 0;
	left: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.kit-selectR-container {
	position: relative;
	display: inline-block;
	margin: 0;
	zoom: 1;
	box-sizing: border-box;
	vertical-align: middle;

	.kit-selectR-cpa-control & + & {
		z-index: 2;
	}
}

.kit-selectR-choice {
	position: relative;
	display: block;
	height: 29px;
	padding: 0;
	background-color: #fdfdfd;
	background-image: linear-gradient(to bottom, #fdfdfd, #f5f5f5);
	background-clip: padding-box;
	border: 1px solid #b0b2b5;
	border-radius: 2px;
	overflow: hidden;
	font-size: 14px;
	line-height: 27px;
	color: #000000;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	user-select: none;

	&::after {
		content: "";
		position: absolute;
		top: 0;
		right: 0;
		display: block;
		width: 22px;
		height: 100%;
		background: url(./images/selectR.png) no-repeat 3px 49%;
	}

	.kit-selectR-focus & {
		border-color: #5897fb;
	}

	.form-control_small & {
		height: 21px;
		font-size: 13px;
		line-height: 18px;
	}

	.kit-selectR-container.kit-selectR-above & {
		background-image: linear-gradient(to bottom, #ffffff, #f5f5f5);
		border-top-color: transparent;
	}

	.kit-selectR-container.kit-selectR-disabled & {
		background: #f5f5f5 none;
		border: 1px solid #eaeaea;
		color: #8a8a8a;
		cursor: default;
	}

	.kit-selectR:not(.kit-selectR-disabled).form-control:focus & {
		border-color: #5897fb;
	}

	.kit-selectR-multi &::after {
		background-position: -120px 50%;
	}

	.kit-selectR-open &::after {
		background-position: -27px 50%;
	}

	.kit-selectR-container.kit-selectR-disabled &::after {
		opacity: 0.4;
		filter: alpha(opacity=40);
	}
}

.kit-selectR-chosen {
	display: block;
	width: auto;
	max-width: 100%;
	padding-right: 26px;
	padding-left: 7px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;

	.kit-selectR-placeholder & {
		color: #767676;
		font-style: italic;
	}
	.kit-selectR-allowclear & {
		margin-right: 42px;
	}
}

.kit-selectR-clear {
	position: absolute;
	top: 50%;
	right: 19px;
	display: block;
	width: 21px;
	height: 21px;
	margin-top: -11px;
	background: url(./images/selectR.png) -54px 50% no-repeat;
	outline: none;
	font-size: 0;
	cursor: pointer;

	&:hover {
		background-position: -84px 50%;
	}

	.kit-selectR-choices-result & {
		right: 2px;
		display: block;
		height: 100%;
	}

	.kit-selectR-allowclear & {
		display: block;
	}

	.kit-selectR-container.kit-selectR-disabled & {
		display: none;
	}
}

.kit-selectR__search-list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.kit-selectR-drop {
	position: absolute;
	z-index: 9997;
	display: flex;
	min-width: 100%;
	margin-top: -2px;
	background: #ffffff;
	border: 1px solid #b0b2b5;
	border-top: 0;
	border-radius: 0 0 2px 2px;
	box-sizing: border-box;
	font-family: "PT Sans", sans-serif;
	color: #000000;

	&_hidden {
		display: none;
	}
}

.kit-selectR-drop-header {
	background: #f5f5f5;
}

.kit-selectR-drop-module {
	padding: 10px 15px 10px;

	& + & {
		border-top: 1px solid #dfdfdf;
	}

	.kit-selectR-search + & {
		padding-top: 0;
	}
}

.kit-selectR-drop-module-items {
	max-height: 150px;
	padding-bottom: 0;
	overflow-y: scroll;
}

.kit-selectR-drop-footer {
	display: table;
	width: 100%;
	background: #f5f5f5;
	border-top: 1px solid #d9d9d9;

	.kit-selectR-drop.kit-selectR-above & {
		border-bottom: 1px solid #d9d9d9;
	}
}

.kit-selectR-drop-footer-left {
	display: table-cell;
	padding: 10px 0 10px 15px;

	.button {
		margin-right: 10px;
	}
}

.kit-selectR-drop-footer-right {
	display: table-cell;
	padding: 10px 15px 10px 0;
	text-align: right;
}

.kit-selectR-request-item {
	padding-right: 5px;
	padding-left: 24px;
	background: #fff7d7 url(./images/selectR-preloader-input.gif) no-repeat 0
		40%;
	border-radius: 2px;
	font-style: italic;
}

.kit-selectR-search {
	padding: 0 8px 8px;

	.kit-selectR-above & {
		padding-top: 8px;
	}
}

.kit-selectR-input {
	position: relative;
	display: block;

	input {
		display: block;
		width: 100%;
		height: auto;
		min-height: 19px;
		margin: 0;
		padding: 4px 20px 4px 6px;
		background: #ffffff url(./images/selectR.png) no-repeat 100% -53px;
		border: 1px solid #b0b2b5;
		border-radius: 2px;
		outline: 0;
		box-shadow: inset 0 1px 1px #dddddd;
		box-sizing: border-box;
		font-size: 13px;

		.kit-selectR-multi & {
			height: 100%;
			min-height: 27px;
			background: transparent none;
			border: 0;
			box-shadow: none;
			cursor: pointer;
		}
	}

	.kit-selectR-multi & {
		margin-right: 26px;
	}
}

.kit-selectR-input.kit-selectR-request input {
	background: #ffffff url(./images/selectR-preloader-input.gif) no-repeat 100%
		50%;
}

.kit-selectR-input-clear {
	position: absolute;
	top: 1px;
	right: 22px;
	bottom: 1px;
	display: none;
	width: 23px;
	background: url(./images/selectR.png) no-repeat -205px 50%;
	cursor: pointer;

	&:hover {
		background-position: -235px 50%;
	}

	.kit-selectR-input.kit-selectR-filled & {
		display: block;
	}
}

.kit-selectR-drop-main {
	max-height: 450px;
	border-top: 1px dashed #929393;
	overflow-x: hidden;
	overflow-y: auto;
	scroll-snap-type: y proximity;

	&_filter {
		float: left;
		width: 40%;
	}
}

.kit-selectR-results {
	$self: &;
	position: relative;
	margin: 0;
	padding: 4px 0;
	background: #ffffff;

	& & {
		padding: 0;
	}

	#{$self}.tree {
		margin-left: 15px;
	}

	.tree__label {
		display: block;
	}

	.tree__item_nesting > .tree__label:hover {
		color: #3875d7;
	}

	.tree__item_nesting.state-disabled > .tree__label:hover {
		color: inherit;
	}
}

.kit-selectR-result {
	position: relative;
	display: block;
	background-image: none;
	outline: none;
	list-style: none;
}

.kit-selectR-label {
	position: relative;
	min-height: 1em;
	margin: 0;
	padding: 3px 15px 4px;
	font-size: 14px;
	color: #000000;
	cursor: pointer;
	user-select: none;
	-webkit-touch-callout: none;

	.kit-selectR-result.kit-selectR-disabled > & {
		color: #000000;
		cursor: default;
	}

	.kit-selectR-results-default .kit-selectR-nesting > & {
		font-weight: bold;
	}
	.kit-selectR-results-default .kit-selectR-results-default & {
		padding-left: 43px;
	}

	.kit-selectR-results-default .kit-selectR-selected > & {
		background-color: #dddddd;
	}
	.kit-selectR-results-default .kit-selectR-selected-multi > & {
		color: #7f7f7f;
	}

	.kit-selectR-result > &:hover,
	.kit-selectR-result:focus > & {
		background: #3875d7;
		color: #ffffff;
	}

	.kit-selectR-results-default .kit-selectR-unselectable > & {
		cursor: default;
	}

	.kit-selectR-result.kit-selectR-disabled.kit-selectR-readonly > & {
		background: #ffffff;
		opacity: 1;
		font-weight: bolder;
		color: #000000;
	}

	.kit-selectR-results-default .kit-selectR-result:hover > &,
	.kit-selectR-results-default
		.kit-selectR-highlighted:not(.kit-selectR-selected)
		> & {
		background: #3875d7;
		color: #ffffff;
	}

	.kit-selectR-results-default .kit-selectR-nesting .kit-selectR-nesting & {
		font-weight: normal;
	}

	.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		& {
		padding-left: 71px;
	}

	.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		& {
		padding-left: 99px;
	}

	.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		.kit-selectR-results-default
		& {
		padding-left: 128px;
	}
}

.kit-selectR-results-default .kit-selectR-nesting + .kit-selectR-nesting {
	margin: 12px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #d9d9d9;
}
.kit-selectR-results-default
	.kit-selectR-nesting
	.kit-selectR-nesting
	+ .kit-selectR-nesting {
	margin: 0;
	padding: 0;
	border-top: 0;
}

.kit-selectR-results-default .kit-selectR-selected-multi::after {
	content: "";
	position: absolute;
	top: 9px;
	left: 4px;
	width: 6px;
	height: 6px;
	background: url(./images/selectR.png) no-repeat -150px -33px;
}

.kit-selectR-results-default
	.kit-selectR-selected-multi.kit-selectR-highlighted::after {
	background-position: -180px -33px;
}

.kit-selectR-results-default {
	.kit-selectR-result:hover,
	.kit-selectR-highlighted:not(.kit-selectR-selected) {
		outline: none;
	}

	.kit-selectR-highlighted:not(.kit-selectR-selected) {
		scroll-snap-align: center;
	}
}

.kit-selectR-overlay {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 9998;
	width: auto;
	min-width: 100%;
	height: auto;
	min-height: 100%;
	margin: 0;
	padding: 0;
	background-color: #ffffff;
	border: 0;
	opacity: 0;
	filter: alpha(opacity=0);
}

.kit-selectR-choices {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0;
}

.kit-selectR-choices-result {
	position: relative;
	display: inline-block;
	margin-bottom: 10px;
	background-color: #e8e9eb;
	border-radius: 2px;
	vertical-align: top;
	cursor: default;
	user-select: none;
	-webkit-touch-callout: none;

	.kit-selectR-choices-default & {
		display: block;
	}
	.kit-selectR-choices-inline & {
		margin-right: 10px;
	}

	&_action {
		cursor: pointer;

		&:hover {
			background-color: #dddddd;
		}
	}
}

.kit-selectR-choices-label {
	display: -webkit-box;
	padding: 3px 24px 3px 6px;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.16;
	vertical-align: middle;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;

	.kit-selectR-choices-result-categories & {
		font-size: 14px;
	}
}

.kit-selectR-choices-inline-minimized {
	height: 31px;
	overflow: hidden;
}

.kit-selectR-drop.kit-selectR-above {
	top: auto;
	bottom: 100%;
	margin-bottom: 28px;
	border-top: 1px solid #b0b2b5;
	border-bottom: 0;
	border-radius: 2px 2px 0 0;
}

.kit-selectR-horizontal-extension-button {
	width: 100%;
	margin-top: 4px;
	padding: 2px 0;
	cursor: pointer;

	&:hover {
		background-color: #e8e9eb;
	}
}

.kit-selectR-horizontal-extension-image {
	display: block;
	width: 8px;
	height: 8px;
	margin: 0 auto;
}

.kit-selectR-horizontal-extension-image-open {
	background: url(./images/selectR.png) no-repeat 0px -33px;
}

.kit-selectR-horizontal-extension-image-close {
	background: url(./images/selectR.png) no-repeat -30px -33px;
}

.kit-selectR-drop-footer .button_primary {
	min-width: 106px;
}

.kit-selectR-drop-footer-info {
	font-size: 11px;
	font-style: italic;
}

.kit-selectR-drop-footer-info-item {
	margin-left: 2px;
	white-space: nowrap;
}

.kit-selectR-checkbox {
	position: absolute;
	top: 4px;
	left: 3px;
	display: block;
	width: 15px;
	height: 15px;
	background: url(./images/selectR.png) no-repeat -300px -29px;

	&:hover {
		background-position: -390px -29px;
	}

	.kit-selectR-disabled > .kit-selectR-label & {
		background-position: -300px -29px;
	}
}

.kit-selectR-checkbox-checked,
.kit-selectR-checkbox-checked:hover,
.kit-selectR-disabled > .kit-selectR-label .kit-selectR-checkbox-checked {
	background-position: -360px -29px;
}

.kit-selectR-checkbox-part,
.kit-selectR-checkbox-part:hover,
.kit-selectR-disabled > .kit-selectR-label .kit-selectR-checkbox-part {
	background-position: -330px -29px;
}

.kit-selectR-module-state {
	font-style: italic;
}

.kit-selectR-module-reset {
	margin-left: 20px;
	font-style: italic;
	white-space: nowrap;
}

.kit-selectR-module-label {
	padding-bottom: 6px;
	font-weight: bold;
}

.kit-selectR-cpa-control {
	position: relative;
}

.kit-selectR-drop-right {
	display: flex;
	flex-direction: column;
	order: 10;
	width: 60%;

	&::before {
		content: "";
		position: absolute;
		top: 0;
		z-index: 1;
		display: block;
		width: 1px;
		height: 100%;
		background: #dfdfdf;
	}
}

.kit-selectR-choices-result-categories {
	background: none;
}

/* RETINA*/
@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
	.kit-selectR-choice::after,
	.kit-selectR-clear,
	.kit-selectR-input input,
	.kit-selectR-input-clear,
	.kit-selectR-checkbox,
	.kit-selectR-results-tree .kit-selectR-nesting::after {
		background-image: url(./images/selectR@2x.png);
		background-size: 450px 72px;
	}
	.kit-selectR-request-item {
		background-image: url(./images/selectR-preloader-input@2x.gif);
		background-size: 24px 18px;
	}
}

/* для фиксированной ширины, например .w50 = 50px */
@each $fixed-width in 50, 60, 70, 80, 90, 100, 110, 120, 130, 150, 170, 180, 200,
	230, 260, 300, 330, 400, 470, 500, 750
{
	.w#{$fixed-width} {
		width: #{$fixed-width}px;
	}
}
