/* Hifiparts Search – suggestions panel */
form.hps-host {
	position: relative;
}

.hps-box {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 100000;
	box-sizing: border-box;
	min-width: min(460px, 94vw);
	max-height: min(70vh, 560px);
	margin: 6px 0 0;
	padding: 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	text-align: left;
	color: #1d1d1f;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
	font-size: 14px;
	line-height: 1.35;
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

.hps-box[hidden] {
	display: none;
}

.hps-box a.hps-item,
.hps-box a.hps-all {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 8px;
	color: #1d1d1f;
	text-decoration: none;
	border-radius: 7px;
}

.hps-box a.hps-item:hover,
.hps-box a.hps-item.hps-active,
.hps-box a.hps-all:hover,
.hps-box a.hps-all.hps-active {
	color: #1d1d1f;
	background: #f1f3f5;
}

.hps-box .hps-img {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	background: #f1f3f5;
}

.hps-box .hps-main {
	flex: 1 1 auto;
	min-width: 0;
}

.hps-box .hps-title {
	display: block;
	overflow-wrap: anywhere;
}

.hps-box .hps-title b {
	font-weight: 700;
}

.hps-box .hps-badge {
	display: inline-block;
	margin-top: 2px;
	padding: 0 6px;
	color: #7a4b00;
	background: #fff1d6;
	border-radius: 4px;
	font-size: 11px;
	line-height: 1.6;
}

.hps-box .hps-out .hps-img,
.hps-box .hps-out .hps-title {
	opacity: 0.65;
}

.hps-box .hps-price {
	flex: 0 0 auto;
	padding-left: 6px;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.hps-box a.hps-all {
	justify-content: center;
	margin-top: 4px;
	padding: 9px 8px;
	border-top: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 0 0 7px 7px;
	font-weight: 600;
}

.hps-box .hps-note,
.hps-box .hps-empty {
	padding: 8px 10px;
	color: #5c6066;
	font-size: 13px;
}

.hps-box .hps-empty {
	color: #1d1d1f;
	font-weight: 600;
}

@media (max-width: 549px) {
	.hps-box {
		min-width: 0;
		max-height: 62vh;
		font-size: 13px;
	}

	.hps-box .hps-img {
		flex-basis: 38px;
		width: 38px;
		height: 38px;
	}
}
