.tm-smart-search-overlay {
	opacity: 0;
	visibility: hidden;
	transition: opacity 220ms ease, visibility 220ms ease;
}

.ttm-aisearchbox .tm-smart-search-form input[type="search"].tm-smart-search-input::-webkit-input-placeholder {
	color: rgba(0, 0, 0, 0.50) !important;
}

.ttm-aisearchbox .tm-smart-search-forminput[type="search"].tm-smart-search-input::-moz-placeholder {
	color: rgba(0, 0, 0, 0.50) !important;
}

.ttm-aisearchbox .tm-smart-search-form input[type="search"].tm-smart-search-input::-moz-placeholder {
	color: rgba(0, 0, 0, 0.50) !important;
}

.ttm-aisearchbox .tm-smart-search-form input[type="search"].tm-smart-search-input::-ms-input-placeholder {
	color: rgba(0, 0, 0, 0.50) !important;
}
.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-actions {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}
.tm-smart-search-actions button.tm-search-action-button {
    border-radius: var(--border-radius-box);
    padding: 16px 20px;
    color: var(--tm-secondary-bg);
    background: transparent;
	border: 1px solid var(--ttm-bordercolor);
	font-size: 16px;
	width: 100%;
}
.tm-smart-search-actions button.tm-search-action-button:hover {
    background: var(--tm-secondary-bg);
    color: var(--ttm-whitecolor);
	border-color: var(--tm-secondary-bg);
}
.ttm-search-outer-wrapper {
    border: 1px solid var(--ttm-bordercolor);
    border-radius: var(--border-radius-box);
    width: min(920px, calc(100vw - 32px));
    overflow: auto;
    padding: 45px;
    background: var(--ttm-whitecolor);
    color: var(--tm-secondary-bg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    height: auto;
    position: relative;
    line-height: normal;
    top: 50%;
    left: 50%;
    max-width: 100%;
    -webkit-transform: translateX(-50%) translateY(-50%);
    -khtml-transform: translateX(-50%) translateY(-50%);
    -moz-transform: translateX(-50%) translateY(-50%);
    -ms-transform: translateX(-50%) translateY(-50%);
    -o-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}
.ttm-search-outer-wrapper:after {
    content: '';
    height: calc(100% - 30px);
    width: calc(100% - 30px);
    border: 1px solid var(--ttm-bordercolor);
    position: absolute;
    top: 15px;
    left: 15px;
	border-radius: var(--border-radius-box);
	z-index: -1;
}
.ttm-aisearchbox .tm-smart-search-outer {
    width: auto;
    overflow: auto;
    padding: 0;
    height: auto;
    position: static;
    line-height: normal;
    transform: unset;
	max-height: calc(100vh - 64px);
}

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

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

.ttm-aisearchbox .tm-smart-search-form .tm-smart-search-input {
    width: 100%;
    min-height: 50px;
    padding: 0;
    border: 0;
    outline: 0;
    background: var(--ttm-whitecolor) !important;
    color: var(--tm-secondary-bg) !important;
    font-size: 24px;
    line-height: 1.3;
    border-bottom: 0 !important;
    height: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

.ttm-aisearchbox .tm-smart-search-submit {
    width: 50px!important;
    height: 50px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent !important;
    color: var(--tm-secondary-bg) !important;
    flex: 0 0 50px;
    font-size: 18px !important;
}
.tm-smart-search-actions .icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: text-bottom;
    margin-right: 15px;
}
.tm-smart-search-close {
	border: 0;
	background: transparent;
	cursor: pointer;
}

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

.tm-smart-search-answer {
    padding: 16px 18px;
    margin-bottom: 18px;
    border: 1px solid var(--ttm-bordercolor);
    background: var(--tm-greycolor-bg);
    margin-top: 20px;
    border-radius: var(--border-radius-box);
	font-size: var(--body-font-size);
    line-height: var(--body-line-height);
}

.tm-smart-search-answer-label {
    display: block;
    margin-bottom: 6px;
    color: var(--tm-secondary-bg);
    font-size: 13px;
    font-weight: var(--special-element-fontweight);
    text-transform: uppercase;
    font-family: var(--body-font-family);
}

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

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

	line-height: normal;
	    
}
.tm-smart-search-recent, .tm-smart-search-trending {
    border: 1px solid var(--ttm-bordercolor);
    padding: 20px;
    border-radius: var(--border-radius-box);
        margin-top: 25px;
            margin-bottom: 18px;
}
.tm-smart-search-meta > div > span {
    display: block;
    margin-bottom: 20px;
    color: var(--tm-secondary-bg);
    font-size: var(--body-font-size);
    text-transform: uppercase;
    font-weight: var(--special-element-fontweight);
}

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

.tm-smart-search-chip {
    border: 0;
    padding: 8px 10px;
    background: var(--tm-greycolor-bg);
    color: var(--tm-secondary-bg);
    font-size: 13px;
    cursor: pointer;
    border-radius: 5px;
}

.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(--ttm-bordercolor);
	color: var(--tm-secondary-bg);
	text-decoration: none;
	transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
	border-radius: var(--border-radius-box);
}

.tm-smart-search-result:hover, .tm-smart-search-result:focus {
    border-color: var(--ttm-bordercolor);
    color: var(--tm-secondary-bg);
    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-greycolor-bg);
    color: var(--tm-secondary-bg);
    overflow: hidden;
    border-radius: var(--border-radius-box);
	font-size: 20px;
}

.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-secondary-bg);
	font-size: 16px;
	line-height: 1.3;
}

.tm-smart-search-result-top em {
    flex: 0 0 auto;
    color: var(--tm-skincolor-bg);
    background: var(--tm-greycolor-bg);
    font-size: 13px;
    font-style: normal;
    text-transform: uppercase;
    padding: 3px 12px;
    font-weight: var(--special-element-fontweight);
    border-radius: 3px;
}

.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-secondary-bg);
	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(--ttm-bordercolor);
	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(--ttm-bordercolor);
}

.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;
}

.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;
	}
}
