.dmtx-search-container {
	--dmtx-search-bg: transparent;
	--dmtx-search-dropdown-bg: #ffffff;
	--dmtx-search-surface: #f8fafc;
	--dmtx-search-border: #d8dee8;
	--dmtx-search-border-strong: #a8b3c2;
	--dmtx-search-text: #17202a;
	--dmtx-search-muted: #6b7280;
	--dmtx-search-accent: #4fb4e6;
	--dmtx-search-accent-dark: #1a8fc4;
	--dmtx-search-highlight: #fff1b8;
	--dmtx-search-sale: #c62828;
	--dmtx-search-radius: 999px;
	--dmtx-search-height: 42px;
	--dmtx-search-button-size: 34px;
	--dmtx-search-results-gap: 8px;
	--dmtx-search-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
	position: relative;
	z-index: 100;
	width: 100%;
	min-width: 0;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.45;
	color: var(--dmtx-search-text);
}

.dmtx-search-container,
.dmtx-search-container *,
.dmtx-search-container *::before,
.dmtx-search-container *::after {
	box-sizing: border-box;
}

.dmtx-search-form {
	position: relative;
	z-index: 1000000;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.dmtx-search-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: var(--dmtx-search-height);
	border: 1px solid transparent;
	border-radius: var(--dmtx-search-radius);
	background: var(--dmtx-search-bg);
	box-shadow: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dmtx-search-container:focus-within .dmtx-search-input-wrap {
	background: var(--dmtx-search-bg);
	box-shadow: none;
}

.dmtx-search-container:has(.dmtx-search-dropdown.is-open) .dmtx-search-input-wrap {
	background: var(--dmtx-search-dropdown-bg);
}

.dmtx-search-input {
	display: block;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	height: var(--dmtx-search-height);
	margin: 0;
	padding: 0 calc(var(--dmtx-search-button-size) + 6px) 0 13px;
	border: 0;
	border-radius: var(--dmtx-search-radius);
	outline: 0;
	background: transparent;
	box-shadow: none;
	color: var(--dmtx-search-text);
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: var(--dmtx-search-height);
	appearance: none;
	-webkit-appearance: none;
}

.dmtx-search-input::placeholder {
	color: #7b8493;
	opacity: 1;
}

.dmtx-search-input::-webkit-search-cancel-button,
.dmtx-search-input::-webkit-search-decoration {
	-webkit-appearance: none;
}

.dmtx-search-submit {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--dmtx-search-button-size);
	min-width: var(--dmtx-search-button-size);
	max-width: var(--dmtx-search-button-size);
	height: var(--dmtx-search-button-size);
	max-height: var(--dmtx-search-button-size);
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	border: 0;
	border-radius: 999px;
	background: rgba(79, 180, 230, 0.16);
	box-shadow: none;
	color: var(--dmtx-search-accent-dark);
	min-height: 0;
	line-height: 0;
	opacity: 1;
	text-shadow: none;
	text-transform: none;
	cursor: pointer;
	transition: color 0.16s ease, background-color 0.16s ease;
}

.dmtx-search-submit:hover,
.dmtx-search-submit:focus-visible {
	background: rgba(79, 180, 230, 0.24);
	color: var(--dmtx-search-accent-dark);
	outline: 0;
}

.dmtx-search-submit svg {
	display: block;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

.dmtx-search-submit.loading svg {
	opacity: 0;
}

.dmtx-search-submit.loading::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(79, 180, 230, 0.28);
	border-top-color: var(--dmtx-search-accent-dark);
	border-right-color: var(--dmtx-search-accent-dark);
	border-radius: 50%;
	content: "";
	animation: dmtx-search-loading-spin 0.65s linear infinite;
	opacity: 1;
}

@keyframes dmtx-search-loading-spin {
	to {
		transform: rotate(360deg);
	}
}

.dmtx-search-dropdown {
	position: absolute;
	top: calc(var(--dmtx-search-height) / 2);
	left: 0;
	right: 0;
	z-index: 999999;
	display: none;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	max-height: min(580px, 78vh);
	padding-top: calc((var(--dmtx-search-height) / 2) + var(--dmtx-search-results-gap));
	overflow: hidden;
	border: 1px solid var(--dmtx-search-border);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	background: var(--dmtx-search-dropdown-bg);
	box-shadow: var(--dmtx-search-shadow);
}

.dmtx-search-dropdown.is-open {
	display: flex;
}

.dmtx-search-results-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.dmtx-search-results-scroll::-webkit-scrollbar {
	width: 9px;
}

.dmtx-search-results-scroll::-webkit-scrollbar-track {
	background: transparent;
}

.dmtx-search-results-scroll::-webkit-scrollbar-thumb {
	border: 2px solid var(--dmtx-search-dropdown-bg);
	border-radius: 999px;
	background: #c5ccd6;
}

.dmtx-search-group {
	padding: 6px 0;
}

.dmtx-search-group + .dmtx-search-group {
	border-top: 1px solid #edf0f4;
}

