/* Root */
.wtas {
	position: relative;
	width: 100%;
	max-width: 520px;
	font-family: inherit;
}

.wtas__form {
	position: relative;
	margin: 0;
}

.wtas__control {
	position: relative;
	display: flex;
	align-items: center;
}

.wtas__input {
	width: 100%;
	height: 46px;
	padding: 0 26px 0 8px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #fff;
	color: #222;
	font-size: 15px;
	line-height: 1.4;
	outline: none;
	box-sizing: border-box;
}

.wtas__input:focus {
	border-color: #999;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.wtas__submit {
	position: absolute;
	top: 45%;
	right: 0;
	width: 32px;
	/* height: 46px; */
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: #222;
	font-size: 40px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
	appearance: none;
}

.wtas__submit:hover,
.wtas__submit:focus,
.wtas__submit:active {
	border: 0;
	outline: 0;
	background: transparent;
	box-shadow: none;
}

.wtas__results {
	position: absolute;
	z-index: 99999;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	overflow: hidden;
	max-height: 360px;
	border: 1px solid #e4e4e4;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	box-sizing: border-box;
}

.wtas__item {
	display: block;
	padding: 12px 16px;
	border-bottom: 1px solid #f0f0f0;
	color: #222;
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
}

.wtas__item:last-child {
	border-bottom: 0;
}

.wtas__item:hover,
.wtas__item.is-active {
	background: #f7f7f7;
}

.wtas__item-title {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wtas__loading,
.wtas__empty {
	padding: 14px 16px;
	color: #666;
	font-size: 14px;
	line-height: 1.4;
}

@media (max-width: 640px) {
	.wtas {
		max-width: 100%;
	}

	/* .wtas__input {
		height: 44px;
	}

	.wtas__submit {
		height: 44px;
	} */
}
