/* Woo Smart Search — front-end dropdown styles */

:root {
	--wss-accent: #2563eb;
}

.wss-dropdown {
	position: fixed;
	z-index: 2147483000;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba( 15, 23, 42, 0.14 );
	margin-top: 0;
	max-height: 70vh;
	overflow-y: auto;
	min-width: 280px;
	font-size: 14px;
	color: #111827;
	-webkit-overflow-scrolling: touch;
}

.wss-loading,
.wss-empty {
	padding: 16px 18px;
	color: #6b7280;
	text-align: center;
}

.wss-suggest {
	padding: 10px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #6b7280;
	background: #f9fafb;
	border-radius: 10px 10px 0 0;
}

.wss-suggest-btn {
	background: none;
	border: none;
	color: var( --wss-accent );
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	font-size: inherit;
	text-decoration: underline;
}

.wss-list {
	list-style: none;
	margin: 0;
	padding: 6px;
}

.wss-item {
	margin: 0;
	border-radius: 8px;
}

.wss-item.wss-active,
.wss-item:hover {
	background: #f3f4f6;
}

.wss-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
}

.wss-link:hover {
	text-decoration: none;
	color: inherit;
}

.wss-thumb {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	border-radius: 6px;
	overflow: hidden;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wss-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wss-meta {
	flex: 1 1 auto;
	min-width: 0;
}

.wss-title {
	display: block;
	font-weight: 500;
	line-height: 1.3;
	color: #111827;
	white-space: normal;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.wss-mark {
	background: transparent;
	color: var( --wss-accent );
	font-weight: 700;
	padding: 0;
}

.wss-sub {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #6b7280;
}

.wss-price {
	flex: 0 0 auto;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
	text-align: right;
}

.wss-price del {
	color: #9ca3af;
	font-weight: 400;
	margin-right: 4px;
}

.wss-price ins {
	text-decoration: none;
	color: var( --wss-accent );
}

.wss-viewall {
	display: block;
	padding: 12px 16px;
	text-align: center;
	font-weight: 600;
	color: var( --wss-accent );
	text-decoration: none;
	border-top: 1px solid #f1f5f9;
	position: sticky;
	bottom: 0;
	background: #fff;
	border-radius: 0 0 10px 10px;
}

.wss-viewall:hover {
	background: #f9fafb;
	color: var( --wss-accent );
}

/* Standalone shortcode box */
.wss-standalone {
	position: relative;
	max-width: 480px;
}

.wss-standalone-input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	font-size: 15px;
	box-sizing: border-box;
}

.wss-standalone-input:focus {
	outline: none;
	border-color: var( --wss-accent );
	box-shadow: 0 0 0 3px rgba( 37, 99, 235, 0.15 );
}

@media ( max-width: 600px ) {
	.wss-dropdown {
		min-width: 240px;
	}
	.wss-thumb {
		flex-basis: 40px;
		width: 40px;
		height: 40px;
	}
}

/* --- Section labels --- */
.wss-section-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #9ca3af;
	padding: 10px 16px 4px;
}

/* --- Category suggestions (prominent "Search all X" rows) --- */
.wss-cats {
	list-style: none;
	margin: 0;
	padding: 6px;
	border-bottom: 1px solid #f1f5f9;
}

.wss-cat-item {
	margin: 0;
	border-radius: 8px;
}

.wss-cat-link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 12px;
	text-decoration: none;
	color: var( --wss-accent );
	font-weight: 600;
	background: #eef4ff;
	background: color-mix( in srgb, var( --wss-accent ) 7%, transparent );
	border-radius: 8px;
}

.wss-cat-item:hover .wss-cat-link,
.wss-cat-item.wss-active .wss-cat-link {
	background: #e0ebff;
	background: color-mix( in srgb, var( --wss-accent ) 14%, transparent );
}

.wss-cat-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	color: var( --wss-accent );
}

.wss-cat-name {
	flex: 1 1 auto;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.wss-cat-count {
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 700;
	color: var( --wss-accent );
	background: #fff;
	border-radius: 999px;
	padding: 2px 9px;
	min-width: 20px;
	text-align: center;
}

.wss-cat-arrow {
	flex: 0 0 auto;
	font-size: 16px;
	line-height: 1;
	color: var( --wss-accent );
	opacity: 0.7;
}

/* --- Desktop: larger, roomier results + a framed panel --- */
@media ( min-width: 782px ) {
	.wss-dropdown {
		font-size: 15px;
		border-radius: 12px;
		border-color: #e2e8f0;
		box-shadow: 0 16px 44px rgba( 15, 23, 42, 0.16 );
		margin-top: 8px;
	}

	.wss-link {
		gap: 16px;
		padding: 13px 16px;
	}

	.wss-thumb {
		flex-basis: 60px;
		width: 60px;
		height: 60px;
		border-radius: 8px;
	}

	.wss-title {
		font-size: 15px;
		line-height: 1.35;
	}

	.wss-sub {
		font-size: 13px;
		margin-top: 3px;
	}

	.wss-price {
		font-size: 15px;
	}

	.wss-cat-link {
		padding: 11px 16px;
		font-size: 15px;
	}

	.wss-viewall {
		padding: 14px 16px;
		font-size: 15px;
	}
}
