/* Instant search overlay. Text colours match the results page: #24242b on #fff = 14.4:1,
   #55555f on #fff = 7.1:1, white on #a82a56 = 5.9:1. */

.wmss-nav-item { display: flex; align-items: center; }
.wmss-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 14px;
	height: 100%;
	min-height: 40px;
	color: #fff;
	background: transparent;
	border: 0;
	cursor: pointer;
	line-height: 1;
}
.wmss-nav-btn:hover { color: #ffd9e6; }
.wmss-nav-btn:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }

body.wmss-ov-open { overflow: hidden; }

.wmss-ov {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(20, 12, 16, 0.62);
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 6vh 16px 16px;
}
.wmss-ov[hidden] { display: none; }

.wmss-ov-inner {
	width: 100%;
	max-width: 620px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-height: 84vh;
}

.wmss-ov-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px;
	border-bottom: 1px solid #dcdce3;
}
.wmss-ov-input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 12px 14px;
	font-size: 1.02rem;
	color: #24242b;
	background: #fff;
	border: 2px solid #c9c9d1;
	border-radius: 6px;
}
.wmss-ov-input:focus { outline: none; border-color: #a82a56; }
.wmss-ov-close {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	font-size: 1.5rem;
	line-height: 1;
	color: #44444d;
	background: #f0f0f4;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.wmss-ov-close:hover { background: #e2e2e9; color: #24242b; }

.wmss-ov-results { overflow-y: auto; padding: 6px 0 10px; }
.wmss-ov-note { margin: 0; padding: 22px 18px; color: #55555f; }

.wmss-ov-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px 6px;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #55555f;
}
.wmss-ov-num {
	padding: 1px 7px;
	font-size: 0.72rem;
	color: #fff;
	background: #55555f;
	border-radius: 10px;
}

.wmss-ov-row {
	display: flex;
	gap: 11px;
	align-items: center;
	padding: 9px 16px;
	text-decoration: none;
	color: inherit;
}
.wmss-ov-row:hover,
.wmss-ov-row.is-active { background: #f4f4f7; }
.wmss-ov-th {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 5px;
	overflow: hidden;
	background: #ebebf0;
}
.wmss-ov-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wmss-ov-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wmss-ov-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: #24242b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.wmss-ov-meta { font-size: 0.82rem; color: #55555f; }
.wmss-ov-demo {
	display: inline-block;
	padding: 0 6px;
	font-size: 0.68rem;
	font-weight: 700;
	color: #fff;
	background: #2c6e49;
	border-radius: 3px;
	vertical-align: 1px;
}
.wmss-ov-more {
	display: block;
	padding: 8px 16px 12px;
	font-size: 0.86rem;
	font-weight: 700;
	color: #a82a56;
	text-decoration: none;
}
.wmss-ov-more:hover { text-decoration: underline; }

@media (max-width: 600px) {
	.wmss-ov { padding: 0; }
	.wmss-ov-inner { max-width: none; border-radius: 0; max-height: 100vh; height: 100%; }
}
