#search .input-group form,
#sticky-search-bar .input-group form {
    position: relative;
}

.sg-search {
    display: none;
    position: absolute;
    z-index: 500;
    background-color: #fff;
    width: 100%;
    height: auto;
    overflow: hidden;
    -webkit-box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.15);
    -moz-box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.15);
    box-shadow: 0px 2px 1px rgba(0, 0, 0, 0.15);
}

#sticky-search-bar table:first-child,
.sg-search table {
    width: 100%;
    border-bottom: 1px solid #666;
    margin: 0px;
}

#sticky-search-bar table:last-child {
    width: 100%;
    margin: 0px;
}

.sg-search table tbody {
    border: none;
    background-color: #fff;
}

#sticky-search-bar table td,
.sg-search table td {
    padding: 0px !important;
    border-top: 1px solid #eee;
    font-family: "roboto", "Helvetica Neue", Arial, sans-serif !important;
    font-size: 13px;
}

#sticky-search-bar table td a,
.sg-search table td a {
    display: block;
    padding: 8px !important;
    color: #333;
    line-height: 1rem;
}

#sticky-search-bar table td .underline,
.sg-search table td .underline {
    text-decoration: underline;
}

#sticky-search-bar table tr:hover,
.sg-search table tr:hover {
    background-color: #f5f5f5 !important;
}

#sticky-search-bar table tr:first-of-type td,
.sg-search table tr:first-of-type td {
    width: 100%;
    padding: 8px !important;
    font-size: 15px;
    cursor: default;
    color: #E4002B !important;
    font-family: 'roboto-bold', "Helvetica Neue", Arial, sans-serif !important;
    text-transform: uppercase;
}

#sticky-search-bar table tr:first-of-type td:hover,
.sg-search table tr:first-of-type td:hover {
    background-color: #fff;
}

#sticky-search-bar table tr:nth-child(2n),
.sg-search table tr:nth-child(2n) {
    background-color: #fff;
}

#sticky-search-bar table tr td:nth-child(2n) a,
.sg-search table tr td:nth-child(2n) a {
    padding: 2rem 0rem !important;
}

#sticky-search-bar img,
.sg-search img {
    width: 80px;
    height: auto;
    border: 5px solid #fff;
}

#search #product-matches tr td:first-of-type {
    width: 25%;
}

#sticky-search-bar #product-matches tr td:first-of-type {
    width: 10%;
}

#product-matches b:last-of-type {
    display: block;
    margin-top: 5px;
}

#product-matches b:first-of-type {
    color: #000;
    display: inline;
    margin-top: 0px;
}

#product-matches {
    border: none;
}

#nothingSearched:focus {
    outline-color: initial;
    outline-style: initial;
    outline-width: 0px;
}

#nothingSearched h5 {
    margin-top: 0;
    margin-bottom: 0;
}

.result-box-hover,
.result-box:hover {
    background: #f5f5f5 !important;
    color: #FFFFFF;
}

/*Tablet*/

@media only screen and (min-device-width:481px) and (max-device-width:1024px) and (orientation:portrait) {
    #search form {
        padding: 0px 20px !important;
        box-sizing: border-box;
    }

    #search #SuggestiveSearchTextBox {
        width: 100%;
        height: 40px;
        font-size: 16px;
        color: #666;
    }

    .sg-search {
        box-shadow: none !important;
        margin-top: .5rem;
    }

    .sg-search img {
        width: 100px;
        margin-left: 1rem;
    }

    .sg-search table {
        border-bottom: none;
    }

    .sg-search table tr:first-of-type td {
        padding: .5rem 1rem !important;
        text-align: left;
    }

    .sg-search table tr:nth-child(2n) {
        background-color: transparent;
    }

    .sg-search table tbody {
        border: none;
        background-color: #fff;
    }

    .sg-search table td {
        padding: 5px !important;
    }

    .sg-search table td a {
        text-align: left;
        padding: 0px !important;
        line-height: 1rem;
    }

    body #search #search_btn {
        margin: 0px !important;
    }
}

@media screen and (max-width: 75em) and (orientation: landscape) {
    .sg-search {
        box-shadow: none !important;
        margin-top: .5rem;
    }

    .sg-search img {
        width: 100px;
        margin-left: 1rem;
    }

    .sg-search table {
        border-bottom: none;
    }

    .sg-search table tr:first-of-type td {
        padding: .5rem 1rem !important;
        text-align: left;
    }

    .sg-search table tr:nth-child(2n) {
        background-color: transparent;
    }

    .sg-search table tbody {
        border: none;
        background-color: #fff;
    }

    .sg-search table td {
        padding: 5px !important;
    }

    .sg-search table td a {
        text-align: left;
        padding: 0px !important;
        line-height: 1rem;
    }
}

/*Mobile*/

