/*
 * DCJ Search — scoped to the search modal and the search dropdown only.
 * No global site styles are touched.
 */

[data-header*="type-1"] #search-modal.ct-panel {
	position: fixed !important;
	inset: var(--dcj-search-top, 120px) auto auto var(--dcj-search-left, 40px) !important;
	width: min(360px, calc(100vw - 40px)) !important;
	height: auto !important;
	max-height: calc(100vh - var(--dcj-search-top, 120px) - 12px) !important;
	display: block !important;
	padding: 0 !important;
	background: transparent !important;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-18px);
	transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.24s;
	overflow: visible !important;
	z-index: 999999 !important;
}

[data-header*="type-1"] #search-modal.ct-panel.active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
	transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s;
}

[data-header*="type-1"] #search-modal .ct-panel-content {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	flex: none !important;
	padding: 12px !important;
	background: #fff !important;
	border: 1px solid rgba(212, 175, 55, 0.38);
	border-radius: 12px;
	box-shadow: 0 18px 50px rgba(26, 22, 19, 0.18);
	overflow: visible !important;
	transform: none !important;
}

[data-header*="type-1"] #search-modal .ct-panel-actions {
	position: absolute !important;
	top: -10px !important;
	right: -10px !important;
	width: auto !important;
	height: auto !important;
	padding: 0 !important;
	z-index: 3;
}

[data-header*="type-1"] #search-modal .ct-toggle-close {
	width: 26px !important;
	height: 26px !important;
	min-height: 26px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	border: 1px solid rgba(212, 175, 55, 0.45) !important;
	box-shadow: 0 6px 16px rgba(26, 22, 19, 0.14) !important;
	color: #1a1613 !important;
}

[data-header*="type-1"] #search-modal .ct-toggle-close path {
	fill: currentColor !important;
}

[data-header*="type-1"] #search-modal .ct-toggle-close svg {
	width: 10px !important;
	height: 10px !important;
}

[data-header*="type-1"] #search-modal .dgwt-wcas-search-wrapp {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

[data-header*="type-1"] #search-modal .dgwt-wcas-search-form {
	margin: 0;
}

[data-header*="type-1"] #search-modal .dgwt-wcas-sf-wrapp {
	background: #f8f3ee;
	border: 1px solid rgba(212, 175, 55, 0.5);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-header*="type-1"] #search-modal .dgwt-wcas-search-input {
	height: 38px;
	padding: 0 12px 0 34px;
	background: transparent;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	color: #1a1613;
	font-family: "Montserrat", sans-serif !important;
	font-size: 12px;
	letter-spacing: 0.01em;
}

[data-header*="type-1"] #search-modal .dgwt-wcas-search-input::placeholder {
	color: #734b00;
	opacity: 0.62;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
}

[data-header*="type-1"] #search-modal .dgwt-wcas-ico-magnifier {
	width: 15px;
	height: 15px;
	left: 11px;
	top: 50%;
	bottom: auto;
	margin: 0;
	transform: translateY(-50%);
}

[data-header*="type-1"] #search-modal .dgwt-wcas-ico-magnifier path {
	fill: #734b00;
}

.dgwt-wcas-suggestions-wrapp,
.dgwt-wcas-suggestions-wrapp * {
	font-family: "Montserrat", sans-serif !important;
}

.dgwt-wcas-suggestions-wrapp {
	border: 1px solid rgba(212, 175, 55, 0.35) !important;
	border-radius: 8px !important;
	box-shadow: 0 18px 44px rgba(26, 22, 19, 0.16) !important;
	overflow: hidden;
}

.dgwt-wcas-suggestion {
	padding: 8px 12px;
}

.dgwt-wcas-suggestions-wrapp.woocommerce .dgwt-wcas-st {
	color: #1a1613 !important;
	font-size: 12px !important;
	font-weight: 500;
}

.dgwt-wcas-sp {
	color: #734b00;
	font-size: 11px;
}

.dgwt-wcas-st strong {
	color: #734b00;
}

.dgwt-wcas-suggestion-selected {
	background: #f8f3ee !important;
}

body.dcj-search-open {
	overflow: auto !important;
}

body.search .site-main .products,
body.search .site-main .products .product,
body.search .site-main .products .product *,
body.search .site-main .woocommerce-info,
body.search .site-main .woocommerce-message,
body.search .site-main .woocommerce-error,
body.search .site-main .woocommerce-result-count,
body.search .site-main .woocommerce-ordering,
body.search .site-main .woocommerce-breadcrumb {
	font-family: "Montserrat", sans-serif !important;
}
