/* WPC Smart Search: modern live search dropdown, on top of Advanced Woo Search. */

.aws-search-result {
	--wpcs-ink: #111111;
	--wpcs-cream: #f5e9d7;
	--wpcs-cream-soft: #faf5ec;
	--wpcs-gold: #d4b380;
	--wpcs-gold-dark: #8a6a2f;
	--wpcs-muted: #6b7280;
	margin-top: 8px !important;
	border: 1px solid rgba(17, 17, 17, .08) !important;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 22px 60px rgba(17, 17, 17, .18), 0 2px 6px rgba(17, 17, 17, .06);
	overflow: hidden;
	color: var(--wpcs-ink);
	font-size: 14px !important;
	line-height: 1.35 !important;
	text-align: left;
}

.aws-search-result .wpcs-list {
	max-height: min(60vh, 470px);
	overflow-y: auto;
	padding: 6px !important;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: var(--wpcs-gold) transparent;
}
.aws-search-result .wpcs-list::-webkit-scrollbar { width: 8px; }
.aws-search-result .wpcs-list::-webkit-scrollbar-track { background: transparent; }
.aws-search-result .wpcs-list::-webkit-scrollbar-thumb { background: var(--wpcs-gold); border-radius: 8px; }
.aws-search-result .wpcs-list li { border: 0 !important; overflow: visible; }

/* section label */
.aws-search-result .wpcs-label {
	padding: 10px 12px 4px;
	color: #9ca3af;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
}

/* product row */
.aws-search-result .wpcs-item { border-radius: 12px; }
.aws-search-result .wpcs-item .aws_result_link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 12px;
}
.aws-search-result .aws_result_item.wpcs-item:hover,
.aws-search-result .aws_result_item.wpcs-item.hovered { background: var(--wpcs-cream-soft); }

.aws-search-result .wpcs-thumb {
	flex: 0 0 56px;
	display: block;
	width: 56px;
	height: 56px;
	border-radius: 10px;
	background: #f6f2ea;
	overflow: hidden;
}
.aws-search-result .wpcs-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.aws-search-result .wpcs-body { flex: 1 1 auto; min-width: 0; overflow: visible; }
.aws-search-result .wpcs-title {
	display: block;
	margin: 0 0 2px;
	color: var(--wpcs-ink);
	font-size: 14px;
	font-weight: 700;
	white-space: normal;
	overflow-wrap: anywhere;
}
.aws-search-result .wpcs-title strong {
	padding: 0 1px;
	border-radius: 3px;
	background: rgba(212, 179, 128, .38);
	font-weight: 800;
}
.aws-search-result .wpcs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--wpcs-muted); font-size: 12.5px; }
.aws-search-result .wpcs-price,
.aws-search-result .wpcs-price .amount { display: inline; padding: 0; color: var(--wpcs-ink); font-weight: 700; }
.aws-search-result .wpcs-price del { margin-right: 6px; opacity: .55; font-weight: 400; }
.aws-search-result .wpcs-price ins { background: none; text-decoration: none; }
.aws-search-result .wpcs-hint { color: var(--wpcs-gold-dark); font-weight: 700; }

.aws-search-result .wpcs-badge {
	flex: none;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--wpcs-cream);
	color: #6b4f1d;
	font-size: 11.5px;
	font-weight: 800;
	white-space: nowrap;
}
.aws-search-result .wpcs-sale { flex: none; padding: 4px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; font-weight: 800; }

/* categories as chips */
.aws-search-result .wpcs-chips-row { padding: 4px 10px 10px; }
.aws-search-result .wpcs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aws-search-result a.wpcs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	border: 1px solid rgba(17, 17, 17, .14);
	border-radius: 999px;
	background: #fff;
	color: var(--wpcs-ink);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .15s, color .15s, border-color .15s;
}
.aws-search-result a.wpcs-chip:hover { border-color: var(--wpcs-ink); background: var(--wpcs-ink); color: var(--wpcs-cream); }
.aws-search-result .wpcs-chip-count { opacity: .6; font-weight: 600; }

/* "view all" */
.aws-search-result .aws_search_more a {
	display: block;
	margin: 4px 0 2px;
	padding: 11px 12px;
	border-radius: 12px;
	color: var(--wpcs-ink);
	font-weight: 800;
	text-align: center;
	text-decoration: none !important;
}
.aws-search-result .aws_search_more:hover,
.aws-search-result .aws_search_more.hovered { background: var(--wpcs-cream-soft); }

/* notices from the search plugin */
.aws-search-result .wpcs-note { padding: 8px 12px; color: var(--wpcs-muted); font-size: 12.5px; }
.aws-search-result .wpcs-note a { color: var(--wpcs-ink); font-weight: 700; text-decoration: underline; }

/* nothing found */
.aws-search-result .wpcs-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 18px 16px; text-align: center; }
.aws-search-result .wpcs-empty-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wpcs-cream); color: var(--wpcs-ink); }
.aws-search-result .wpcs-empty-title { font-size: 15px; font-weight: 800; }
.aws-search-result .wpcs-empty-text { max-width: 34em; color: var(--wpcs-muted); font-size: 13px; line-height: 1.5; }
.aws-search-result .wpcs-empty .wpcs-chips { justify-content: center; margin-top: 4px; }

/* permanent banner */
.aws-search-result a.wpcs-cta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-top: 1px solid rgba(212, 179, 128, .65);
	background: var(--wpcs-cream);
	color: var(--wpcs-ink);
	text-decoration: none !important;
	transition: background .15s;
}
.aws-search-result a.wpcs-cta:hover { background: #f0e0c6; }
.aws-search-result .wpcs-cta-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--wpcs-ink); color: var(--wpcs-gold); }
.aws-search-result .wpcs-cta-text { flex: 1 1 auto; font-size: 14px; font-weight: 800; line-height: 1.3; }
.aws-search-result .wpcs-cta-arrow { flex: none; display: grid; color: var(--wpcs-ink); transition: transform .2s; }
.aws-search-result a.wpcs-cta:hover .wpcs-cta-arrow { transform: translateX(3px); }

/* phones */
@media (max-width: 640px) {
	.aws-search-result { border-radius: 14px; }
	.aws-search-result .wpcs-list { max-height: calc(100vh - 220px); max-height: calc(100dvh - 220px); }
	.aws-search-result .wpcs-thumb { flex-basis: 48px; width: 48px; height: 48px; }
	.aws-search-result .wpcs-item .aws_result_link { flex-wrap: wrap; }
	.aws-search-result .wpcs-badge { margin-left: 60px; order: 3; }
	.aws-search-result .wpcs-body { flex-basis: calc(100% - 60px); }
	.aws-search-result .wpcs-cta-text { font-size: 13.5px; }
}

/* AWS full screen mode on phones */
body.aws-overlay .aws-search-result { border-radius: 0; box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
	.aws-search-result * { transition: none !important; }
}
