/* Dropdown container */
body .g11-product-search {
	position: relative !important;
	width: 100% !important;
	overflow: visible !important;
}

body .g11-product-search .g11-search-results {
	position: absolute !important;
	top: calc(100% + 4px) !important;
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%) !important;

	display: none;
	width: 720px !important;
	max-width: calc(100vw - 30px) !important;
	max-height: 520px !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;

	margin: 0 !important;
	padding: 0 !important;

	background: #ffffff !important;
	border: 1px solid #d8dee6 !important;
	border-radius: 4px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22) !important;

	color: #1f2937 !important;
	text-align: left !important;
	z-index: 999999 !important;
}

/* Show after JavaScript removes hidden */
body .g11-product-search .g11-search-results:not([hidden]) {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Section headings */
body .g11-search-results .g11-search-heading {
	display: block !important;
	margin: 0 !important;
	padding: 8px 14px !important;

	background: #f6f3ee !important;
	border-bottom: 1px solid #e4e7eb !important;

	color: #657184 !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.07em !important;
	text-transform: uppercase !important;
}

/* Individual product row */
body .g11-search-results a.g11-search-product {
	display: grid !important;
	grid-template-columns: 64px minmax(190px, 1fr) 130px 100px !important;
	gap: 14px !important;
	align-items: center !important;

	float: none !important;
	clear: both !important;
	width: 100% !important;
	min-height: 82px !important;

	margin: 0 !important;
	padding: 9px 14px !important;

	background: #ffffff !important;
	border: 0 !important;
	border-bottom: 1px solid #e4e7eb !important;
	border-radius: 0 !important;
	box-shadow: none !important;

	color: #1f2937 !important;
	text-decoration: none !important;
}

/* Hover and keyboard selection */
body .g11-search-results a.g11-search-product:hover,
body .g11-search-results a.g11-search-product:focus,
body .g11-search-results a.g11-search-product.is-active {
	background: #eaf5fc !important;
	color: #1f2937 !important;
	outline: none !important;
}

/* Thumbnail box */
body .g11-search-results .g11-search-image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;

	width: 62px !important;
	height: 62px !important;
	min-width: 62px !important;
	max-width: 62px !important;
	min-height: 62px !important;
	max-height: 62px !important;

	margin: 0 !important;
	padding: 3px !important;

	overflow: hidden !important;
	background: #ffffff !important;
	border: 1px solid #e1e5ea !important;
	border-radius: 3px !important;
}

/* Prevent WooCommerce from making the thumbnail huge */
body .g11-search-results .g11-search-image img {
	display: block !important;
	float: none !important;

	width: 54px !important;
	height: 54px !important;
	min-width: 0 !important;
	max-width: 54px !important;
	min-height: 0 !important;
	max-height: 54px !important;

	margin: 0 auto !important;
	padding: 0 !important;

	object-fit: contain !important;
	background: #ffffff !important;
	border: 0 !important;
	box-shadow: none !important;
}

/* Product name and SKU */
body .g11-search-results .g11-search-description {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 4px !important;
	min-width: 0 !important;
	margin: 0 !important;
}

body .g11-search-results .g11-search-description strong {
	display: block !important;
	width: 100% !important;

	color: #1f2937 !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;

	overflow: hidden !important;
	text-overflow: ellipsis !important;
	white-space: nowrap !important;
}

body .g11-search-results .g11-search-description small {
	display: block !important;
	color: #697588 !important;
	font-size: 12px !important;
	line-height: 1.3 !important;
}

/* Stock */
body .g11-search-results .g11-search-stock {
	display: block !important;
	margin: 0 !important;

	color: #178147 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1.3 !important;
	text-align: left !important;
}

/* Price */
body .g11-search-results .g11-search-price {
	display: block !important;
	margin: 0 !important;

	color: #1f2937 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-align: right !important;
	white-space: nowrap !important;
}