@media screen and (max-width: 39.9375em) {
    #search form {
        padding: 0px 10px !important;
        box-sizing: border-box;
    }

    #brands,
    #product-matches,
    #popular-searches tr:first-of-type {
        display: none;
    }

    #search #SuggestiveSearchTextBox {
        width: 100%;
        height: 40px;
        font-size: 16px;
    }

    body #search #search_btn {
        margin: 0px !important;
    }

    .sg-search {
        margin-top: .5rem;
        box-shadow: none !important;
    }

    .sg-search img {
        width: 125px;
    }

    .sg-search table {
        border-bottom: none;
    }

    .sg-search table tr:first-of-type td {
        padding: .5rem 1rem !important;
        text-align: left;
    }

    .sg-search table tr:nth-child(2n) {
        background-color: transparent;
    }

    .sg-search table tr td:nth-child(2n) a {
        padding: 0rem !important;
        text-align: left;
    }

    .sg-search table tbody {
        border: none;
        background-color: #fff;
    }

    .sg-search table td {
        padding: 5px !important;
    }

    .sg-search table td a {
        padding: 0px !important;
        line-height: 1rem;
    }
}

#nothingSearched strong {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 18px;
    font-family: 'open-sans-condensed-bold', sans-serif;
    font-weight: normal;
    color: #000;
    line-height: 1.4;
}

@media screen and (max-width: 39.9375em) {
    #nothingSearched strong {
        font-size: 17px;
    }
}

@media screen and (max-width: 75em) and (orientation: landscape) {
    #nothingSearched strong {
        font-size: 18px;
    }
}

@media screen and (min-width: 40em) and (max-width: 63.9375em) {
    #nothingSearched strong {
        font-size: 17px;
    }
}

/*New suggestive search styles*/
.possibleItemMatch .possibleItemMatch-items.item1 {
	display: block;
}

.possibleItemMatch-items {
	display: none;
}

#SuggestiveSearchResultArea {
	display: none;
	position: relative;
	top: -63px;
	z-index: 999;
	font-size: 12px;
	line-height: 18px;
	font-family: 'roboto', sans-serif;
	color: #333;
}

@media only screen and (max-width: 1200px) {
	#SuggestiveSearchResultArea {
		top: 65px;
	}
}

.searchTemplatesContainer + .typeAheadOverlay {
	width: 100%;
	z-index: 9000;
	position: absolute;
	top: 47px;
	height: 110vh;
	left: 0;
	background-color: #000;
	opacity: .4;
	display: none;
}

.searchTemplatesContainer {
	display: flex;
	position: absolute;
	width: 100%;
	border-width: 1px 0 0;
	border-top: 1px solid #E4002B;
	left: 50%;
	-webkit-transform: translateX(-50%);
	transform: translateX(-50%);
	z-index: 9001;
	box-shadow: 0px 15px 25px rgba(0,0,0,0.3);
}

@media only screen and (max-width: 1240px) {
	.searchTemplatesContainer {
		width: 97%;
	}
}

@media only screen and (max-width: 1200px) {
	.searchTemplatesContainer {
		position: fixed;
	}
}

@media only screen and (max-width: 639px) {
	.searchTemplatesContainer {
		width: 88%;
	}
}

.searchTemplatesContainer a:not(.see-all-item-matches) {
	color: inherit;
}

.searchTemplatesContainer > div.suggestedItems {
	-webkit-transition: width .5s;
	transition: width .5s;
}

.suggestionsBrandsCategories:not(:empty) + .suggestedItems {
	border-left: 5px solid #eee;
}

.searchTemplatesContainer > div {
	background: #fff;
	padding: 15px 25px;
	vertical-align: top;
}

@media only screen and (max-width: 1023px) {
	.searchTemplatesContainer > div {
		padding: 10px;
	}
}

.searchTemplatesContainer > div:empty:not(.typeAheadOverlay) {
	overflow: hidden;
	width: 0;
	min-width: 0;
	padding: 0;
	border: 0;
}

.suggestionsBrandsCategories > div {
	display: flex;
	margin-top: 15px;
}

.suggestionsBrandsCategories a,
.suggestionsBrandsCategories li {
	min-height: 30px;
	margin-bottom: 0;
}

@media only screen and (max-width: 639px) {
	.suggestionsBrandsCategories a,
	.suggestionsBrandsCategories li {
		font-size: 13px;
		line-height: 2.2;
	}
}

.suggestionsBrandsCategories > div:first-child {
	margin-top: 0;
}

.searchTemplatesContainer .search-title {
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 30px;
}

.searchTemplatesContainer .search-description {
	font-size: 14px;
}

.suggestionsBrandsCategories .search-title {
	width: 30%;
}

@media only screen and (max-width: 639px) {
	.suggestionsBrandsCategories .search-title {
		width: 40%;
		font-size: 12px;
	}
}

.suggestionsBrandsCategories .search-description {
	width: calc(100% - 138px);
	padding-left: 0px;
	font-size: 16px;
}