.dmtx-search-group-title {
	padding: 7px 13px 5px;
	color: var(--dmtx-search-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: uppercase;
	user-select: none;
}

.dmtx-search-item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	padding: 9px 13px;
	color: var(--dmtx-search-text);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.14s ease, color 0.14s ease;
}

.dmtx-search-item:hover,
.dmtx-search-item:focus-visible,
.dmtx-search-item.is-active {
	background: var(--dmtx-search-surface);
	color: var(--dmtx-search-text);
	text-decoration: none;
	outline: 0;
}

.dmtx-search-cat {
	min-height: 38px;
}

.dmtx-search-cat-icon {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	color: var(--dmtx-search-accent-dark);
}

.dmtx-search-cat-name {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	color: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dmtx-search-product {
	align-items: flex-start;
}

.dmtx-search-thumb {
	display: block;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border: 1px solid #edf0f4;
	border-radius: 8px;
	background: #f3f5f7;
	object-fit: cover;
}

.dmtx-search-thumb-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa4b2;
}

.dmtx-search-product-info {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding-top: 2px;
}

.dmtx-search-product-name {
	display: block;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	color: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.dmtx-search-product-price {
	display: block;
	margin-top: 4px;
	color: var(--dmtx-search-sale);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
}

.dmtx-search-product-price del {
	margin-right: 5px;
	color: var(--dmtx-search-muted);
	font-size: 12px;
	font-weight: 500;
	opacity: 0.85;
}

.dmtx-search-product-price ins {
	color: var(--dmtx-search-sale);
	font-weight: 700;
	text-decoration: none;
}

.dmtx-search-product-price .woocommerce-Price-amount {
	font-size: inherit;
}

.dmtx-search-viewall {
	display: block;
	flex: 0 0 auto;
	padding: 12px 14px;
	border-top: 1px solid #edf0f4;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	color: var(--dmtx-search-accent-dark);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
}

.dmtx-search-viewall:hover,
.dmtx-search-viewall:focus-visible,
.dmtx-search-viewall.is-active {
	background: #eef9fb;
	color: var(--dmtx-search-accent-dark);
	text-decoration: none;
	outline: 0;
}

.dmtx-search-empty {
	padding: 24px 14px;
	color: var(--dmtx-search-muted);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.dmtx-search-container mark {
	padding: 0 1px;
	border-radius: 3px;
	background: var(--dmtx-search-highlight);
	color: inherit;
}

.searchform-wrapper:has(.dmtx-search-container),
.ux-search-box:has(.dmtx-search-container),
.header-search-form-wrapper:has(.dmtx-search-container) {
	overflow: visible;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.searchform-wrapper .dmtx-search-container,
.ux-search-box .dmtx-search-container,
.header-search-form-wrapper .dmtx-search-container {
	width: 100%;
}

.header-search .nav-dropdown,
.header-search-dropdown .nav-dropdown,
.header-search-dropdown ul.nav-dropdown {
	overflow: visible;
}

.nav-dropdown .dmtx-search-container,
.header-search-form .dmtx-search-container,
.header-search .dmtx-search-container {
	min-width: 300px;
}

.header-search-form .dmtx-search-dropdown,
.nav-dropdown .dmtx-search-dropdown {
	min-width: 0;
}

.mfp-content .dmtx-search-container {
	max-width: 640px;
	margin: 0 auto;
	--dmtx-search-height: 52px;
	--dmtx-search-button-size: 40px;
}

.mfp-content .dmtx-search-input {
	font-size: 17px;
}

.mfp-content .dmtx-search-submit svg {
	width: 20px;
	height: 20px;
}

.mfp-content .dmtx-search-dropdown {
	max-height: min(560px, 74vh);
}

@media (max-width: 849px) {
	.dmtx-search-container {
		--dmtx-search-height: 44px;
		--dmtx-search-button-size: 38px;
		--dmtx-search-results-gap: 8px;
		font-size: 14px;
	}

	.dmtx-search-input {
		padding-left: 14px;
		padding-right: calc(var(--dmtx-search-button-size) + 8px);
		font-size: 16px;
	}

	.dmtx-search-submit {
		right: 0;
	}

	.dmtx-search-submit svg {
		width: 20px;
		height: 20px;
	}

	.nav-dropdown .dmtx-search-container,
	.header-search-form .dmtx-search-container,
	.header-search .dmtx-search-container {
		min-width: 0;
	}

	.header-search-form .dmtx-search-dropdown,
	.nav-dropdown .dmtx-search-dropdown,
	.dmtx-search-dropdown {
		min-width: 0;
		max-height: min(520px, 72vh);
		border-radius: 0 0 10px 10px;
	}

	.dmtx-search-thumb {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}
}

@media (max-width: 549px) {
	.dmtx-search-container {
		--dmtx-search-radius: 999px;
		--dmtx-search-results-gap: 7px;
	}

	.dmtx-search-dropdown {
		position: absolute;
		top: calc(var(--dmtx-search-height) / 2);
		left: 0;
		right: 0;
		min-width: 0;
		max-height: min(500px, 70vh);
		border-radius: 0 0 10px 10px;
	}

	.dmtx-search-item {
		padding: 10px 12px;
	}

	.dmtx-search-product-name {
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
	}
}