body .g11-search-results .g11-search-price * {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* Category and brand rows */
body .g11-search-results a.g11-search-term {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 15px !important;

	float: none !important;
	width: 100% !important;

	margin: 0 !important;
	padding: 11px 14px !important;

	background: #ffffff !important;
	border-bottom: 1px solid #e4e7eb !important;

	color: #1f2937 !important;
	font-size: 14px !important;
	text-decoration: none !important;
}

body .g11-search-results a.g11-search-term:hover,
body .g11-search-results a.g11-search-term:focus {
	background: #eaf5fc !important;
}

body .g11-search-results .g11-search-term small {
	color: #697588 !important;
	font-size: 12px !important;
	white-space: nowrap !important;
}

/* See all row */
body .g11-search-results a.g11-search-all {
	display: block !important;
	float: none !important;
	width: 100% !important;

	margin: 0 !important;
	padding: 13px 14px !important;

	background: #ffffff !important;
	color: #0879c9 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.4 !important;
	text-align: center !important;
	text-decoration: none !important;
}

body .g11-search-results a.g11-search-all:hover,
body .g11-search-results a.g11-search-all:focus {
	background: #eaf5fc !important;
}

/* Loading and empty state */
body .g11-search-results .g11-search-empty {
	display: block !important;
	margin: 0 !important;
	padding: 16px !important;

	background: #ffffff !important;
	color: #697588 !important;
	font-size: 14px !important;
	text-align: center !important;
}

/* Parents must not clip the dropdown */
body .site-search,
body .widget_product_search,
body .custom-header-container1,
body .secondary-navigation-wrapper {
	overflow: visible !important;
}

/* Tablet */
@media screen and (max-width: 800px) {
	body .g11-search-results a.g11-search-product {
		grid-template-columns: 58px minmax(150px, 1fr) 95px !important;
	}

	body .g11-search-results .g11-search-stock {
		grid-column: 2 !important;
	}

	body .g11-search-results .g11-search-price {
		grid-column: 3 !important;
		grid-row: 1 / span 2 !important;
	}
}

/* Mobile */
@media screen and (max-width: 520px) {
	body .g11-product-search .g11-search-results {
		position: fixed !important;
		top: 70px !important;
		left: 10px !important;
		right: 10px !important;
		transform: none !important;

		width: auto !important;
		max-width: none !important;
		max-height: calc(100vh - 90px) !important;
	}

	body .g11-search-results a.g11-search-product {
		grid-template-columns: 52px minmax(0, 1fr) auto !important;
		gap: 10px !important;
		padding: 9px 10px !important;
	}

	body .g11-search-results .g11-search-image {
		width: 52px !important;
		height: 52px !important;
		min-width: 52px !important;
		max-width: 52px !important;
		min-height: 52px !important;
		max-height: 52px !important;
		grid-row: 1 / span 2 !important;
	}

	body .g11-search-results .g11-search-image img {
		width: 46px !important;
		height: 46px !important;
		max-width: 46px !important;
		max-height: 46px !important;
	}

	body .g11-search-results .g11-search-description strong {
		white-space: normal !important;
	}

	body .g11-search-results .g11-search-stock {
		grid-column: 2 !important;
		grid-row: 2 !important;
	}

	body .g11-search-results .g11-search-price {
		grid-column: 3 !important;
		grid-row: 1 / span 2 !important;
	}
}

.g11-search-results .g11-search-product {
	display: grid;
	grid-template-columns: 60px minmax(0, 1fr) 110px 110px;
	align-items: center;
	gap: 16px;
	padding: 14px 22px;
	border-bottom: 1px solid #dce2e8;
	color: #202b3c;
	text-decoration: none;
}

.g11-search-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background: #faf8f5;
	border: 1px solid #dce2e8;
	border-radius: 4px;
}

.g11-search-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.g11-search-description strong,
.g11-search-description small {
	display: block;
}

.g11-search-description strong {
	font-size: 16px;
	font-weight: 500;
}

.g11-search-description small {
	margin-top: 5px;
	color: #738095;
}

.g11-search-stock {
	font-size: 13px;
}

.g11-search-price {
	text-align: right;
	font-size: 17px;
	font-weight: 700;
}

.g11-search-price del {
	display: block;
	font-size: 12px;
	font-weight: 400;
}

.g11-search-price ins {
	background: transparent;
}

.g11-search-product:hover,
.g11-search-product.is-active {
	background: #edf6fc;
}

@media (max-width: 600px) {
	.g11-search-results .g11-search-product {
		grid-template-columns: 48px minmax(0, 1fr) 85px;
		gap: 10px;
		padding: 12px;
	}

	.g11-search-image {
		width: 48px;
		height: 48px;
	}

	.g11-search-stock {
		grid-column: 2;
		grid-row: 2;
	}

	.g11-search-price {
		grid-column: 3;
		grid-row: 1 / span 2;
	}
}
body .g11-search-results .g11-search-stock.in-stock {
    color: #449D44 !important;
}

body .g11-search-results .g11-search-stock.low-stock {
    color: #F0AD4E !important;
}

body .g11-search-results .g11-search-stock.out-of-stock {
    color: #757575 !important;
}

body .g11-search-results .g11-search-stock.on-backorder {
    color: #ff9800 !important;
}

body .g11-search-results a.g11-search-suggestion {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e4e7eb !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

body .g11-search-results a.g11-search-suggestion:hover,
body .g11-search-results a.g11-search-suggestion:focus,
body .g11-search-results a.g11-search-suggestion.is-active {
    background: #eaf5fc !important;
}

body .g11-search-results .g11-search-suggestion strong {
    color: #0879c9 !important;
}

body .g11-search-results .g11-search-suggestion small {
    color: #697588 !important;
    white-space: nowrap !important;
}
body .g11-search-results a.g11-search-suggestion {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 15px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 14px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e4e7eb !important;
    color: #1f2937 !important;
    text-decoration: none !important;
}

body .g11-search-results a.g11-search-suggestion:hover,
body .g11-search-results a.g11-search-suggestion:focus,
body .g11-search-results a.g11-search-suggestion.is-active {
    background: #eaf5fc !important;
}

body .g11-search-results .g11-search-suggestion strong {
    color: #0879c9 !important;
}

body .g11-search-results .g11-search-suggestion small {
    color: #697588 !important;
    white-space: nowrap !important;
}
.g11-search-results a[data-g11-search-result].is-active,
.g11-search-results a[data-g11-search-result]:hover {
    background: #eaf4fc !important;
    box-shadow: inset 3px 0 0 #087bbb;
}