.tm-smart-search-overlay {
	--tm-smart-search-bg: #ffffff;
	--tm-smart-search-text: #232323;
	--tm-smart-search-muted: #6f6f6f;
	--tm-smart-search-border: rgba(35, 35, 35, 0.12);
	--tm-smart-search-accent: #cda274;
	--tm-smart-search-soft: #f7f7f7;
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.tm-smart-search-overlay.st-show,
.tm-smart-search-overlay.tm-smart-search-open {
	opacity: 1;
	visibility: visible;
}

.tm-smart-search-overlay .tm-smart-search-bg {
	background: rgba(17, 17, 17, 0.72);
	backdrop-filter: blur(4px);
}

.tm-smart-search-outer {
	width: min(920px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	overflow: auto;
	padding: 44px;
	background: var(--tm-smart-search-bg);
	color: var(--tm-smart-search-text);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.tm-smart-search-overlay .tm-form-title {
	margin-bottom: 18px;
	color: var(--tm-smart-search-text);
}

.tm-smart-search-form {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--tm-smart-search-border);
}

.tm-smart-search-form .tm-smart-search-input {
	width: 100%;
	min-height: 58px;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--tm-smart-search-text);
	font-size: 24px;
	line-height: 1.3;
}

.tm-smart-search-submit {
	width: 52px;
	height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: var(--tm-smart-search-accent);
	color: #fff;
	flex: 0 0 52px;
}

.tm-smart-search-close {
	border: 0;
	background: transparent;
	cursor: pointer;
}

.tm-smart-search-panel {
	margin-top: 24px;
	text-align: left;
}

.tm-smart-search-answer {
	padding: 16px 18px;
	margin-bottom: 18px;
	border: 1px solid var(--tm-smart-search-border);
	background: var(--tm-smart-search-soft);
}

.tm-smart-search-answer-label {
	display: block;
	margin-bottom: 6px;
	color: var(--tm-smart-search-accent);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.tm-smart-search-answer p {
	margin: 0;
	color: var(--tm-smart-search-text);
}

.tm-smart-search-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 18px;
}

.tm-smart-search-meta > div > span {
	display: block;
	margin-bottom: 8px;
	color: var(--tm-smart-search-muted);
	font-size: 12px;
	text-transform: uppercase;
}

.tm-smart-search-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tm-smart-search-chip {
	border: 1px solid var(--tm-smart-search-border);
	padding: 7px 11px;
	background: transparent;
	color: var(--tm-smart-search-text);
	font-size: 13px;
	cursor: pointer;
}

.tm-smart-search-results {
	display: grid;
	gap: 10px;
}

.tm-smart-search-result {
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	padding: 12px;
	border: 1px solid var(--tm-smart-search-border);
	color: var(--tm-smart-search-text);
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tm-smart-search-result:hover,
.tm-smart-search-result:focus {
	border-color: var(--tm-smart-search-accent);
	color: var(--tm-smart-search-text);
	transform: translateY(-1px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.tm-smart-search-thumb {
	width: 72px;
	aspect-ratio: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tm-smart-search-soft);
	color: var(--tm-smart-search-accent);
	overflow: hidden;
}

.tm-smart-search-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tm-smart-search-result-body {
	min-width: 0;
}

.tm-smart-search-result-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 4px;
}

.tm-smart-search-result-top strong {
	color: var(--tm-smart-search-text);
	font-size: 16px;
	line-height: 1.3;
}

.tm-smart-search-result-top em {
	flex: 0 0 auto;
	color: var(--tm-smart-search-accent);
	font-size: 12px;
	font-style: normal;
	text-transform: uppercase;
}

.tm-smart-search-excerpt {
	display: block;
	color: var(--tm-smart-search-muted);
	font-size: 14px;
	line-height: 1.5;
}

.tm-smart-search-price {
	display: block;
	margin-top: 4px;
	color: var(--tm-smart-search-text);
	font-weight: 700;
}

.tm-smart-search-view-all {
	display: inline-block;
	margin-top: 18px;
	color: var(--tm-smart-search-accent);
	font-weight: 700;
}

.tm-smart-search-empty {
	padding: 18px;
	border: 1px solid var(--tm-smart-search-border);
	color: var(--tm-smart-search-muted);
}

.tm-smart-search-skeleton {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	padding: 12px;
	border: 1px solid var(--tm-smart-search-border);
}

.tm-smart-search-skeleton span,
.tm-smart-search-skeleton b,
.tm-smart-search-skeleton em {
	display: block;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.06));
	background-size: 200% 100%;
	animation: tmSmartSearchPulse 1.2s infinite linear;
}

.tm-smart-search-skeleton span {
	width: 72px;
	aspect-ratio: 1;
}

.tm-smart-search-skeleton b {
	width: 55%;
	height: 16px;
	margin: 8px 0 12px;
}

.tm-smart-search-skeleton em {
	width: 88%;
	height: 12px;
}

.themetechmount-darklayout .tm-smart-search-overlay,
.tm-dark-layout .tm-smart-search-overlay,
body[class*="dark"] .tm-smart-search-overlay {
	--tm-smart-search-bg: #1c1c1c;
	--tm-smart-search-text: #ffffff;
	--tm-smart-search-muted: #bdbdbd;
	--tm-smart-search-border: rgba(255, 255, 255, 0.16);
	--tm-smart-search-soft: #262626;
}

.rtl .tm-smart-search-panel,
.rtl .tm-smart-search-outer {
	text-align: right;
}

@keyframes tmSmartSearchPulse {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@media (max-width: 767px) {
	.tm-smart-search-outer {
		width: calc(100vw - 20px);
		padding: 28px 18px;
	}

	.tm-smart-search-form .tm-smart-search-input {
		font-size: 18px;
		min-height: 52px;
	}

	.tm-smart-search-meta {
		grid-template-columns: 1fr;
	}

	.tm-smart-search-result {
		grid-template-columns: 56px minmax(0, 1fr);
	}

	.tm-smart-search-thumb {
		width: 56px;
	}

	.tm-smart-search-result-top {
		display: block;
	}
}
