/* Claro FiboSearch presentation. Plugin templates stay untouched. */

:root {
	--claro-search-blue: var(--claro-blue, #2B6CB0);
	--claro-search-blue-dark: var(--claro-blue-dark, #265E9A);
	--claro-search-navy: var(--claro-navy, #1A202C);
	--claro-search-muted: #64748B;
	--claro-search-line: #E2E8F0;
	--claro-search-surface: #FFFFFF;
	--claro-search-soft: #F8FAFC;
	--claro-search-green: #2F855A;
	--claro-search-amber: #B7791F;
	--claro-search-red: #C53030;
	--claro-search-shadow: 0 18px 48px -18px rgba(26, 32, 44, 0.32), 0 4px 14px rgba(26, 32, 44, 0.08);
}

.dgwt-wcas-search-wrapp,
.dgwt-wcas-suggestions-wrapp {
	font-family: var(--global-body-font-family, "Open Sans", sans-serif);
}

/* Search field ---------------------------------------------------------- */

.header-search-bar .dgwt-wcas-search-wrapp {
	width: 100%;
	max-width: 600px;
}

.header-search-bar .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
	min-height: 55px;
	padding: 0 !important;
	border-radius: 16px !important;
	background: transparent !important;
}

.header-search-bar .dgwt-wcas-search-form input[type="search"].dgwt-wcas-search-input {
	height: 55px !important;
	min-height: 55px;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 54px !important;
	border: 1px solid var(--claro-search-line) !important;
	border-radius: 16px !important;
	background: var(--claro-search-surface) !important;
	box-shadow: 0 7px 20px -14px rgba(26, 32, 44, 0.6) !important;
	color: var(--claro-search-navy) !important;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color 0.3s, box-shadow 0.3s !important;
}

.header-search-bar .dgwt-wcas-search-form input[type="search"].dgwt-wcas-search-input:focus {
	border-color: #5BC5F2 !important;
	box-shadow: 0 0 8px 1px rgba(91, 197, 242, 0.6) !important;
	outline: none;
}

.header-search-bar .dgwt-wcas-search-input::placeholder {
	color: var(--claro-search-muted) !important;
	opacity: 1 !important;
}

.dgwt-wcas-search-form .dgwt-wcas-search-submit {
	color: var(--claro-search-blue) !important;
	transition: color 0.2s ease;
}

.dgwt-wcas-search-form .dgwt-wcas-search-submit:hover,
.dgwt-wcas-search-form .dgwt-wcas-search-submit:focus-visible {
	color: var(--claro-search-blue-dark) !important;
}

.dgwt-wcas-search-form .dgwt-wcas-ico-magnifier path {
	fill: currentColor !important;
}

.header-search-bar .dgwt-wcas-style-pirx .dgwt-wcas-search-submit {
	left: 19px !important;
	top: 50% !important;
	width: 23px !important;
	height: 23px !important;
	transform: translateY(-50%);
}

.header-search-bar .dgwt-wcas-search-filled .dgwt-wcas-search-submit {
	left: auto !important;
	right: 19px !important;
}

.header-search-bar .dgwt-wcas-style-pirx .dgwt-wcas-close,
.header-search-bar .dgwt-wcas-style-pirx .dgwt-wcas-preloader {
	right: 18px !important;
}

/* Suggestions card ------------------------------------------------------ */

.dgwt-wcas-suggestions-wrapp {
	padding: 8px !important;
	border: 1px solid rgba(226, 232, 240, 0.9) !important;
	border-radius: 18px !important;
	background: var(--claro-search-surface) !important;
	box-shadow: var(--claro-search-shadow) !important;
	color: var(--claro-search-navy);
	overflow-x: hidden !important;
	overflow-y: auto !important;
	scrollbar-color: #CBD5E1 transparent;
	scrollbar-width: thin;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar {
	width: 8px;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-track {
	margin: 12px 0;
	background: transparent;
}

.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 999px;
	background: #CBD5E1;
	background-clip: padding-box;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
	border: 0 !important;
	border-radius: 12px;
	color: var(--claro-search-navy) !important;
	transition: background-color 0.16s ease;
}

.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected {
	background: #EFF6FF !important;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) {
	align-items: center !important;
	min-height: 94px !important;
	padding: 12px !important;
	column-gap: 14px;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) + .dgwt-wcas-suggestion-product:not([data-taxonomy]) {
	border-top: 1px solid #F1F5F9 !important;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-si {
	flex: 0 0 70px;
	width: 70px !important;
	height: 70px !important;
	margin: 0 !important;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-si img {
	width: 70px !important;
	height: 70px !important;
	margin: 0 !important;
	border: 1px solid var(--claro-search-line);
	border-radius: 10px;
	background: var(--claro-search-soft);
	object-fit: contain;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-content-wrapp {
	display: flex !important;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	min-width: 0;
	gap: 18px;
}

.dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-st {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--claro-search-navy) !important;
	font-size: 14px;
	line-height: 1.4;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
	font-weight: 600;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-st-title strong {
	border-radius: 3px;
	background: #DFF3FC;
	color: #004070;
	font-weight: 700;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-sku {
	display: block;
	margin-top: 4px;
	color: var(--claro-search-muted) !important;
	font-size: 11px;
	line-height: 1.3;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-meta {
	flex: 0 0 auto;
	min-width: max-content;
	margin: 0 !important;
	text-align: right;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-sp {
	color: var(--claro-search-navy) !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-sp del {
	display: block;
	color: var(--claro-search-muted);
	font-size: 12px;
	font-weight: 400;
}

.dgwt-wcas-suggestion-product .dgwt-wcas-sp ins {
	color: var(--claro-search-red);
	text-decoration: none;
}

.claro-fibosearch-product-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	margin-top: 7px;
}

.claro-fibosearch-rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--claro-search-muted);
	font-size: 11px;
}

.claro-fibosearch-rating .star-rating {
	float: none;
	width: 5.4em;
	margin: 0;
	color: #D69E2E;
	font-size: 12px;
}

.claro-fibosearch-stock {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 8px;
	border-radius: 999px;
	background: #F0FFF4;
	color: var(--claro-search-green);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.25;
}

.claro-fibosearch-stock-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}

.claro-fibosearch-stock--on-backorder {
	background: #FFFAF0;
	color: var(--claro-search-amber);
}

.claro-fibosearch-stock--out-of-stock {
	background: #FFF5F5;
	color: var(--claro-search-red);
}

/* Taxonomies, headings, history and terminal rows ---------------------- */

.dgwt-wcas-suggestion-headline,
.dgwt-wcas-suggestion-headline-v2 {
	padding: 12px 10px 7px !important;
	border: 0 !important;
	background: transparent !important;
	color: var(--claro-search-muted) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.dgwt-wcas-suggestion[data-taxonomy="product_cat"],
.dgwt-wcas-suggestion-cat {
	display: inline-flex !important;
	width: auto !important;
	min-height: 34px;
	margin: 3px 3px 5px !important;
	padding: 7px 12px !important;
	border: 1px solid #BFDBFE !important;
	border-radius: 999px !important;
	background: #EFF6FF !important;
	color: var(--claro-search-blue) !important;
	font-size: 12px;
	font-weight: 600;
}

.dgwt-wcas-suggestion[data-taxonomy="product_cat"]:hover,
.dgwt-wcas-suggestion-cat:hover,
.dgwt-wcas-suggestion[data-taxonomy="product_cat"].dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestion-cat.dgwt-wcas-suggestion-selected {
	border-color: var(--claro-search-blue) !important;
	background: #DBEAFE !important;
}

.dgwt-wcas-suggestion-history-search,
.dgwt-wcas-suggestion-history-product {
	min-height: 44px;
	padding: 10px 12px !important;
}

.dgwt-wcas-sugg-hist-clear {
	color: var(--claro-search-blue) !important;
	font-weight: 600;
}

.dgwt-wcas-suggestion-more {
	min-height: 46px !important;
	margin-top: 6px;
	padding: 12px !important;
	border-radius: 12px !important;
	background: var(--claro-search-navy) !important;
	color: #FFFFFF !important;
	font-size: 12px !important;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.dgwt-wcas-suggestion-more .dgwt-wcas-st,
.dgwt-wcas-suggestion-more .dgwt-wcas-st-more,
.dgwt-wcas-suggestion-more a,
.dgwt-wcas-suggestion-more span {
	color: #FFFFFF !important;
}

.dgwt-wcas-suggestion-more:hover,
.dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected {
	background: var(--claro-search-blue) !important;
}

.dgwt-wcas-nores,
.dgwt-wcas-suggestion-nores {
	min-height: 72px;
	padding: 22px 16px !important;
	color: var(--claro-search-muted) !important;
	text-align: center;
}

.dgwt-wcas-details-wrapp {
	display: none !important;
}

/* Kadence desktop takeover --------------------------------------------- */

@media (min-width: 1025px) {
	#main-header .site-main-header-inner-wrap {
		position: relative;
		isolation: isolate;
	}

	#main-header .site-header-main-section-left,
	#main-header .site-header-main-section-right {
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	body.dgwt-wcas-focused #main-header .site-header-main-section-left,
	body.dgwt-wcas-focused #main-header .site-header-main-section-right,
	body.dgwt-wcas-open #main-header .site-header-main-section-left,
	body.dgwt-wcas-open #main-header .site-header-main-section-right {
		visibility: hidden;
		opacity: 0;
		pointer-events: none;
	}

	body.dgwt-wcas-focused #main-header .site-header-main-section-center,
	body.dgwt-wcas-open #main-header .site-header-main-section-center {
		position: absolute;
		inset: 0;
		z-index: 5;
		display: flex;
		align-items: center;
		width: 100%;
		min-width: 0;
	}

	body.dgwt-wcas-focused #main-header .site-header-main-section-center > .site-header-item,
	body.dgwt-wcas-open #main-header .site-header-main-section-center > .site-header-item,
	body.dgwt-wcas-focused #main-header .header-search-bar,
	body.dgwt-wcas-open #main-header .header-search-bar,
	body.dgwt-wcas-focused #main-header .header-search-bar .dgwt-wcas-search-form,
	body.dgwt-wcas-open #main-header .header-search-bar .dgwt-wcas-search-form,
	body.dgwt-wcas-focused #main-header .dgwt-wcas-search-wrapp,
	body.dgwt-wcas-open #main-header .dgwt-wcas-search-wrapp {
		width: 100%;
		max-width: none;
	}

	body.dgwt-wcas-focused #masthead,
	body.dgwt-wcas-open #masthead {
		z-index: 100001;
	}

	.dgwt-wcas-suggestions-wrapp {
		max-height: min(620px, calc(100dvh - 180px)) !important;
	}

	.claro-fibosearch-mobile {
		display: none !important;
	}
}

/* Kadence mobile header and FiboSearch native overlay ------------------ */

@media (max-width: 1024px) {
	.claro-fibosearch-desktop {
		display: none !important;
	}

	#mobile-header .site-header-main-section-right {
		align-items: center;
		gap: 8px;
	}

	.claro-fibosearch-mobile {
		position: relative;
		align-self: center;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		margin: 0;
		border: 1px solid var(--claro-search-line);
		border-radius: 50%;
		background: #FFFFFF;
		box-shadow: 0 4px 14px -10px rgba(26, 32, 44, 0.55);
	}

	.claro-fibosearch-mobile::before {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 21px;
		height: 21px;
		background: var(--claro-search-blue);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 3a6.5 6.5 0 1 0 4.02 11.61L19.91 21 21 19.91l-6.39-6.39A6.5 6.5 0 0 0 9.5 3Zm0 1.6a4.9 4.9 0 1 1 0 9.8 4.9 4.9 0 0 1 0-9.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 3a6.5 6.5 0 1 0 4.02 11.61L19.91 21 21 19.91l-6.39-6.39A6.5 6.5 0 0 0 9.5 3Zm0 1.6a4.9 4.9 0 1 1 0 9.8 4.9 4.9 0 0 1 0-9.8Z'/%3E%3C/svg%3E") center / contain no-repeat;
		transform: translate(-50%, -50%);
		pointer-events: none;
	}

	.claro-fibosearch-mobile:focus-within {
		border-color: #5BC5F2;
		box-shadow: 0 0 8px 1px rgba(91, 197, 242, 0.6);
	}

	.claro-fibosearch-mobile > .dgwt-wcas-search-wrapp,
	.claro-fibosearch-mobile .dgwt-wcas-enable-mobile-form {
		position: absolute;
		inset: 0;
		z-index: 2;
		display: block !important;
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		/* FiboSearch's minimum width must not cover the adjacent menu button. */
		min-width: 0 !important;
		cursor: pointer;
	}

	.claro-fibosearch-mobile .dgwt-wcas-search-form {
		display: none !important;
	}

	.claro-fibosearch-mobile .dgwt-wcas-enable-mobile-form:focus-visible {
		border-radius: 50%;
		outline: 2px solid var(--claro-search-blue);
		outline-offset: 3px;
	}

	.woocommerce-checkout .claro-fibosearch-mobile,
	.min-ck .claro-fibosearch-mobile {
		display: none !important;
	}

	.dgwt-wcas-overlay-mobile {
		position: fixed !important;
		inset: 0 !important;
		z-index: 100002 !important;
		height: 100dvh !important;
		background: var(--claro-search-soft) !important;
	}

	.dgwt-wcas-om-bar {
		height: 68px !important;
		padding: 7px 10px 7px 4px;
		border-bottom: 1px solid var(--claro-search-line);
		background: #FFFFFF;
	}

	.dgwt-wcas-om-bar button.dgwt-wcas-om-return {
		position: relative;
		flex: 0 0 50px;
		width: 50px !important;
		height: 50px !important;
		border-radius: 50% !important;
		background: transparent !important;
	}

	.dgwt-wcas-om-bar button.dgwt-wcas-om-return:hover,
	.dgwt-wcas-om-bar button.dgwt-wcas-om-return:focus-visible {
		background: #EFF6FF !important;
		outline: 2px solid var(--claro-search-blue);
		outline-offset: -3px;
	}

	.dgwt-wcas-om-bar button.dgwt-wcas-om-return svg {
		top: 16px !important;
		left: 16px !important;
		width: 18px !important;
		height: 18px !important;
		fill: var(--claro-search-navy) !important;
	}

	.dgwt-wcas-om-bar .dgwt-wcas-search-wrapp-mobile {
		width: calc(100% - 50px) !important;
		max-width: none !important;
	}

	.dgwt-wcas-om-bar .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
		padding: 0 !important;
		border-radius: 14px !important;
		background: transparent !important;
	}

	.dgwt-wcas-om-bar input[type="search"].dgwt-wcas-search-input {
		height: 50px !important;
		min-height: 50px;
		border: 1px solid var(--claro-search-line) !important;
		border-radius: 14px !important;
		background: #FFFFFF !important;
		box-shadow: none !important;
		color: var(--claro-search-navy) !important;
		font-size: 16px !important;
	}

	.dgwt-wcas-om-bar input[type="search"].dgwt-wcas-search-input:focus {
		border-color: #5BC5F2 !important;
		box-shadow: 0 0 8px 1px rgba(91, 197, 242, 0.6) !important;
		outline: none;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestions-wrapp {
		top: 68px !important;
		left: 0 !important;
		width: 100% !important;
		height: calc(100dvh - 68px) !important;
		max-height: calc(100dvh - 68px) !important;
		padding: 8px !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: var(--claro-search-soft) !important;
		box-shadow: none !important;
		overflow-y: auto !important;
		-webkit-overflow-scrolling: touch;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-si {
		flex-basis: 58px;
		width: 58px !important;
		height: 58px !important;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-si img {
		width: 58px !important;
		height: 58px !important;
	}
}

@media (max-width: 480px) {
	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:not([data-taxonomy]) {
		align-items: flex-start !important;
		padding: 10px 8px !important;
		column-gap: 10px;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product:not([data-taxonomy]) .dgwt-wcas-content-wrapp {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
		min-width: 0;
		text-align: left;
	}

	html.dgwt-wcas-overlay-mobile-on .dgwt-wcas-suggestion-product .dgwt-wcas-sp del {
		display: inline;
		margin-right: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dgwt-wcas-search-input,
	.dgwt-wcas-search-submit,
	.dgwt-wcas-suggestion,
	#main-header .site-header-main-section-left,
	#main-header .site-header-main-section-right {
		transition: none !important;
	}
}
