/*!
 * product-search.css — KCM - WooCommerce Product Search
 *
 * Adapted from css/product-search.css of WooCommerce Product Search 7.6.0
 * (Copyright (c) "kento" Karim Rahimpur, www.itthinx.com), which is distributed
 * under the GPL. Only the rules that style the search field and its live results
 * are kept; the product-filter rules are not (this plugin does not ship those
 * widgets). Loaded under the original's style handle "product-search", so theme
 * and child-theme overrides keep matching.
 */

div.product-search {
	box-sizing: border-box;
	display: block;
	float: none;
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
}
div.product-search-form {
	display: block;
	float: none;
	position: relative;
	width: 100%;
}

div.product-search-form input {
	width: 100%;
}

div.product-search div.product-search-form form.product-search-form {
	padding: 0;
	margin: 0;
	border: 0;
}

div.product-search-results {
	box-sizing: border-box;
	display: block;
	left: 0;
	margin: 0;
	padding: 0;
	position: relative;
	top: 0;
	border: none;
}
div.product-search-results-content {
	display: block;
	float: none;
	height: auto; /* adapt height to results, good when max-height is used to avoid showing an empty box when no search was done;
	/* max-height will be set explicitly if requested */
	overflow-x: hidden;
	overflow-y: auto;
	position: static;
	z-index: auto;
	width: 100%; /* necessary to fill the whole available width always even if the contents are narrower */
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid #ccc;
}
div.product-search-results-content:empty {
	border: none;
}

div.product-search.floating div.product-search-results-content {
	position: absolute;
	z-index: 99999;
}

div.product-search-form span.product-search-field-clear {
	cursor: pointer;
	position: absolute;
	right: 0;
	height: 1px;
	overflow: visible;
	margin: auto 0;
	top: -1em;
	bottom: 0.5em;
	padding: 0 0.5em;
}
div.product-search-form span.product-search-field-clear:after {
	content: "\d7";
}

.product-search input[type="text"].product-search-field,
.product-search input[type="text"].product-filter-field,
.product-search-filter-price input.product-search-filter-price-field {
	margin: 0;
}
.product-search input[type="text"].product-search-field,
.product-search input[type="text"].product-filter-field {
	display: inline-block;
}

div.product-search-form form.product-search-form.show-submit-button {
	display: flex;
}
div.product-search-form form.product-search-form.show-submit-button input[type="text"].product-search-field,
div.product-search-form form.product-search-form.show-submit-button input[type="text"].product-filter-field {
	display: inline-block;
	overflow: hidden;
	flex: auto;
}
div.product-search-form form.product-search-form.show-submit-button span.product-search-field-clear {
	display: inline-block;
	flex: auto;
	position: relative;
	overflow: visible;
	margin: auto 0;
	right: 1em;
	height: auto;
	width: 0;
	top: auto;
	bottom: auto;
	padding: 0;
}
div.product-search-form form.product-search-form.show-submit-button button {
	display: inline-block;
	flex: initial;
	margin: 0 0 0 2px;
	padding: 0.3em 0.5em;
}

.product-search .product-search-results-content {
	display: none;
}
.product-search-form input.blinker {
	background-image: url( ../images/blinker.gif );
	background-position: right center;
	background-repeat: no-repeat;
}
.product-search-results .entry,
.product-search-results .no-results {
	padding: 1px;
}

.product-search-results .entry a,
.product-search-results .search-results .entry a {
	text-decoration: none;
	font-weight: inherit;
}
.product-search-results .entry span.title {
	font: inherit;
	display: block;
}
.product-search-results .entry span.title,
.product-search-results .entry span.description,
.product-search-results .entry span.price,
.product-search-results .entry img.thumbnail {
	vertical-align: middle;
}
.product-search-results .entry span.description {
	display: block;
	font-size: 85%;
}
.product-search-results .entry span.price {
	display: block;
	font-size: 95%;
}
.product-search-results .entry span.price .amount {
	display: inline-block;
	font-size: inherit;
}

.product-search-results .entry img.thumbnail {
	max-width: none;
	box-shadow: unset;
}
.product-search-results .entry a:hover {
	text-decoration: none !important;
}
.product-search-results .entry a span.title:hover {
	text-decoration: underline;
}
.product-search-results .entry:hover,
.product-search-results .entry.active {
	background-color: #f0f0f0;
}
.product-search-results .entry.s_product_cat.first {
	border-top: 1px solid #ccc;
}
.product-search-results table.search-results {
	table-layout: auto;
}
.product-search-results table.search-results {
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	width: 100%;
}
.product-search-results table.search-results td:last-child {
	width: 100%;
}
.product-search-results table.search-results tr:nth-child(n) td {
	background-color: inherit;
}
.product-search-results table.search-results tr,
.product-search-results table.search-results tr td,
.entry-content .product-search-results table.search-results tr td {
	border: none;
	margin: 0;
	padding: 0;
}
.product-search-results table.search-results tr td,
.entry-content .product-search-results table.search-results tr td {
	padding: 4px;
	vertical-align: top;
	text-align: left;
}
