/**
 * FiboSearch presentation adapter.
 *
 * The desktop header mirrors the established Kaiti/WoodMart search field.
 * Mobile overlay styling stays in the existing integration stylesheet.
 */

@media (min-width: 1025px) {
	.whb-header .wd-header-search-form > .dgwt-wcas-search-wrapp {
		width: 100%;
		min-width: 0;
		max-width: none;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-search-form {
		width: 100%;
		height: 54px;
		margin: 0;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 42px;
		align-items: center;
		width: 100%;
		height: 54px;
		padding: 5px;
		background: #fff;
		border: 1px solid rgba(182, 40, 90, .2);
		border-radius: 999px;
		box-shadow: 0 12px 32px rgba(48, 43, 43, .07);
		box-sizing: border-box;
		transition: border-color .2s ease, box-shadow .2s ease;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx:is(.dgwt-wcas-search-focused, :focus-within) .dgwt-wcas-sf-wrapp {
		border-color: #b6285a;
		box-shadow: 0 0 0 4px rgba(220, 155, 180, .2), 0 12px 32px rgba(48, 43, 43, .07);
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx.dgwt-wcas-search-filled .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
		position: relative;
		grid-column: 1;
		grid-row: 1;
		min-width: 0;
		width: 100%;
		height: 42px;
		padding: 0 16px;
		color: #344b4a;
		background: transparent;
		border: 0;
		border-radius: 999px 0 0 999px;
		box-shadow: none;
		font-family: inherit;
		font-size: 13px;
		line-height: 42px;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx .dgwt-wcas-search-input::placeholder {
		color: #7b7171;
		opacity: .82;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
		position: relative !important;
		inset: auto !important;
		z-index: 1;
		grid-column: 2;
		grid-row: 1;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		min-height: 42px;
		padding: 0;
		color: #fff;
		background: #b6285a;
		border: 0;
		border-radius: 50%;
		box-shadow: none;
		opacity: 1;
		transform: none;
		transition: background-color .2s ease;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit:is(:hover, :focus-visible) {
		color: #fff;
		background: #8f2047;
		outline: none;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-search-submit svg {
		width: 18px;
		height: 18px;
		fill: #fff;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-search-submit svg path {
		fill: #fff;
	}

	.whb-header .wd-header-search-form .dgwt-wcas-preloader {
		inset-inline: auto 54px !important;
	}

	/* FiboSearch renders its results directly under <body>. Scope the dropdown
	 * to its desktop details mode so the mobile overlay remains fully native. */
	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestions-wrapp {
		padding: 9px;
		background: #fffaf3;
		border: 1px solid rgba(182, 40, 90, .14);
		border-top: 0;
		border-radius: 0 0 0 18px;
		box-shadow: 0 22px 48px rgba(48, 43, 43, .14);
		box-sizing: border-box;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-wrapp {
		padding: 10px;
		background: #fff;
		border: 1px solid rgba(182, 40, 90, .14);
		border-left: 0;
		border-radius: 0 18px 18px 0;
		box-shadow: 16px 22px 42px -22px rgba(48, 43, 43, .22);
		box-sizing: border-box;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-headline {
		min-height: 0;
		padding: 12px 10px 7px !important;
		color: #b6285a;
		background: transparent !important;
		border: 0 !important;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: .11em;
		line-height: 1.35;
		text-transform: uppercase;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
		display: block;
		padding-bottom: 7px;
		border-bottom: 1px dashed rgba(182, 40, 90, .2);
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-tax {
		min-height: 0;
		margin: 1px 0;
		padding: 7px 10px !important;
		color: #302b2b;
		background: transparent;
		border: 0 !important;
		border-radius: 10px;
		font-size: 13px;
		line-height: 1.3;
		transition: background-color .16s ease, color .16s ease;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-tax:is(:hover, .dgwt-wcas-suggestion-selected) {
		color: #8f2047;
		background: rgba(220, 155, 180, .16);
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-tax strong {
		color: #b6285a;
		font-weight: 750;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-tax .dgwt-wcas-st-breadcrumbs {
		display: block;
		margin-top: 2px;
		color: #897f7f;
		font-size: 10px;
		line-height: 1.35;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product {
		display: flex;
		align-items: center;
		min-height: 60px;
		margin: 2px 0;
		padding: 8px 10px !important;
		color: #302b2b;
		background: transparent;
		border: 0 !important;
		border-radius: 12px;
		transition: background-color .16s ease;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product:is(:hover, .dgwt-wcas-suggestion-selected) {
		background: rgba(220, 155, 180, .14);
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-si {
		display: flex !important;
		flex: 0 0 44px;
		align-items: center;
		justify-content: center;
		width: 44px !important;
		height: 44px !important;
		margin: 0 10px 0 0 !important;
		padding: 4px;
		background: #fff;
		border: 1px solid rgba(107, 125, 125, .14);
		border-radius: 9px;
		box-sizing: border-box;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
		width: 100% !important;
		height: 100% !important;
		max-width: none !important;
		max-height: none !important;
		object-fit: contain;
		object-position: center;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
		display: flex;
		align-items: center;
		gap: 8px;
		min-width: 0;
		width: 100%;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-st {
		flex: 1 1 auto;
		min-width: 0;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-st-title {
		display: -webkit-box;
		color: #302b2b;
		font-size: 12px;
		font-weight: 650;
		line-height: 1.28;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-sku {
		display: block;
		margin-top: 3px;
		color: #817777;
		font-size: 9.5px;
		line-height: 1.25;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-meta {
		flex: 0 0 auto;
		margin-left: auto;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-product .dgwt-wcas-sp {
		color: #b6285a;
		font-size: 12.5px;
		font-weight: 800;
		white-space: nowrap;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-more {
		min-height: 38px;
		margin: 11px 4px 2px;
		padding: 10px 14px !important;
		color: #b6285a;
		background: rgba(220, 155, 180, .12);
		border: 1px solid rgba(182, 40, 90, .18) !important;
		border-radius: 999px;
		font-size: 10.5px;
		font-weight: 750;
		letter-spacing: .02em;
		line-height: 1.35;
		text-align: center;
		transition: color .16s ease, background-color .16s ease;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-suggestion-more:is(:hover, .dgwt-wcas-suggestion-selected) {
		color: #fff;
		background: #b6285a;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-inner {
		padding: 0 !important;
		background: transparent;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-datails-title {
		display: block;
		margin: 2px 5px 8px;
		padding: 5px 2px 10px;
		color: #302b2b;
		border-bottom: 1px dashed rgba(182, 40, 90, .2);
		font-size: 12.5px;
		font-weight: 650;
		line-height: 1.35;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-title-tax {
		color: #b6285a;
		font-size: 9.5px;
		font-weight: 800;
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tax-product-details {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr);
		gap: 10px;
		align-items: center;
		min-height: 62px;
		margin: 2px 0;
		padding: 8px 6px;
		color: #302b2b;
		border-radius: 12px;
		transition: background-color .16s ease;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tax-product-details:hover {
		color: #302b2b;
		background: rgba(220, 155, 180, .12);
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tpd-image {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 4px;
		background: #fffaf3;
		border: 1px solid rgba(107, 125, 125, .14);
		border-radius: 9px;
		box-sizing: border-box;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tpd-image img {
		width: 100%;
		height: 100%;
		object-fit: contain;
		object-position: center;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tpd-rest-title {
		display: -webkit-box;
		color: #302b2b;
		font-size: 11.5px;
		font-weight: 650;
		line-height: 1.28;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-tpd-price {
		margin-top: 4px;
		color: #b6285a;
		font-size: 12px;
		font-weight: 800;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-more-products {
		display: block;
		min-height: 38px;
		margin: 10px 4px 2px;
		padding: 10px 14px;
		color: #b6285a;
		background: rgba(220, 155, 180, .12);
		border: 1px solid rgba(182, 40, 90, .18);
		border-radius: 999px;
		font-size: 10.5px;
		font-weight: 750;
		line-height: 1.35;
		text-align: center;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-more-products:hover {
		color: #fff;
		background: #b6285a;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-inner-product {
		padding: 7px !important;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-main-image {
		padding: 10px;
		background: #fffaf3;
		border: 1px solid rgba(107, 125, 125, .14);
		border-radius: 14px;
		overflow: hidden;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-main-image img {
		display: block;
		width: 100%;
		max-height: 220px;
		object-fit: contain;
		object-position: center;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-inner-product > .dgwt-wcas-product-details > .dgwt-wcas-details-space {
		padding: 14px 3px 3px !important;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-product-title {
		color: #302b2b;
		font-size: 15px;
		font-weight: 650;
		line-height: 1.3;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-product-sku {
		display: inline-block;
		margin-top: 6px;
		padding: 3px 7px;
		color: #6b7d7d;
		background: rgba(107, 125, 125, .08);
		border-radius: 999px;
		font-size: 9.5px;
		line-height: 1.2;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-pd-price {
		margin-top: 10px;
		color: #b6285a;
		font-size: 15px;
		font-weight: 800;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-hr {
		margin-block: 13px;
		border-color: rgba(107, 125, 125, .16);
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-details-desc {
		color: #6b6262;
		font-size: 11.5px;
		line-height: 1.55;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-stock {
		font-size: 11px;
		font-weight: 700;
	}

	body.dgwt-wcas-open.dgwt-wcas-details-outside .dgwt-wcas-pd-addtc .button {
		min-height: 38px;
		padding: 10px 18px;
		border-radius: 999px;
		box-shadow: none;
		font-size: 10.5px;
	}
}
