/* HyperSearch — Lightning Fast Results. Developed by WebWorks Media */
.wwm-hs { --wwm-hs-accent: #e30613; margin: 0 0 20px; font: inherit; }
.wwm-hs *, .wwm-hs-panel * { box-sizing: border-box; }
.wwm-hs__box {
	position: relative; display: flex; align-items: center;
	background: #fff; border: 2px solid #d7dce1; border-radius: 10px;
	transition: border-color .15s, box-shadow .15s;
}
.wwm-hs__box:focus-within {
	border-color: var(--wwm-hs-accent);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--wwm-hs-accent) 15%, transparent);
}
.wwm-hs__icon { flex: none; width: 20px; height: 20px; margin-left: 14px; color: #8a939d; }
.wwm-hs .wwm-hs__input {
	flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 12px;
	border: 0; background: transparent; box-shadow: none; outline: none;
	color: #1d2327; font: inherit; font-size: 1.05em;
	-webkit-appearance: none; appearance: none;
}
.wwm-hs__button {
	flex: none; height: 42px; margin: 5px; padding: 0 22px;
	border: 0; border-radius: 7px; background: var(--wwm-hs-accent); color: #fff;
	font: inherit; font-weight: 700; cursor: pointer; transition: filter .15s;
}
.wwm-hs__button:hover { filter: brightness(.92); }
.wwm-hs__button:focus-visible { outline: 3px solid color-mix(in srgb, var(--wwm-hs-accent) 40%, transparent); outline-offset: 2px; }

/* Instant results */
.wwm-hs-panel {
	--wwm-hs-accent: #e30613;
	--wwm-hs-ink: #1d2327;
	--wwm-hs-muted: #5b6470;
	--wwm-hs-line: #eef0f2;
	--wwm-hs-save: #0a7d3c;
	--wwm-hs-save-bg: #e7f6ed;
	position: absolute; z-index: 99999;
	max-height: min(78vh, 680px); overflow-y: auto;
	background: #fff; color: var(--wwm-hs-ink);
	border: 1px solid #d7dce1; border-radius: 14px;
	box-shadow: 0 22px 50px rgba(16, 24, 40, .2);
	font-size: 15px; line-height: 1.35; text-align: left;
}
.wwm-hs-panel[hidden] { display: none; }
.wwm-hs-panel > .wwm-hs-item, .wwm-hs-panel > .wwm-hs-panel__fix, .wwm-hs-panel > .wwm-hs-panel__none { margin: 0 8px; }
.wwm-hs-panel > :first-child { margin-top: 8px; }

/* Product row: image | title + code + stock | price */
.wwm-hs-item {
	display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center;
	padding: 10px; border-radius: 10px;
	color: inherit !important; text-decoration: none !important;
}
.wwm-hs-item--noimg { grid-template-columns: minmax(0, 1fr) auto; }
.wwm-hs-item + .wwm-hs-item:not(.wwm-hs-item--link) { box-shadow: 0 -1px 0 var(--wwm-hs-line); }
.wwm-hs-item:hover, .wwm-hs-item.is-active { background: #f4f6f8; box-shadow: none; }
.wwm-hs-item:hover + .wwm-hs-item, .wwm-hs-item.is-active + .wwm-hs-item { box-shadow: none; }
.wwm-hs-item__media {
	display: grid; place-items: center; width: 64px; height: 64px;
	border: 1px solid #eceff2; border-radius: 8px; background: #fff; overflow: hidden;
}
.wwm-hs-item__img { width: 100%; height: 100%; object-fit: contain; }
.wwm-hs-item__text { min-width: 0; }
.wwm-hs-item__title {
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-weight: 600; line-height: 1.3;
}
.wwm-hs-item__title mark {
	background: none; color: inherit; font-weight: 800; padding: 0;
	text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--wwm-hs-accent) 45%, transparent);
	text-decoration-thickness: 2px; text-underline-offset: 2px;
}
.wwm-hs-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12.5px; color: var(--wwm-hs-muted); }
.wwm-hs-item__sku {
	padding: 1px 6px; border-radius: 4px; background: #f3f5f7; color: #454e58;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wwm-hs-stock { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; }
.wwm-hs-stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wwm-hs-stock--in { color: var(--wwm-hs-save); }
.wwm-hs-stock--low, .wwm-hs-stock--back { color: #b35c00; }
.wwm-hs-stock--out { color: #8a939d; }
.wwm-hs-item.is-out .wwm-hs-item__media, .wwm-hs-item.is-out .wwm-hs-item__title { opacity: .55; }

/* Price column */
.wwm-hs-item__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.wwm-hs-price__now { font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.wwm-hs-price__now.is-sale { color: var(--wwm-hs-accent); }
.wwm-hs-price__vat { margin-top: 2px; font-size: 11.5px; color: var(--wwm-hs-muted); }
.wwm-hs-price__was { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; }
.wwm-hs-price__was del { color: #8a939d; }
.wwm-hs-price__save { padding: 2px 7px; border-radius: 5px; background: var(--wwm-hs-save-bg); color: var(--wwm-hs-save); font-weight: 700; }
.wwm-hs-item__price--html { display: block; font-size: 16px; font-weight: 700; }
.wwm-hs-item__price--html del { opacity: .55; font-weight: 400; margin-right: 4px; }
.wwm-hs-item__price--html ins { text-decoration: none; color: var(--wwm-hs-accent); }

/* Footer button */
.wwm-hs-panel__foot {
	position: sticky; bottom: 0; margin-top: 6px; padding: 12px 16px 14px;
	border-top: 1px solid var(--wwm-hs-line); background: #fafbfc;
}
.wwm-hs-panel__all {
	display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 14px;
	border-radius: 9px; background: var(--wwm-hs-accent);
	color: #fff !important; font-weight: 700; text-align: center; text-decoration: none !important;
	transition: filter .15s;
}
.wwm-hs-panel__all:hover, .wwm-hs-panel__all:focus-visible { filter: brightness(.92); }
.wwm-hs-panel__none { padding: 14px 12px; color: var(--wwm-hs-muted); }
.wwm-hs-panel > .wwm-hs-panel__none:last-child, .wwm-hs-panel > .wwm-hs-item--link:last-child { margin-bottom: 8px; }

/* "Showing results for" */
.wwm-hs-panel__fix { padding: 8px 10px 6px; font-size: .88em; color: var(--wwm-hs-muted); }
.wwm-hs-panel__fix strong { color: var(--wwm-hs-ink); }
.wwm-hs-fixed { margin: 0 0 16px; padding: 10px 14px; border-left: 4px solid var(--wwm-hs-accent, #e30613); background: #f5f7f9; border-radius: 6px; }

/* Quick links */
.wwm-hs-item--link {
	grid-template-columns: 28px minmax(0, 1fr) auto; margin-bottom: 4px !important;
	background: color-mix(in srgb, var(--wwm-hs-accent) 5%, #fff);
}
.wwm-hs-item--link:hover, .wwm-hs-item--link.is-active { background: color-mix(in srgb, var(--wwm-hs-accent) 11%, #fff); }
.wwm-hs-item__icon { display: grid; place-items: center; width: 28px; height: 28px; color: var(--wwm-hs-accent); }
.wwm-hs-item__icon svg { width: 20px; height: 20px; }
.wwm-hs-item__badge {
	padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800;
	text-transform: uppercase; letter-spacing: .05em;
	color: var(--wwm-hs-accent); background: color-mix(in srgb, var(--wwm-hs-accent) 13%, #fff);
}

/* Phones: price moves under the title */
@media (max-width: 560px) {
	.wwm-hs__button { padding: 0 14px; }
	.wwm-hs-item:not(.wwm-hs-item--link) {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas: "media title" "media price" "media meta";
		column-gap: 12px; row-gap: 0; align-items: start;
	}
	.wwm-hs-item--noimg:not(.wwm-hs-item--link) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "price" "meta"; }
	.wwm-hs-item:not(.wwm-hs-item--link) .wwm-hs-item__text { display: contents; }
	.wwm-hs-item__media { grid-area: media; width: 56px; height: 56px; }
	.wwm-hs-item__title { grid-area: title; }
	.wwm-hs-item__meta { grid-area: meta; }
	.wwm-hs-item__price {
		grid-area: price; flex-direction: row; flex-wrap: wrap; align-items: center;
		gap: 2px 8px; margin-top: 4px; text-align: left; white-space: normal;
	}
	.wwm-hs-price__now { font-size: 19px; }
	.wwm-hs-price__was { margin-top: 0; }
	.wwm-hs-price__vat { order: 3; margin: 0; }
	.wwm-hs-panel__foot { padding: 12px; }
	.wwm-hs-panel__all { min-height: 50px; border-radius: 12px; }
}

/* ---- Suggestions (1.5.0) ---- */
/* Popular searches under the [hypersearch] box */
.wwm-hs-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: .9em; line-height: 1.3; }
.wwm-hs-pop__label { color: #5b6470; font-weight: 700; margin-right: 2px; }
.wwm-hs-pop a {
	display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px;
	background: #f4f6f8; border: 1px solid #e4e7ec; color: #1d2327 !important; text-decoration: none !important;
	transition: border-color .15s, color .15s, background .15s;
}
.wwm-hs-pop a:hover, .wwm-hs-pop a:focus-visible {
	border-color: var(--wwm-hs-accent); color: var(--wwm-hs-accent) !important;
	background: color-mix(in srgb, var(--wwm-hs-accent) 7%, #fff); outline: none;
}

/* Section headings in the dropdown */
.wwm-hs-panel .wwm-hs-sec {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0; padding: 12px 18px 5px;
	font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #98a2b3;
}
.wwm-hs-panel .wwm-hs-sec + .wwm-hs-sec { padding-top: 4px; }
.wwm-hs-panel > .wwm-hs-sug + .wwm-hs-sec, .wwm-hs-panel > .wwm-hs-chips + .wwm-hs-sec { border-top: 1px solid var(--wwm-hs-line); margin: 6px 8px 0; padding-left: 10px; padding-right: 10px; }
.wwm-hs-sec__clear {
	border: 0; background: none; padding: 0; margin: 0; cursor: pointer;
	font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--wwm-hs-accent);
}
.wwm-hs-sec__clear:hover { text-decoration: underline; }

/* Suggested and recent searches */
.wwm-hs-panel > .wwm-hs-sug {
	display: flex; align-items: center; gap: 12px; margin: 0 8px; padding: 9px 10px; border-radius: 9px;
	color: var(--wwm-hs-ink) !important; text-decoration: none !important; font-size: 15px;
}
.wwm-hs-sug svg { flex: none; width: 17px; height: 17px; color: #98a2b3; }
.wwm-hs-sug:hover, .wwm-hs-sug.is-active { background: #f4f6f8; }
.wwm-hs-sug__q { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wwm-hs-sug em { font-style: normal; font-weight: 400; color: var(--wwm-hs-muted); }
.wwm-hs-sug strong { font-weight: 800; }
.wwm-hs-sug small { margin-left: auto; padding-left: 10px; color: #98a2b3; font-size: 12.5px; white-space: nowrap; }
.wwm-hs-sug__x {
	margin-left: auto; flex: none; width: 26px; height: 26px; border: 0; border-radius: 6px; background: none;
	color: #b4bac2; font-size: 13px; line-height: 1; cursor: pointer;
}
.wwm-hs-sug__x:hover { background: #e9ecef; color: var(--wwm-hs-ink); }

/* Popular chips in the dropdown */
.wwm-hs-panel .wwm-hs-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 4px 18px 16px; }
.wwm-hs-chip {
	padding: 5px 12px; border-radius: 999px; background: #f4f6f8; border: 1px solid #e4e7ec;
	font-size: 13.5px; color: var(--wwm-hs-ink) !important; text-decoration: none !important;
}
.wwm-hs-chip:hover, .wwm-hs-chip.is-active { border-color: var(--wwm-hs-accent); color: var(--wwm-hs-accent) !important; background: color-mix(in srgb, var(--wwm-hs-accent) 7%, #fff); }
