/**
 * FiboSearch — overlay móvil + detalle desktop (quantity).
 */

/* --------------------------------------------------------------------------
   Desktop: panel de detalle — quantity legible
   WooCommerce fija .qty a ~3.631em; el design system añade padding 12px 16px
   y deja ~17px de contenido (el número queda como un punto).
   -------------------------------------------------------------------------- */
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form {
	display: flex !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 10px;
	margin: 12px 0 0 !important;
}
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form > .quantity {
	margin: 0 0 0 0 !important;
	flex: 0 0 auto;
}
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc-form .quantity .qty,
.dgwt-wcas-details-wrapp .quantity input.qty {
	width: 56px !important;
	min-width: 56px !important;
	max-width: 72px !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 6px !important;
	margin: 0 !important;
	font-family: Manrope, Arial, sans-serif !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 42px !important;
	color: var(--ef-ink, #281e1e) !important;
	background: #fff !important;
	border: 1px solid var(--ef-line, #cfcfcf) !important;
	border-radius: 0 !important;
	text-align: center !important;
	box-sizing: border-box !important;
	-moz-appearance: textfield;
	appearance: textfield;
}
.dgwt-wcas-details-wrapp .quantity input.qty::-webkit-outer-spin-button,
.dgwt-wcas-details-wrapp .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc .button,
.dgwt-wcas-details-wrapp .dgwt-wcas-pd-addtc .add_to_cart_button {
	min-height: 44px;
	padding: 12px 20px !important;
	font-family: Manrope, Arial, sans-serif !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 0 !important;
}

.dgwt-wcas-overlay-mobile {
	--ef-fs-yellow: var(--ef-yellow, #ffd71f);
	--ef-fs-ink: var(--ef-ink, #281e1e);
	--ef-fs-muted: var(--ef-muted, #69727d);
	--ef-fs-line: var(--ef-line, #cfcfcf);
	background: #fff !important;
	font-family: Manrope, Arial, sans-serif;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-bar {
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	border: 0 !important;
	box-shadow: none !important;
	min-height: 100% !important;
	height: 100% !important;
}

/* Cabecera: logo + cerrar */
.dgwt-wcas-overlay-mobile .ef-fs-om-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 16px;
	background: #fff;
	border-bottom: 1px solid var(--ef-fs-line);
	flex: 0 0 auto;
}

.dgwt-wcas-overlay-mobile .ef-fs-om-logo {
	display: block;
	height: 48px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return {
	position: static !important;
	order: 0;
	flex: 0 0 44px;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--ef-fs-ink) !important;
	border-radius: 0 !important;
	background: #fff !important;
	box-shadow: none !important;
	color: var(--ef-fs-ink) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	align-self: center;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return svg {
	display: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return::before,
.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return::after {
	content: "";
	position: absolute;
	width: 18px;
	height: 1.6px;
	background: currentColor;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return {
	position: relative !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return::before {
	transform: rotate(45deg);
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-om-return::after {
	transform: rotate(-45deg);
}

/* Banda amarilla + campo */
.dgwt-wcas-overlay-mobile .dgwt-wcas-search-wrapp {
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 14px 16px !important;
	background: var(--ef-fs-yellow) !important;
	border: 0 !important;
	box-shadow: none !important;
	overflow: visible !important;
	flex: 0 0 auto;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-enable-mobile-form,
.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon,
.dgwt-wcas-overlay-mobile .dgwt-wcas-search-icon-arrow,
.dgwt-wcas-overlay-mobile .dgwt-wcas-loader-circular,
.dgwt-wcas-overlay-mobile .dgwt-wcas-icon-preloader {
	display: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-search-form,
.dgwt-wcas-overlay-mobile .dgwt-wcas-sf-wrapp {
	display: block !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	position: relative !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-sf-wrapp {
	background: #fff !important;
	border: 1px solid var(--ef-fs-ink) !important;
	border-radius: 0 !important;
	min-height: 48px;
	display: flex !important;
	align-items: center !important;
	padding: 0 12px 0 44px !important;
	box-sizing: border-box;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-ico-magnifier {
	position: absolute !important;
	left: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	z-index: 2;
	pointer-events: none;
	fill: var(--ef-fs-muted) !important;
	color: var(--ef-fs-muted) !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-search-input {
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 64px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: Manrope, Arial, sans-serif !important;
	font-size: 15px !important;
	line-height: 24px !important;
	font-style: normal !important;
	color: var(--ef-fs-ink) !important;
	-webkit-appearance: none;
	appearance: none;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-search-input::placeholder {
	color: var(--ef-fs-muted) !important;
	opacity: 1;
	font-style: italic;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-search-input:focus {
	outline: none !important;
	box-shadow: none !important;
}

/* Clear como texto (sustituye la X del preloader) */
.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader {
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	left: auto !important;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	z-index: 3;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader.dgwt-wcas-close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 4px 0;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader.dgwt-wcas-close svg {
	display: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader.dgwt-wcas-close::after {
	content: "Clear";
	font-family: Manrope, Arial, sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: var(--ef-fs-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader:not(.dgwt-wcas-close) {
	/* loader circular al buscar */
	width: 20px !important;
	height: 20px !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-preloader:not(.dgwt-wcas-close)::after {
	content: none;
}

/* Resultados */
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestions-wrapp {
	position: static !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: 100% !important;
	max-width: none !important;
	max-height: none !important;
	flex: 1 1 auto;
	overflow-y: auto !important;
	-webkit-overflow-scrolling: touch;
	margin: 0 !important;
	padding: 8px 0 96px !important;
	background: #fff !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion {
	display: flex !important;
	align-items: center !important;
	gap: 14px;
	padding: 14px 16px !important;
	margin: 0 !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ef-fs-line) !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--ef-fs-ink) !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion:hover,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
	background: #fafafa !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline {
	display: block !important;
	padding: 16px 16px 8px !important;
	border-bottom: 0 !important;
	pointer-events: none;
	cursor: default;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ef-fs-muted) !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-si {
	flex: 0 0 56px;
	width: 56px !important;
	height: 56px !important;
	margin: 0 !important;
	overflow: hidden;
	background: #f5efe8;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-si img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-content-wrapp {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-st-title,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-product .dgwt-wcas-st,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-tax .dgwt-wcas-st {
	font-size: 14px !important;
	line-height: 20px !important;
	font-weight: 600 !important;
	color: var(--ef-fs-ink) !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion strong {
	font-weight: 700 !important;
	background: var(--ef-fs-yellow);
	color: var(--ef-fs-ink);
	padding: 0 2px;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-sp,
.dgwt-wcas-overlay-mobile .price {
	font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	font-size: 16px;
	font-weight: 700;
	color: var(--ef-fs-ink);
	line-height: 1.2;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-st-breadcrumbs {
	display: block;
	font-size: 12px;
	font-weight: 400;
	color: var(--ef-fs-muted);
	margin-top: 2px;
}

/* View all */
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 16px 16px 0 !important;
	padding: 14px 20px !important;
	min-height: 48px;
	border: 0 !important;
	background: var(--ef-fs-yellow) !important;
	color: var(--ef-fs-ink) !important;
	text-decoration: none !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
	font-size: 0 !important;
	line-height: 0 !important;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more .dgwt-wcas-st-more::before {
	content: "View all results";
	font-family: Manrope, Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--ef-fs-ink);
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-more .dgwt-wcas-st-more-total {
	display: none !important;
}

/* Sin resultados */
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-no-results,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion.dgwt-wcas-suggestion-nores {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px;
	padding: 64px 24px !important;
	border: 0 !important;
	text-align: center;
	color: var(--ef-fs-muted) !important;
	pointer-events: none;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-no-results::before,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion.dgwt-wcas-suggestion-nores::before {
	content: "";
	width: 56px;
	height: 56px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='56' height='56' fill='%23FFD71F'/%3E%3Cg fill='none' stroke='%23281E1E' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round' transform='translate(16 16)'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16.5 16.5 4 4'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 56px 56px;
	background-repeat: no-repeat;
}

.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion-no-results .dgwt-wcas-st,
.dgwt-wcas-overlay-mobile .dgwt-wcas-suggestion.dgwt-wcas-suggestion-nores .dgwt-wcas-st {
	font-size: 14px !important;
	line-height: 22px !important;
	font-weight: 500 !important;
	color: var(--ef-fs-muted) !important;
	max-width: 260px;
}

/* Detalle lateral del plugin: oculto en overlay móvil */
.dgwt-wcas-overlay-mobile .dgwt-wcas-details-wrapp {
	display: none !important;
}
