/* Search window (opens from the header search button). */
.lwnsw {
	--lwnsw-navy: #143447;
	--lwnsw-coral: var(--wp--preset--color--secondary-color, #e8475f);
	--lwnsw-line: #e4e9f2;
	--lwnsw-ghost: #f4f7fd;
	--lwnsw-muted: #667085;
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(20, 52, 71, .55);
	padding: 9vh 16px 16px;
	direction: rtl;
}
.lwnsw[hidden] { display: none; }
.lwnsw *, .lwnsw *::before, .lwnsw *::after { box-sizing: border-box; }
html.lwnsw-open { overflow: hidden; }
.lwnsw-panel {
	max-width: 640px;
	margin: 0 auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
	display: flex;
	flex-direction: column;
	max-height: 80vh;
	overflow: hidden;
	animation: lwnsw-in .14s ease-out;
}
@keyframes lwnsw-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lwnsw-panel { animation: none; } }
.lwnsw-in { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--lwnsw-line); color: var(--lwnsw-navy); margin: 0; }
.lwnsw-in input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 19px; color: var(--lwnsw-navy); background: none; padding: 4px 0; }
.lwnsw-in input::-webkit-search-cancel-button { display: none; }
.lwnsw-close, .lwnsw kbd {
	font: 12px/1.4 Consolas, "DejaVu Sans Mono", monospace;
	border: 1px solid var(--lwnsw-line);
	border-bottom-width: 2px;
	border-radius: 6px;
	padding: 2px 7px;
	color: var(--lwnsw-muted);
	background: #fff;
	direction: ltr;
}
.lwnsw-close { cursor: pointer; font: inherit; font-size: 13px; direction: rtl; display: flex; align-items: center; gap: 6px; padding: 3px 8px; color: var(--lwnsw-navy); }
.lwnsw-close:hover { border-color: var(--lwnsw-navy); }
.lwnsw-close kbd { border: 0; padding: 0; font-size: 11.5px; }
.lwnsw-list { overflow-y: auto; padding: 6px 10px 10px; min-height: 64px; transition: opacity .15s; }
.lwnsw-list.is-loading { opacity: .55; }
.lwnsw-hint { color: var(--lwnsw-muted); text-align: center; margin: 22px 10px; line-height: 1.9; font-size: 14.5px; }
.lwnsw-hint b { color: var(--lwnsw-navy); }
.lwnsw-grp h4 { margin: 10px 8px 4px; font-size: 12px; font-weight: 700; color: var(--lwnsw-muted); }
.lwnsw-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.lwnsw-item[aria-selected="true"], .lwnsw-item:focus-visible { background: var(--lwnsw-ghost); outline: 0; }
.lwnsw-t { flex: 1; min-width: 0; color: var(--lwnsw-navy); font-weight: 700; font-size: 14.5px; line-height: 1.6; }
.lwnsw-t small { display: block; font-weight: 400; color: var(--lwnsw-muted); font-size: 12.5px; }
.lwnsw-enter { color: var(--lwnsw-muted); visibility: hidden; }
.lwnsw-item[aria-selected="true"] .lwnsw-enter { visibility: visible; }
.lwnsw mark, .lwn-sr-page mark { background: #fdecef; color: inherit; border-radius: 4px; padding: 0 2px; }
.lwnsw-badge, .lwnsr-badge {
	flex: none;
	min-width: 54px;
	text-align: center;
	font-size: 11.5px;
	font-weight: 700;
	padding: 2px 9px;
	border-radius: 999px;
	background: #f4f7fd;
	color: #143447;
}
.lwnsw-badge--lp, .lwnsr-badge--lp { background: #143447; color: #fff; }
.lwnsw-badge--gd, .lwnsr-badge--gd { background: #eff8ff; color: #175cd3; }
.lwnsw-badge--sn, .lwnsr-badge--sn { background: #ecfdf3; color: #027a48; }
.lwnsw-badge--mc, .lwnsr-badge--mc { background: #fffaeb; color: #b54708; }
.lwnsw-badge--q, .lwnsr-badge--q { background: #fdecef; color: #b42338; }
.lwnsw-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--lwnsw-line); font-size: 12.5px; color: var(--lwnsw-muted); }
.lwnsw-all { color: var(--lwnsw-coral); font-weight: 700; text-decoration: none; margin-inline-start: auto; }
@media (max-width: 600px) {
	.lwnsw { padding: 0; }
	.lwnsw-panel { max-width: none; height: 100%; max-height: none; border-radius: 0; }
	.lwnsw-keys { display: none; }
}
.lwnsw .lwnsw-close { display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; flex: none; line-height: 1.4; }
.lwnsw .lwnsw-close kbd { display: inline-block; margin: 0; }
.lwnsw-keys { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
