/* FiboSearch keeps its native list, positioning, keyboard handling and scrolling. */

/* Botiga's generated search-panel background uses !important. */
body .header-search-form:not(.header-search-form-always-visible) {
	background-color: var(--pm-dark) !important;
	padding: 24px 24px 28px;
	box-shadow: 0 12px 24px rgb(0 0 0 / 20%);
}
.header-search-form .dgwt-wcas-search-wrapp {
	width: 100%;
	max-width: 1100px;
	margin-inline: auto;
}
.header-search-form .dgwt-wcas-search-form { max-width: none; }

.dgwt-wcas-search-wrapp,
.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-details-wrapp {
	font-family: var(--pm-font-main);
}
body .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
	height: 48px;
	background-color: var(--pm-grey-dark);
	color: var(--pm-white);
	border-color: var(--pm-grey-dark);
	font-size: 16px;
}
body .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder {
	color: var(--pm-text-secondary);
	opacity: 1;
	font-style: normal;
}
body .dgwt-wcas-search-wrapp .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus {
	border-color: var(--pm-yellow);
	outline: 2px solid var(--pm-yellow);
	outline-offset: 2px;
	box-shadow: none;
}
body .dgwt-wcas-suggestions-wrapp,
body .dgwt-wcas-details-wrapp,
body .dgwt-wcas-overlay-mobile,
body .dgwt-wcas-om-bar {
	background-color: var(--pm-dark);
	color: var(--pm-white);
}
body .dgwt-wcas-suggestions-wrapp,
body .dgwt-wcas-details-wrapp {
	border-color: var(--pm-grey-dark) !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
	color: var(--pm-white);
	text-decoration: none;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-selected,
.dgwt-wcas-suggestions-wrapp a.dgwt-wcas-suggestion:hover {
	background-color: var(--pm-grey-dark);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st strong,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sd strong {
	color: var(--pm-yellow);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
	color: var(--pm-white);
	border-bottom: 0;
}
.dgwt-wcas-suggestions-wrapp a.dgwt-wcas-suggestion:focus-visible {
	outline: 2px solid var(--pm-yellow);
	outline-offset: -3px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product span.dgwt-wcas-si {
	width: 64px;
	flex: 0 0 64px;
	height: auto;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
	max-height: 88px;
	object-fit: contain;
	/* White belongs to product photography, not to the surrounding dropdown. */
	border: 0;
	padding: 0;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp {
	min-width: 0;
	resize: none;
	gap: 12px;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st {
	line-height: 1.4;
	overflow-wrap: anywhere;
}
/* Match PM product pricing; reset Botiga's generic pale-yellow ins background. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
	white-space: nowrap;
	color: var(--pm-yellow);
	font-size: 18px;
	font-weight: 900;
	line-height: 1.4;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp ins {
	background: transparent;
	color: var(--pm-yellow);
	font-weight: 900;
	text-decoration: none;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del {
	color: var(--pm-text-muted);
	font-size: 14px;
	font-weight: 400;
	opacity: 1;
	text-decoration: line-through;
}
/* FiboSearch sets descendant colors explicitly; let amounts inherit the price state. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp :is(.amount, bdi, .woocommerce-Price-currencySymbol) {
	color: inherit;
	font-weight: inherit;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
	background-color: var(--pm-blue);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more .dgwt-wcas-st-more {
	color: var(--pm-white);
	font-weight: 700;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more.dgwt-wcas-suggestion-selected {
	background-color: var(--pm-blue);
	box-shadow: inset 0 0 0 2px var(--pm-yellow);
}

@media (min-width: 1025px) {
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product span.dgwt-wcas-si {
		width: 144px;
		flex-basis: 144px;
	}
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-si img {
		max-height: 192px;
	}
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product {
		padding-block: 12px;
	}
}
@media (max-width: 600px) {
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp { font-size: 16px; }
	body .header-search-form:not(.header-search-form-always-visible) {
		padding: 16px;
	}
	.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-product .dgwt-wcas-content-wrapp {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}
}
