/* ---------------------------------------------------------------------------
   site-search.css -- instant catalogue search dropdown (js/site-search.js)

   Every selector is namespaced .bwss-* and the panel is appended to <body>,
   not inside .nav-search-bar, so this cannot disturb the existing nav layout.
   Removing the <script> tag in menu.prod.cfm leaves these rules unused and
   harmless.
   --------------------------------------------------------------------------- */

.bwss-panel {
	position: fixed;
	z-index: 9999;
	background: #ffffff;
	border: 1px solid #d5d5d5;
	border-radius: 2px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
	max-height: 70vh;
	max-width: calc(100vw - 20px);
	overflow-y: auto;
	font-size: 14px;
	line-height: 1.35;
	color: #1c1c1c;
	text-align: left;
}

.bwss-panel[hidden] {
	display: none;
}

.bwss-row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	padding: 9px 12px;
	border-bottom: 1px solid #eeeeee;
	text-decoration: none;
	color: inherit;
}

.bwss-row:last-of-type {
	border-bottom: 0;
}

.bwss-row:hover,
.bwss-row.is-active {
	background: #f4f4f2;
}

.bwss-row:focus-visible {
	outline: 2px solid #8f6524;
	outline-offset: -2px;
}

.bwss-name {
	grid-column: 1;
	grid-row: 1;
	font-weight: 600;
}

.bwss-nick {
	font-weight: 400;
	color: #6a6a6a;
}

.bwss-price {
	grid-column: 2;
	grid-row: 1;
	text-align: right;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.bwss-meta {
	grid-column: 1 / -1;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 2px 10px;
	font-size: 12px;
	color: #767676;
}

.bwss-ref {
	font-family: Consolas, "Courier New", monospace;
}

.bwss-mark {
	background: #fdf3d3;
	color: inherit;
	padding: 0 1px;
}

.bwss-empty {
	display: block;
	padding: 14px 12px;
	color: #6a6a6a;
}

.bwss-all {
	display: block;
	width: 100%;
	padding: 10px 12px;
	text-align: left;
	background: #fafafa;
	border: 0;
	border-top: 1px solid #e4e4e4;
	font: inherit;
	color: #1c1c1c;
	cursor: pointer;
}

.bwss-all:hover {
	background: #f0f0ee;
}

.bwss-all:focus-visible {
	outline: 2px solid #8f6524;
	outline-offset: -2px;
}
