/**
 * FiboSearch mobile overlay — Figma search-panel (1403:3).
 * Caps at 4 products; panel height fits content (no inner scroll).
 */

.shopito-fibosearch-mount {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 0;
	width: 48px;
	height: 48px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

/* Never tint the search form when FiboSearch darken-bg is active */
.dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form,
.shopito-fibosearch-mount .dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form,
html.is-shopito-search-desktop .dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

/* Dimmed full-screen backdrop */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-overlay-mobile {
	position: fixed !important;
	inset: 0 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	background: rgba(0, 0, 0, 0.4) !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

/* White search panel — height = content, no scroll */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 16px !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 16px 16px 24px !important;
	background: #ffffff !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

/* —— Search row: pill + close —— */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile {
	order: 1;
	width: calc(100% - 30px) !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-return {
	position: absolute !important;
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	z-index: 3;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 18px !important;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 0.8px;
	color: #111111 !important;
	text-indent: 0 !important;
	cursor: pointer;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-return svg {
	display: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-return::before {
	content: "✕";
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	width: 100% !important;
	height: 44px !important;
	padding: 0 40px 0 14px !important;
	background: #f5f5f5 !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 22px !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp::before {
	content: "";
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	background: url("../images/header/ico-search.svg") center / 18px 18px no-repeat;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-search-input {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	outline: none !important;
	font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	line-height: 1.2 !important;
	letter-spacing: 0.8px !important;
	color: #111111 !important;
	-webkit-appearance: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-search-submit,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-ico-magnifier,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-voice-search {
	display: none !important;
}

/* Clear (X) — pin to right edge of pill; keep absolute like FiboSearch does */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-close {
	position: absolute !important;
	top: 50% !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	z-index: 2 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 20px !important;
	height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: translateY(-50%) !important;
	background-position: center !important;
	background-size: contain !important;
	cursor: pointer;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) {
	background: transparent !important;
	opacity: 1 !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader)::before {
	content: "✕";
	display: block;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.8px;
	color: #8c8c8c;
	text-align: center;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-close svg {
	display: none !important;
}

/* —— Suggestions: headline + 4 rows + CTA, no scroll —— */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp {
	order: 2;
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	width: 100% !important;
	max-width: none !important;
	max-height: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	box-shadow: none !important;
	overflow: visible !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-details-wrapp {
	display: none !important;
}

/* Hide non-product suggestion groups */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-tax,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-brand,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-tax),
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-brand) {
	display: none !important;
}

/* PROIZVODI */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 0 0 !important;
	border: 0 !important;
	background: transparent !important;
	pointer-events: none;
	cursor: default;
	text-decoration: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	display: block !important;
	font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
	font-weight: 600 !important;
	font-size: 11px !important;
	line-height: normal !important;
	letter-spacing: 0.88px !important;
	text-transform: uppercase !important;
	color: #1c1c1e !important;
}

/* Product row */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 10px 0 !important;
	border: 0 !important;
	border-bottom: 1px solid #e6e6e6 !important;
	border-radius: 0 !important;
	background: #ffffff !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:last-of-type {
	border-bottom: 1px solid #e6e6e6 !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:hover,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:focus {
	background: #ffffff !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-si {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 56px !important;
	width: 56px !important;
	height: 56px !important;
	min-width: 56px !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border-radius: 10px !important;
	background: #FFFFFF !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

/* Brand + title + price stacked (not price on the right) */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
	display: flex !important;
	flex: 1 1 auto !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	justify-content: center !important;
	gap: 3px !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-st {
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 3px !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-brand {
	display: block;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 9px;
	line-height: normal;
	color: #8c8c8c;
	text-transform: uppercase;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
	display: block !important;
	width: 100% !important;
	font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
	font-weight: 600 !important;
	font-size: 12px !important;
	line-height: 16px !important;
	color: #1c1c1e !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sku,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sd {
	display: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
	display: block !important;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp * {
	display: inline !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	line-height: normal !important;
	color: #1c1c1e !important;
	text-align: left !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp del * {
	font-weight: 400 !important;
	color: #8c8c8c !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp .woocommerce-Price-amount {
	display: inline !important;
}

/* CTA — full-width black button under list */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;
	margin: 16px 0 0 !important;
	padding: 0 12px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: #1c1c1e !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more:hover,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more:focus {
	background: #1c1c1e !important;
}

html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more .dgwt-wcas-st-more,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more .dgwt-wcas-st-more-total,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more .js-dgwt-wcas-st-more-label {
	font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
	font-weight: 600 !important;
	font-size: 12px !important;
	line-height: normal !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: #ffffff !important;
	text-align: center !important;
}

html.dgwt-wcas-overlay-mobile-on,
html.dgwt-wcas-overlay-mobile-on body {
	overflow: hidden !important;
}

/* —— Empty state (Figma Search — Nema rezultata) —— */
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-nores {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	text-align: center !important;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 40px 0 32px;
	box-sizing: border-box;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__icon {
	display: block;
	width: 32px;
	height: 32px;
	margin: 0 0 8px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 32px 32px;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__title {
	margin: 0;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 14px;
	line-height: normal;
	color: #1c1c1e;
	text-align: center;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__hint {
	margin: 0;
	max-width: 280px;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 400;
	font-size: 11.5px;
	line-height: 16px;
	color: #8c8c8c;
	text-align: center;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__cats-label {
	margin: 0;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 11px;
	line-height: normal;
	letter-spacing: 0.88px;
	text-transform: uppercase;
	color: #1c1c1e;
	text-align: center;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 18px;
	background: #f5f5f5;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 600;
	font-size: 12px;
	line-height: normal;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	text-decoration: none;
	color: #111111;
	box-sizing: border-box;
	white-space: nowrap;
}

html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__chip:hover,
html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__chip:focus {
	color: #111111;
	background: #eeeeee;
}

/* ==========================================================================
   Desktop dropdown — Figma 1404:5 (results) / 1404:116 (empty)
   Breakpoint: ≥1024px via html.is-shopito-search-desktop
   ========================================================================== */

.shopito-search-desktop-backdrop {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	/* top set in JS to header bottom — overlay never covers header */
	top: 0;
	z-index: 420;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, 0.4);
	cursor: pointer;
}

.shopito-search-desktop-backdrop[hidden] {
	display: none !important;
}

@media (min-width: 1024px) {
	html.is-shopito-search-desktop,
	html.is-shopito-search-desktop body {
		overflow: hidden;
	}

	/* Header stays above dim layer and remains clickable */
	html.is-shopito-search-desktop .site-header-wrap {
		position: relative;
		z-index: 450;
	}

	/* Kill FiboSearch's own darkened overlay (z-index 100000) — it blocks the panel */
	html.is-shopito-search-desktop .dgwt-wcas-darkened-overlay {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount {
		position: fixed;
		right: 28px;
		left: auto;
		z-index: 460;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		width: 560px;
		max-width: calc(100vw - 56px);
		height: auto;
		max-height: calc(100vh - 140px);
		margin: 0;
		padding: 16px;
		overflow-x: hidden;
		overflow-y: auto;
		opacity: 1;
		pointer-events: auto;
		background: #ffffff;
		border: 1px solid #e6e6e6;
		border-top: 0;
		border-radius: 0 0 12px 12px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
		box-sizing: border-box;
	}

	/* Suggestions stay clickable inside the panel */
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-suggestions-wrapp,
	html.is-shopito-search-desktop .shopito-fibosearch-mount a,
	html.is-shopito-search-desktop .shopito-fibosearch-mount button {
		pointer-events: auto;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-wrapp {
		position: relative !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		padding: 0 !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-icon,
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-icon-arrow {
		display: none !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-form {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		background: transparent !important;
		background-color: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
	}

	/* FiboSearch darken-bg tint on the form — never show on Shopito desktop panel */
	html.is-shopito-search-desktop .dgwt-wcas-search-wrapp.dgwt-wcas-search-darkoverl-on .dgwt-wcas-search-form {
		background: transparent !important;
		background-color: transparent !important;
		border: 0 !important;
		border-radius: 0 !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-sf-wrapp {
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		gap: 10px !important;
		width: 100% !important;
		height: 44px !important;
		margin: 0 !important;
		padding: 0 18px !important;
		border: 1px solid #e5e5e5 !important;
		border-radius: 22px !important;
		background: #f5f5f5 !important;
		box-sizing: border-box !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-sf-wrapp::before {
		content: "";
		flex: 0 0 22px;
		width: 22px;
		height: 22px;
		background: url("../images/header/ico-search.svg") center / 22px 22px no-repeat;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-submit,
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-ico-magnifier,
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-voice-search {
		display: none !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-input {
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 28px 0 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
		font-weight: 600 !important;
		font-size: 14px !important;
		line-height: normal !important;
		letter-spacing: 0.8px !important;
		color: #111111 !important;
		outline: none !important;
		-webkit-appearance: none !important;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader,
	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-close {
		position: absolute !important;
		top: 50% !important;
		right: 14px !important;
		left: auto !important;
		z-index: 2;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 18px !important;
		height: 18px !important;
		margin: 0 !important;
		padding: 0 !important;
		transform: translateY(-50%) !important;
		border: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		cursor: pointer;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader)::before {
		content: "✕";
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 600;
		font-size: 15px;
		line-height: 1;
		color: #8c8c8c;
	}

	html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-close svg {
		display: none !important;
	}

	/* Suggestions live inside the panel (moved by JS) */
	html.is-shopito-search-desktop .dgwt-wcas-suggestions-wrapp {
		position: static !important;
		top: auto !important;
		left: auto !important;
		right: auto !important;
		display: flex !important;
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 6px !important;
		width: 100% !important;
		max-width: none !important;
		max-height: none !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: #ffffff !important;
		box-shadow: none !important;
		overflow: visible !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-details-wrapp {
		display: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-tax,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-brand,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-tax),
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-headline:has(+ .dgwt-wcas-suggestion-brand) {
		display: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-headline {
		display: block !important;
		width: 100% !important;
		margin: 0 0 8px !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		pointer-events: none;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
		display: block !important;
		font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
		font-weight: 600 !important;
		font-size: 11px !important;
		line-height: normal !important;
		letter-spacing: 0.88px !important;
		text-transform: uppercase !important;
		color: #1c1c1e !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product {
		display: flex !important;
		flex-direction: row !important;
		align-items: center !important;
		gap: 12px !important;
		width: 100% !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 8px !important;
		border: 1px solid #eeeeee !important;
		border-radius: 12px !important;
		background: #ffffff !important;
		text-decoration: none !important;
		box-sizing: border-box !important;
		box-shadow: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product.dgwt-wcas-suggestion-selected,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product:hover,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product:focus {
		background: #ffffff !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-si {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		flex: 0 0 52px !important;
		width: 52px !important;
		height: 52px !important;
		min-width: 52px !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		border-radius: 10px !important;
		background: #ffffff !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		object-fit: contain !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
		display: flex !important;
		flex: 1 1 auto !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		justify-content: center !important;
		gap: 3px !important;
		width: auto !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-st {
		display: flex !important;
		flex: 0 0 auto !important;
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 3px !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		float: none !important;
	}

	html.is-shopito-search-desktop .shopito-search-brand {
		display: block;
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 600;
		font-size: 9px;
		line-height: normal;
		color: #8c8c8c;
		text-transform: uppercase;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
		display: block !important;
		width: 100% !important;
		font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
		font-weight: 600 !important;
		font-size: 12px !important;
		line-height: 16px !important;
		color: #1c1c1e !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sku,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sd {
		display: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .screen-reader-text,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .woocommerce-Price-amount[aria-hidden="true"] + .screen-reader-text {
		display: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
		display: block !important;
		float: none !important;
		width: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: left !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sp,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sp * {
		display: inline !important;
		float: none !important;
		margin: 0 !important;
		padding: 0 !important;
		font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
		font-weight: 700 !important;
		font-size: 13px !important;
		line-height: normal !important;
		color: #1c1c1e !important;
		text-align: left !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sp del,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-product .dgwt-wcas-sp del * {
		font-weight: 400 !important;
		color: #8c8c8c !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		height: 42px !important;
		min-height: 42px !important;
		margin: 8px 0 0 !important;
		padding: 0 12px !important;
		border: 0 !important;
		border-radius: 8px !important;
		background: #1c1c1e !important;
		text-decoration: none !important;
		box-sizing: border-box !important;
		box-shadow: none !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more:hover,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more:focus {
		background: #1c1c1e !important;
	}

	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more .dgwt-wcas-st-more,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more .dgwt-wcas-st-more-total,
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-more .js-dgwt-wcas-st-more-label {
		font-family: var(--global-font-family-1, Montserrat, sans-serif) !important;
		font-weight: 600 !important;
		font-size: 12px !important;
		line-height: normal !important;
		letter-spacing: 0 !important;
		text-transform: none !important;
		color: #ffffff !important;
		text-align: center !important;
	}

	/* Empty state */
	html.is-shopito-search-desktop .dgwt-wcas-suggestion-nores {
		display: block !important;
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		background: transparent !important;
		text-align: left !important;
	}

	html.is-shopito-search-desktop .shopito-search-empty {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		width: 100%;
	}

	html.is-shopito-search-desktop .shopito-search-empty__state {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 8px;
		width: 100%;
		padding: 32px 0 24px;
		box-sizing: border-box;
	}

	html.is-shopito-search-desktop .shopito-search-empty__icon {
		display: block;
		width: 36px;
		height: 36px;
		margin: 0;
		background-position: center;
		background-repeat: no-repeat;
		background-size: 36px 36px;
	}

	html.is-shopito-search-desktop .shopito-search-empty__title {
		margin: 0;
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 600;
		font-size: 16px;
		line-height: normal;
		color: #1c1c1e;
		text-align: center;
	}

	html.is-shopito-search-desktop .shopito-search-empty__hint {
		margin: 0;
		max-width: 100%;
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 400;
		font-size: 12.5px;
		line-height: 18px;
		color: #8c8c8c;
		text-align: center;
	}

	html.is-shopito-search-desktop .shopito-search-empty__cats-label {
		margin: 0;
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 600;
		font-size: 11px;
		line-height: normal;
		letter-spacing: 0.88px;
		text-transform: uppercase;
		color: #1c1c1e;
		text-align: left;
	}

	html.is-shopito-search-desktop .shopito-search-empty__chips {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 8px;
		width: 100%;
	}

	html.is-shopito-search-desktop .shopito-search-empty__chip {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		padding: 10px 14px;
		border: 1px solid #e5e5e5;
		border-radius: 20px;
		background: #f5f5f5;
		font-family: var(--global-font-family-1, Montserrat, sans-serif);
		font-weight: 600;
		font-size: 12px;
		line-height: normal;
		letter-spacing: 0.8px;
		text-transform: uppercase;
		text-decoration: none;
		color: #111111;
		box-sizing: border-box;
		white-space: nowrap;
	}

	html.is-shopito-search-desktop .shopito-search-empty__chip:hover,
	html.is-shopito-search-desktop .shopito-search-empty__chip:focus {
		color: #111111;
		background: #eeeeee;
	}
}

/* ==========================================================================
   Tablet: 768px – 1023px
   No separate Figma — roomier mobile overlay + desktop-like product cards.
   ========================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-bar {
		gap: 18px !important;
		padding: 20px 24px 28px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile {
		width: calc(100% - 36px) !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-om-return {
		top: 20px !important;
		right: 24px !important;
		width: 22px !important;
		height: 48px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp {
		height: 48px !important;
		padding: 0 18px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp::before {
		width: 20px;
		height: 20px;
		background-size: 20px 20px;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-style-pirx.dgwt-wcas-search-wrapp-mobile .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-search-input {
		font-size: 14px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp {
		gap: 8px !important;
		max-width: 640px !important;
		margin: 0 auto !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline {
		margin: 0 0 4px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
		font-size: 11px !important;
		letter-spacing: 0.88px !important;
	}

	/* Desktop-like product cards on tablet */
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product {
		gap: 14px !important;
		padding: 10px !important;
		border: 1px solid #eeeeee !important;
		border-bottom: 1px solid #eeeeee !important;
		border-radius: 12px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:last-of-type {
		border-bottom: 1px solid #eeeeee !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-si {
		flex: 0 0 56px !important;
		width: 56px !important;
		height: 56px !important;
		min-width: 56px !important;
		background: #f1f2f4 !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
		font-size: 13px !important;
		line-height: 18px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp,
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp * {
		font-size: 14px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-more {
		height: 44px !important;
		min-height: 44px !important;
		margin: 8px 0 0 !important;
		max-width: 640px !important;
		align-self: center !important;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty {
		gap: 18px;
		max-width: 640px;
		margin: 0 auto;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__state {
		padding: 36px 0 28px;
		gap: 10px;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__icon {
		width: 36px;
		height: 36px;
		margin: 0 0 4px;
		background-size: 36px 36px;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__title {
		font-size: 16px;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__hint {
		max-width: 360px;
		font-size: 12.5px;
		line-height: 18px;
	}

	html.dgwt-wcas-overlay-mobile-on .shopito-search-empty__chip {
		padding: 11px 16px;
		border-radius: 20px;
	}
}

/* —— Loading state (theme had wiped FiboSearch preloader) —— */
@keyframes shopito-search-spin {
	to {
		transform: rotate(360deg);
	}
}

html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader.dgwt-wcas-inner-preloader,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader.dgwt-wcas-inner-preloader {
	background: transparent !important;
}

html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader.dgwt-wcas-inner-preloader .dgwt-wcas-loader-circular,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader.dgwt-wcas-inner-preloader .dgwt-wcas-loader-circular {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
}

html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader.dgwt-wcas-inner-preloader .dgwt-wcas-loader-circular-path,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader.dgwt-wcas-inner-preloader .dgwt-wcas-loader-circular-path {
	stroke: #1c1c1e !important;
}

/* CSS fallback spinner if plugin icon HTML is empty */
html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader.dgwt-wcas-inner-preloader:empty::after,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader.dgwt-wcas-inner-preloader:empty::after,
html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-preloader.dgwt-wcas-inner-preloader:not(:has(.dgwt-wcas-loader-circular))::after,
html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-search-wrapp-mobile .dgwt-wcas-preloader.dgwt-wcas-inner-preloader:not(:has(.dgwt-wcas-loader-circular))::after {
	content: "";
	display: block;
	width: 14px;
	height: 14px;
	border: 2px solid #d9d9d9;
	border-top-color: #1c1c1e;
	border-radius: 50%;
	animation: shopito-search-spin 0.65s linear infinite;
}

/* “Tražim…” under the field while AJAX runs */
.shopito-search-loading {
	display: none;
	margin: 10px 0 0;
	padding: 0;
	font-family: var(--global-font-family-1, Montserrat, sans-serif);
	font-weight: 500;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.4px;
	color: #8c8c8c;
}

html.is-shopito-search-desktop .shopito-fibosearch-mount .dgwt-wcas-search-wrapp.dgwt-wcas-processing + .shopito-search-loading,
html.is-shopito-search-desktop .shopito-fibosearch-mount .shopito-search-loading.is-visible,
html.dgwt-wcas-overlay-mobile-on .shopito-search-loading.is-visible {
	display: block;
}
