/* Scoped root — isolates from Elementor / theme globals */
.dc-cs {
	--dc-cs-header-bg: #ffffff;
	--dc-cs-header-border: #e7e5e0;
	--dc-cs-text-main: #1c1b1a;
	--dc-cs-text-muted: #6b6862;
	--dc-cs-accent: #b9491f;
	--dc-cs-accent-hover: #9a3b18;
	--dc-cs-accent-soft: rgba(185, 73, 31, 0.08);
	--dc-cs-dropdown-shadow: 0 12px 28px rgba(28, 27, 26, 0.10);
	--dc-cs-font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	font-family: var(--dc-cs-font-body);
	font-size: 16px;
	line-height: 1.4;
	height: 24px;
	color: var(--dc-cs-text-main);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}

#dcCsRoot{
	position: absolute;
}

.dc-cs *,
.dc-cs *::before,
.dc-cs *::after {
	box-sizing: inherit;
}

/* Strip Elementor/theme button, input, and link chrome */
.dc-cs button,
.dc-cs input,
.dc-cs a {
	all: unset;
	box-sizing: border-box;
}

body.dc-cs-open {
	overflow: hidden;
}

.dc-cs .dc-cs-trigger {
	display: inline-flex;
	align-items: center;
	border: none;
	background: transparent;
	cursor: pointer;
	color: var(--dc-cs-text-main);
}

.dc-cs .dc-cs-trigger:hover {
	scale: 1.1;
	transition: scale .15s ease;
}

.dc-cs .dc-cs-trigger:focus-visible {
	outline: 2px solid var(--dc-cs-accent);
	outline-offset: 2px;
}

.dc-cs .dc-cs-trigger svg {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

.dc-cs .dc-cs-trigger-label {
	font-size: 14px;
	font-weight: 500;
}

/* ---------- Search modal ---------- */
.dc-cs .dc-cs-overlay {
	position: fixed;
	inset: 0;
	background: rgba(28, 27, 26, 0.45);
	backdrop-filter: blur(2px);
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 12vh 20px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .15s ease, visibility .15s;
	font-family: var(--dc-cs-font-body);
	color: var(--dc-cs-text-main);
}

.dc-cs .dc-cs-overlay.open {
	opacity: 1;
	visibility: visible;
}

.dc-cs .dc-cs-modal {
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transform: translateY(-12px);
	transition: transform .18s ease;
}

.dc-cs .dc-cs-overlay.open .dc-cs-modal {
	transform: translateY(0);
}

.dc-cs .dc-cs-input-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border-bottom: 1px solid var(--dc-cs-header-border);
	position: relative;
	background: var(--dc-cs-header-bg);
}

.dc-cs .dc-cs-input-row svg.dc-cs-search-icon {
	width: 19px;
	height: 19px;
	color: var(--dc-cs-text-muted);
	flex-shrink: 0;
	display: block;
}

.dc-cs .dc-cs-input {
	flex: 1;
	min-width: 0;
	border: none;
	outline: none;
	font-size: 16px;
	font-family: var(--dc-cs-font-body);
	line-height: 1.4;
	color: var(--dc-cs-text-main);
	background: none;
	display: block;
	width: 100%;
}

.dc-cs .dc-cs-input::placeholder {
	color: var(--dc-cs-text-muted);
	opacity: 1;
}

.dc-cs .dc-cs-input:focus-visible {
	outline: none;
}

.dc-cs .dc-cs-close {
	border: none;
	background: none;
	cursor: pointer;
	color: var(--dc-cs-text-muted);
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	flex-shrink: 0;
	padding: 0;
}

.dc-cs .dc-cs-close:hover {
	background: #f4f2ee;
	color: var(--dc-cs-text-main);
}

.dc-cs .dc-cs-close:focus-visible {
	outline: 2px solid var(--dc-cs-accent);
	outline-offset: 2px;
}

.dc-cs .dc-cs-close svg {
	width: 16px;
	height: 16px;
	display: block;
}

