/* Header search panel (UX review 2026-10-25).
 * Pairs with front-end/search-panel.php and assets/js/search-panel.js.
 * Ported from the OnlySecurity panel. */

/* ---- The AWS result block holds our panel ----------------------------- */
.aws-search-result .aws_result_scroll {
	max-height: min(640px, 78vh) !important;
	overflow: auto;
}
.aws-search-result .ksp {
	padding: 18px 20px 14px;
	color: #131a2b;
	font-size: 14px;
	line-height: 1.4;
	text-align: left;
}
/* Desktop dropdown: start a little below the box, clear of the header icons. */
@media (min-width: 993px) {
	.aws-search-result { margin-top: 10px; }
	body.aws-overlay .aws-search-result { margin-top: 0; }
}
.ksp-cols {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 20px;
}
.ksp-cols.ksp-n1 { grid-template-columns: 1fr; }
.ksp h4 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #5b6478;
}
.ksp h4.ksp-gap { margin-top: 16px; }
.ksp-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 8px 6px;
	border-radius: 9px;
	color: inherit;
	text-decoration: none;
}
.ksp-item:hover,
.ksp-item:focus-visible { background: #f1f6fb; outline: 0; }
.ksp-img {
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 8px;
	object-fit: contain;
	background: #fff;
	border: 1px solid #eef0f5;
}
.ksp-img.ksp-round { border-radius: 50%; }
.ksp-ph { display: inline-block; }
.ksp-t { flex: 1; font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.ksp-t small { display: block; font-weight: 400; font-size: 12px; color: #5b6478; }
.ksp-price { font-weight: 700; font-size: 13px; white-space: nowrap; text-align: right; }
.ksp-ok { color: #177a3c; }
.ksp-low { color: #b45309; }
.ksp-no { color: #b42318; }
.ksp-price .ksec-vat-inc[hidden] { display: none; }
.ksp-was { font-weight: 400; color: #5b6478; margin-right: 4px; }
.ksp-price small { display: block; font-weight: 400; font-size: 10.5px; color: #5b6478; text-align: right; }
.ksp mark { background: #fff0a8; color: inherit; border-radius: 3px; padding: 0 1px; }
.ksp-more {
	display: inline-block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #0a7f9c;
	text-decoration: none;
}
.ksp-chip {
	display: inline-block;
	margin: 0 6px 7px 0;
	padding: 4px 12px;
	border: 1px solid #d9dfea;
	border-radius: 99px;
	background: #f7f9fc;
	color: inherit;
	font: inherit;
	font-size: 12.5px;
	cursor: pointer;
}
.ksp-chip:hover,
.ksp-chip:focus-visible { border-color: #12b3d6; outline: 0; }
.ksp-cat .ksp-t { font-size: 13.5px; }
.ksp-count { color: #5b6478; font-weight: 600; font-size: 13px; }
.ksp-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #eef0f5;
}
.ksp-foot a { font-size: 13px; font-weight: 700; color: #0a7f9c; text-decoration: none; }
.ksp-none { padding: 26px; text-align: center; color: #5b6478; }
.ksp-center { text-align: center; }
.ksp-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ksp-tab {
	padding: 5px 14px;
	border: 1px solid #c9d0de;
	border-radius: 99px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.ksp-tab.ksp-on { background: #12b3d6; border-color: #12b3d6; color: #06222b; font-weight: 700; }

/* ---- Phone: AWS's full screen layout as the takeover ------------------
 * AWS moves the form into <body> as .aws-mobile-fixed; its own CSS is
 * specific, so the takeover rules below are deliberately strong. */
body.aws-overlay .aws-overlay-mask {
	background: #080e1e !important;
	opacity: 1 !important;
	z-index: 99990 !important;
}
body.aws-overlay .aws-container.ksp-hdr.aws-mobile-fixed {
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	width: 100% !important;
	max-width: 100vw !important;
	box-sizing: border-box;
	padding: 18px 16px 8px !important;
	background: #080e1e !important;
	z-index: 100001;
}
body.aws-overlay .ksp-hdr .aws-search-form,
body.aws-overlay .ksp-hdr .aws-wrapper { background: transparent !important; box-sizing: border-box; max-width: 100%; }
body.aws-overlay .ksp-hdr .aws-search-field {
	background: transparent !important;
	color: #fff !important;
	border: 0 !important;
	border-bottom: 2px solid #12b3d6 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	padding-left: 0 !important;
}
body.aws-overlay .ksp-hdr .aws-search-field::placeholder { color: #5d6f93; }
body.aws-overlay .ksp-hdr .aws-search-btn { background: transparent !important; }
body.aws-overlay .ksp-hdr .aws-search-btn svg { fill: #9fb0cf !important; }
body.aws-overlay .aws-mobile-fixed-close { color: #9fb0cf; }
body.aws-overlay .aws-mobile-fixed-close svg path { fill: #9fb0cf !important; }
/* The result block is fixed and scrolls by itself: AWS fixes the body in the
 * takeover, so nothing else can scroll. Its top is set in px by the layout
 * filter in the script (just under the moved form). */
body.aws-overlay .aws-search-result {
	position: fixed !important;
	bottom: 0 !important;
	left: 0 !important;
	right: 0 !important;
	width: 100% !important;
	max-width: 100vw !important;
	height: auto !important;
	background: #080e1e !important;
	border: 0 !important;
	box-shadow: none !important;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	z-index: 100000 !important;
}
body.aws-overlay .aws-search-result .aws_result_scroll { max-height: none !important; overflow: visible; }
body.aws-overlay .aws-mobile-fixed-close:focus-visible { outline: 2px solid #5fd4ee; outline-offset: 2px; }
body.aws-overlay .ksp { color: #fff; padding: 14px 16px 30px; }
body.aws-overlay .ksp-cols,
body.aws-overlay .ksp-cols.ksp-n2,
body.aws-overlay .ksp-cols.ksp-n1 { grid-template-columns: 1fr; gap: 18px; }
body.aws-overlay .ksp h4 { color: #8da0c4; }
body.aws-overlay .ksp-item:hover,
body.aws-overlay .ksp-item:focus-visible { background: rgba(255, 255, 255, .07); }
body.aws-overlay .ksp-t small,
body.aws-overlay .ksp-price small,
body.aws-overlay .ksp-count { color: #90a3c6; }
body.aws-overlay .ksp-ok { color: #6ee19a; }
body.aws-overlay .ksp-low { color: #fbbf24; }
body.aws-overlay .ksp-no { color: #fca5a5; }
body.aws-overlay .ksp mark { background: #f5b50a; color: #111; }
body.aws-overlay .ksp-chip { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .2); color: #eaf0fc; }
body.aws-overlay .ksp-tab { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .22); color: #eaf0fc; }
body.aws-overlay .ksp-tab.ksp-on { background: #12b3d6; border-color: #12b3d6; color: #06222b; }
body.aws-overlay .ksp-foot { border-color: rgba(255, 255, 255, .1); }
body.aws-overlay .ksp-foot a,
body.aws-overlay .ksp-more { color: #5fd4ee; }
body.aws-overlay .ksp-none { color: #90a3c6; }