.suggestionsBrandsCategories .product-logo {
	width: 75px;
	padding: 8px 0 0;
}

@media only screen and (max-width: 767px) {
    .product-logo {
        display: none;
    }
}

@media only screen and (max-width: 639px) {
	.suggestionsBrandsCategories .search-description {
		width: 60%;
	}
}

.searchTemplatesContainer .search-description .link-text {
	width: 90%;
	display: inline-block;
	vertical-align: middle;
}

@media only screen and (max-width: 1023px) {
	.searchTemplatesContainer .search-description .link-text {
		width: 96%;
	}
}

@media only screen and (max-width: 611px) {
	.searchTemplatesContainer .search-description .link-text {
		width: 90%;
	}
}

.searchTemplatesContainer .search-description .autoFillContainer {
	width: 10%;
	text-align: center;
	height: 16px;
}

	.searchTemplatesContainer .search-description .autoFillContainer:hover #autoFill {
		fill: #404040;
	}

	.searchTemplatesContainer .search-description .autoFillContainer #autoFill {
		width: 10px;
		height: 10px;
		fill: #ccc;
	}

.searchHistory .search-description a,
.suggestionsBrandsCategories .search-description a {
	padding: 3px 5px;
	cursor: pointer;
	width: 100%;
	line-height: normal;
	display: inline-block;
}

.searchTemplatesContainer .ta-ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.searchHistory .search-description a:hover,
.suggestionsBrandsCategories .search-description a.hover,
.suggestionsBrandsCategories .search-description a:hover {
	background: #eee;
	position: relative;
}

	.suggestionsBrandsCategories .search-description a:hover:after,
	.suggestionsBrandsCategories .search-description a.hover:after {
		content: '';
		margin-left: 5px;
		border: 14px solid transparent;
		border-left-color: #eee;
		position: absolute;
		left: 100%;
		top: 50%;
		transform: translateY(-50%);
		z-index: 1;
	}

@media only screen and (max-width: 1023px) {
	.suggestionsBrandsCategories .search-description a:hover:after {
		content: '*';
		display: none;
	}
}

.suggestionsBrandsCategories .brands img {
	width: 40px;
	height: 16px;
	margin-right: 8px;
	vertical-align: middle;
}

.suggestedItems:not(:empty),
.suggestionsBrandsCategories:not(:empty) {
	min-height: 450px;
}

@media only screen and (max-width: 1200px) {
	.suggestedItems:not(:empty),
	.suggestionsBrandsCategories:not(:empty) {
		width: 100%;
		min-height: auto;
		height: 250px;
		overflow: auto;
	}
}

.suggestedItems {
	position: relative;
}

@media only screen and (max-width: 1200px) {
	.suggestedItems {
		display: none;
	}
}

.possibleItemMatch-items,
.recentlyViewed-items {
	margin-top: 15px;
}

.possibleItemMatch-item,
.recentlyViewed-item {
	position: relative;
	width: 33.33333333333333%;
	float: left;
	padding: 2%;
}

.possibleItemMatch-item-image,
.recentlyViewed-item-image {
	position: relative;
	width: 50%;
}

.searchTemplatesContainer > div:first-child {
	border: 0;
	padding-right: 0;
}

@media only screen and (max-width: 1023px) {
	.searchTemplatesContainer > div:first-child {
		padding-right: 10px;
	}
}

.overlay-on-hover:hover:after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	transition: background-color .2s;
	pointer-events: none;
	border-radius: inherit;
	background-color: rgba(0,0,0,.04);
}

.see-all-container {
	position: absolute;
	bottom: 0;
	right: 0;
	padding: inherit;
}

@media only screen and (max-width: 1200px) {
	.see-all-container {
		position: unset;
		text-align: right;
	}
}

.see-all-item-matches {
	color: #333;
	text-decoration: none;
	font-size: 12px;
	line-height: 18px;
}

	.see-all-item-matches:hover,
	.see-all-item-matches:hover .fa {
		color: #EE332C;
	}

	.see-all-item-matches .fa {
		color: #999;
		font-size: 8px;
	}

.searchTemplatesContainer:after,
.searchTemplatesContainer:before {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 18px solid transparent;
	border-bottom-color: #E4002B;
	top: -36px;
	left: 265px;
}

.searchTemplatesContainer:after {
	border-bottom-color: #fff;
	top: -35px;
}

@media only screen and (max-width: 1200px) {
	.searchTemplatesContainer:after,
	.searchTemplatesContainer:before {
		left: 50%;
		transform: translateX(-50%);
	}
}

@media (max-width: 1160px) {
	#searchautocomplete .recently-viewed-item a {
		font-size: 11px;
	}

	.search-suggested-articles,
	.search-suggested-items {
		width: 29%;
	}
}
.possibleItemMatch-item-shortDesc {
	height:36px;
}

/* END  new suggestive search*/