/* TNP Search Rules: live product dropdown.
   Override the --tnp-sr-* variables in the theme to restyle it. */
.tnp-sr-dd {
	--tnp-sr-bg: #fff;
	--tnp-sr-text: #16181d;
	--tnp-sr-muted: #5c6370;
	--tnp-sr-border: #e3e6ea;
	--tnp-sr-hover: #f3f5f7;
	--tnp-sr-accent: #16181d;

	position: fixed;
	z-index: 100000;
	box-sizing: border-box;
	margin: 0;
	padding: 6px;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--tnp-sr-bg);
	color: var(--tnp-sr-text);
	border: 1px solid var(--tnp-sr-border);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
}

.tnp-sr-dd[hidden] {
	display: none !important;
}

.tnp-sr-dd .tnp-sr-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px;
	border-radius: 7px;
	color: inherit;
	text-decoration: none;
}

.tnp-sr-dd .tnp-sr-item:hover,
.tnp-sr-dd .tnp-sr-item.is-active {
	background: var(--tnp-sr-hover);
}

.tnp-sr-dd .tnp-sr-thumb {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin: 0;
	object-fit: cover;
	border-radius: 6px;
	background: var(--tnp-sr-hover);
}

.tnp-sr-dd .tnp-sr-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tnp-sr-dd .tnp-sr-title {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.tnp-sr-dd .tnp-sr-price {
	color: var(--tnp-sr-muted);
	font-size: 13px;
}

.tnp-sr-dd .tnp-sr-price del {
	opacity: 0.6;
	margin-right: 4px;
}

.tnp-sr-dd .tnp-sr-price ins {
	text-decoration: none;
	color: var(--tnp-sr-text);
}

.tnp-sr-dd .tnp-sr-all {
	display: block;
	margin-top: 4px;
	padding: 10px 8px;
	border-top: 1px solid var(--tnp-sr-border);
	color: var(--tnp-sr-accent);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
}

.tnp-sr-dd .tnp-sr-all:hover {
	text-decoration: underline;
}

.tnp-sr-dd .tnp-sr-empty {
	padding: 14px 8px;
	color: var(--tnp-sr-muted);
	text-align: center;
}
