﻿.typeahead {
	width: 90%;
	max-width: 800px;
	margin: auto;
	display: block;
	padding-bottom: 0px;
	position: relative;
}

.typeahead input {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 700px;
	padding: 0px;
}

.twitter-typeahead {
	float: left;
	width: 50%; /* May need adjusting, depending on your theme */
}

.dms-admin .twitter-typeahead {
	width: 100% !important;
}

.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint { margin-bottom: 0; }

.typeahead ul,
.typeahead li {
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
	font: inherit;
	font-size: 100%;
	vertical-align: baseline;
}

.tt-menu {
	width: 100%;
	min-width: 300px;
	max-width: 700px;
	max-height: 600px; /* DESKTOP Max Height of Results DIV */
	overflow-y: auto;
	margin-top: 10px;
	padding: 0;
	background-color: #fff;
	border-radius: 4px;
	border: 1px solid rgba(0,0,0,0.15);
	box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15) !important;
}

@media screen and (max-width:767px) {
	.twitter-typeahead {
		width: 87.5%; /* May need adjusting, depending on your theme */
	}
	.tt-menu {
		max-height: 385px; /* MOBILE Max Height of Results DIV */
	}
}

.tt-suggestion {
	display: block;
	padding: 10px;
	border-bottom: 1px solid rgba(0,0,0,0.15);
	text-decoration: none !important;
}

.tt-suggestion:last-child { border-bottom: none; }

.tt-suggestion:hover {
	background: rgba(0,0,0,0.05);
	cursor: pointer !important;
}

table.suggestions {
	width: 100%;
	margin: 0;
}

table.suggestions td.image-cell {
	width: 50px;
	padding: 0 10px 0 0;
	text-align: center;
	vertical-align: middle;
}

table.suggestions td.image-cell img {
	max-width: 50px;
	height: auto;
	border-radius: 0px;
}

table.suggestions td.item-cell {
	padding: 0;
	font-size: 16px;
	color: #000;
	text-align: left;
	vertical-align: top;
}

table.suggestions td.item-cell .highlight {
	color: #28a745 !important;
	text-decoration: underline !important;
}

table.suggestions tr.sku-row { }

table.suggestions td.sku-cell {
	padding: 5px 0 0 0;
	font-size: 12px;
	color: #6c757d;
	text-align: left;
	vertical-align: top;
	font-weight: normal;
}

table.suggestions td.price-cell {
	padding: 5px 0 0 0;
	font-size: 18px;
	color: #28a745;
	text-align: left;
	vertical-align: bottom;
	font-weight: bold;
}

table.suggestions td.category-cell {
	padding: 0;
	font-size: 12px;
	color: #6c757d;
	font-style: italic;
	text-align: right;
	vertical-align: bottom;
}

.typeahead-footer {
	text-align: left;
	padding: 10px;
	font-size: 12px;
}

div.search-menu { overflow: visible !important; }

#admin-top-menu a.suggestion { margin: 0; }
