#header .ldtvn-global-search-form {
	position: relative;
}

#header .ldtvn-global-search[hidden] {
	display: none;
}

#header .ldtvn-global-search {
	box-sizing: border-box;
	position: absolute;
	top: calc(100% + 10px);
	left: 50%;
	z-index: 1100;
	width: min(620px, calc(100vw - 32px));
	max-width: calc(100vw - 24px);
	max-height: min(70vh, 620px);
	margin: 0;
	padding: 8px;
	overflow-x: hidden;
	overflow-y: auto;
	transform: translateX(-50%);
	border: 1px solid rgba(11, 31, 51, 0.12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(11, 31, 51, 0.1);
	color: #0b1f33;
	overscroll-behavior: contain;
}

#header .ldtvn-global-search__section + .ldtvn-global-search__section {
	border-top: 1px solid rgba(11, 31, 51, 0.08);
}

#header .ldtvn-global-search__section {
	margin: 0;
	padding: 7px 0;
}

#header .ldtvn-global-search__heading {
	margin: 0;
	padding: 5px 10px 6px;
	color: #526176;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.3;
	text-transform: uppercase;
}

#header .ldtvn-global-search__result {
	display: flex;
	align-items: center;
	min-width: 0;
	min-height: 48px;
	gap: 11px;
	padding: 8px 10px;
	border-radius: 8px;
	color: #0b1f33;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

#header .ldtvn-global-search__result:hover,
#header .ldtvn-global-search__result:focus-visible,
#header .ldtvn-global-search__result.is-active {
	background: #f1f6fc;
	color: #0b3157;
	outline: none;
}

#header .ldtvn-global-search__image {
	flex: 0 0 48px;
	width: 48px;
	height: 48px;
	object-fit: contain;
	border: 1px solid #e1e7ed;
	border-radius: 7px;
	background: #fff;
}

#header .ldtvn-global-search__copy {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
}

#header .ldtvn-global-search__title,
#header .ldtvn-global-search__subtitle,
#header .ldtvn-global-search__type,
#header .ldtvn-global-search__commercial {
	display: block;
}

#header .ldtvn-global-search__title {
	overflow: hidden;
	color: #0b1f33;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.35;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#header .ldtvn-global-search__subtitle {
	margin-top: 2px;
	overflow: hidden;
	color: #5b6b7e;
	font-size: 12px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#header .ldtvn-global-search__type {
	margin-top: 3px;
	color: #315f91;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
}

#header .ldtvn-global-search__result--related {
	min-height: 42px;
	padding: 9px 10px;
	border-radius: 0;
}

#header .ldtvn-global-search__result--related + .ldtvn-global-search__result--related {
	border-top: 1px solid rgba(11, 31, 51, 0.08);
}

#header .ldtvn-global-search__result--related .ldtvn-global-search__copy {
	display: flex;
	align-items: center;
	gap: 16px;
}

#header .ldtvn-global-search__result--related .ldtvn-global-search__title {
	flex: 1 1 auto;
	min-width: 0;
}

#header .ldtvn-global-search__result--related .ldtvn-global-search__type {
	flex: 0 0 auto;
	margin: 0;
	color: #778596;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0;
	text-align: right;
	text-transform: none;
	white-space: nowrap;
}

#header .ldtvn-global-search__commercial {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 3px 7px;
	margin-top: 3px;
	font-size: 12.5px;
	line-height: 1.4;
}

#header .ldtvn-global-search__price {
	color: #145ba7;
	font-weight: 700;
}

#header .ldtvn-global-search__commercial--contact {
	color: #145ba7;
	font-weight: 700;
}

#header .ldtvn-global-search__separator {
	color: #7a8796;
}

#header .ldtvn-global-search__stock,
#header .ldtvn-global-search__stock-label {
	color: #5b6b7e;
	font-weight: 500;
}

#header .ldtvn-global-search__stock-value {
	color: #28744f;
	font-weight: 600;
}

#header .ldtvn-global-search__loading,
#header .ldtvn-global-search__empty {
	margin: 0;
	padding: 18px 12px;
	color: #5b6b7e;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

@media (min-width: 850px) {
	#header .ldtvn-global-search {
		width: min(860px, calc(100vw - 40px));
		max-height: min(74vh, 680px);
	}

	#header .header-wrapper.stuck .ldtvn-global-search {
		position: fixed;
		top: calc(var(--flatsome--header--sticky-height, 68px) + 8px);
		right: 12px;
		left: auto;
		width: min(860px, calc(100vw - 24px));
		transform: none;
	}

	#header .ldtvn-global-search__section--products {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 8px;
	}

	#header .ldtvn-global-search__section--products .ldtvn-global-search__heading {
		grid-column: 1 / -1;
	}

	#header .ldtvn-global-search__result--products {
		min-height: 68px;
		gap: 9px;
		padding: 7px 9px;
	}

	#header .ldtvn-global-search__result--products .ldtvn-global-search__image {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	#header .ldtvn-global-search__result--products .ldtvn-global-search__commercial {
		flex-wrap: nowrap;
		overflow: hidden;
		white-space: nowrap;
	}
}

@media (max-width: 849px) {
	#header .ldtvn-global-search {
		position: fixed;
		top: 72px;
		left: 12px;
		right: 12px;
		width: auto;
		max-height: calc(100vh - 92px);
		transform: none;
	}

	body.admin-bar #header .ldtvn-global-search {
		top: 118px;
		max-height: calc(100vh - 138px);
	}

	#header .header-wrapper.stuck .ldtvn-global-search {
		top: calc(var(--flatsome--header--sticky-height, 68px) + 8px);
		left: 12px;
		right: 12px;
		width: auto;
	}

	body.admin-bar #header .header-wrapper.stuck .ldtvn-global-search {
		top: calc(var(--flatsome--header--sticky-height, 68px) + 46px + 8px);
	}

	#header .ldtvn-global-search__result {
		min-height: 52px;
		padding: 9px 8px;
	}

	#header .ldtvn-global-search__image {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
	}

	#header .ldtvn-mobile-search-nav .ldtvn-global-search {
		position: static;
		top: auto;
		left: auto;
		right: auto;
		width: 100%;
		max-height: calc(100dvh - var(--ldtvn-header-current-height, 68px) - 106px);
		margin-top: 8px;
		padding: 4px 0 0;
		transform: none;
		border: 0;
		border-top: 1px solid rgba(11, 31, 51, 0.1);
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	body.admin-bar #header .ldtvn-mobile-search-nav .ldtvn-global-search {
		top: auto;
		max-height: calc(100dvh - var(--ldtvn-header-current-height, 114px) - 106px);
	}

	#header .header-wrapper.stuck .ldtvn-mobile-search-nav .ldtvn-global-search {
		position: fixed;
		top: calc(var(--flatsome--header--sticky-height, 68px) + 8px);
		left: 12px;
		right: 12px;
		width: auto;
		max-height: calc(100dvh - var(--flatsome--header--sticky-height, 68px) - 24px);
		margin-top: 0;
		transform: none;
		border: 1px solid rgba(11, 31, 51, 0.12);
		border-radius: 14px;
		background: #fff;
		box-shadow: 0 10px 24px rgba(11, 31, 51, 0.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	#header .ldtvn-global-search__result {
		transition-duration: 0.01ms !important;
	}
}