.dc-cs .dc-cs-body {
	min-height: 220px;
	max-height: 50vh;
	overflow-y: auto;
	padding: 8px;
	scrollbar-width: thin;
	scrollbar-color: #d8d4cc transparent;
	background: #fff;
}

.dc-cs .dc-cs-body::-webkit-scrollbar {
	width: 8px;
}

.dc-cs .dc-cs-body::-webkit-scrollbar-thumb {
	background: #d8d4cc;
	border-radius: 8px;
}

.dc-cs .dc-cs-empty,
.dc-cs .dc-cs-status {
	height: 220px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	color: var(--dc-cs-text-muted);
	font-size: 14px;
	text-align: center;
	padding: 0 24px;
}

.dc-cs .dc-cs-status {
	flex-direction: row;
}

.dc-cs .dc-cs-empty svg {
	width: 34px;
	height: 34px;
	opacity: .5;
	display: block;
}

.dc-cs .dc-cs-message span {
	max-width: 320px;
	line-height: 1.5;
}

.dc-cs .dc-cs-group {
	padding: 4px 0;
}

.dc-cs .dc-cs-group+.dc-cs-group {
	border-top: 1px solid var(--dc-cs-header-border);
	margin-top: 4px;
	padding-top: 8px;
}

.dc-cs .dc-cs-group-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--dc-cs-text-muted);
	padding: 4px 12px 6px;
}

.dc-cs .dc-cs-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--dc-cs-text-main);
	cursor: pointer;
	transition: background-color .12s ease;
	font-family: var(--dc-cs-font-body);
}

.dc-cs .dc-cs-result:hover,
.dc-cs .dc-cs-result.active {
	background: #f4f2ee;
}

.dc-cs .dc-cs-result:focus-visible {
	outline: 2px solid var(--dc-cs-accent);
	outline-offset: -2px;
}

.dc-cs .dc-cs-thumb {
	width: 40px;
	height: 40px;
	border-radius: 6px;
	background: #efece6;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	color: var(--dc-cs-text-muted);
	overflow: hidden;
}

.dc-cs .dc-cs-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 0;
	max-width: none;
}

.dc-cs .dc-cs-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.dc-cs .dc-cs-title {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--dc-cs-text-main);
}

.dc-cs .dc-cs-price {
	font-size: 12.5px;
	color: var(--dc-cs-text-muted);
}

.dc-cs .dc-cs-excerpt {
	font-size: 12px;
	color: var(--dc-cs-text-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dc-cs .dc-cs-footer {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 18px;
	border-top: 1px solid var(--dc-cs-header-border);
	font-size: 12px;
	color: var(--dc-cs-text-muted);
	background: #fff;
}

.dc-cs .dc-cs-kbd {
	background: #f0efeb;
	border: 1px solid var(--dc-cs-header-border);
	border-radius: 4px;
	padding: 2px 6px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
	font-family: var(--dc-cs-font-body);
	color: var(--dc-cs-text-muted);
}

.dc-cs .dc-cs-loading {
	width: 16px;
	height: 16px;
	border: 2px solid var(--dc-cs-header-border);
	border-top-color: var(--dc-cs-accent);
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
	animation: dc-cs-spin .6s linear infinite;
}

@keyframes dc-cs-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 600px) {
	.dc-cs .dc-cs-overlay {
		padding: 0;
		align-items: stretch;
	}

	.dc-cs .dc-cs-modal {
		max-width: none;
		border-radius: 0;
		height: 100%;
		display: flex;
		flex-direction: column;
	}

	.dc-cs .dc-cs-body {
		flex: 1;
		max-height: none;
	}

	.dc-cs .dc-cs-footer {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dc-cs .dc-cs-overlay,
	.dc-cs .dc-cs-modal,
	.dc-cs .dc-cs-result,
	.dc-cs .dc-cs-trigger,
	.dc-cs .dc-cs-loading {
		transition: none;
		animation: none;
	}
}