/* Category Design Tool — Sector Search. Every rule is scoped to .cdt-ss* so nothing leaks into the theme or the design tool. */

.cdt-ss {
	--cdt-ss-accent: var(--pt-blue, #0073aa);
	--cdt-ss-text: #1d2327;
	--cdt-ss-muted: #646970;
	--cdt-ss-border: #c9ced6;
	position: relative;
	z-index: 5;
	box-sizing: border-box;
	width: 100%;
	max-width: 620px;
	margin: 8px 0 10px;
	font-family: inherit;
	text-align: left;
}

.cdt-ss[hidden],
.cdt-ss-list[hidden],
.cdt-ss-clear[hidden] {
	display: none !important;
}

.cdt-ss *,
.cdt-ss-list,
.cdt-ss-list * {
	box-sizing: border-box;
}

.cdt-ss .cdt-ss-label {
	display: block;
	margin: 0 0 7px;
	color: var(--cdt-ss-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.cdt-ss .cdt-ss-box {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
}

.cdt-ss .cdt-ss-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	display: flex;
	color: var(--cdt-ss-muted);
	transform: translateY(-50%);
	pointer-events: none;
}

.cdt-ss .cdt-ss-input {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 44px 0 44px;
	border: 1px solid var(--cdt-ss-border);
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	color: var(--cdt-ss-text);
	font-family: inherit;
	font-size: 16px; /* 16px stops iOS zooming on focus */
	line-height: 50px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cdt-ss .cdt-ss-input::placeholder {
	color: #8c8f94;
	opacity: 1;
}

.cdt-ss .cdt-ss-input:focus {
	border-color: var(--cdt-ss-accent);
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.18);
}

.cdt-ss .cdt-ss-clear {
	position: absolute;
	right: 8px;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cdt-ss-muted);
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: none;
}

.cdt-ss .cdt-ss-clear:hover,
.cdt-ss .cdt-ss-clear:focus-visible {
	background: #f0f0f1;
	color: var(--cdt-ss-text);
}

.cdt-ss .cdt-ss-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Dropdown — moved to <body> by the JS and positioned under the input (fixed). */
.cdt-ss-list {
	--cdt-ss-accent: var(--pt-blue, #0073aa);
	position: fixed;
	/* Above sticky headers and the WP WhatsApp chat button (999999999), below
	   cookie-consent overlays (Pressidium uses 2147483647). */
	z-index: 1000000000;
	max-height: 420px;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	list-style: none;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
	font-family: inherit;
	text-align: left;
}

.cdt-ss-list .cdt-ss-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.cdt-ss-list .cdt-ss-item::before,
.cdt-ss-list .cdt-ss-item::marker {
	content: none;
}

.cdt-ss-list .cdt-ss-link {
	display: block;
	padding: 9px 14px;
	color: #1d2327 !important;
	text-decoration: none !important;
	border-left: 3px solid transparent;
}

.cdt-ss-list .cdt-ss-item.cdt-ss-active .cdt-ss-link {
	background: #f0f6fc;
	border-left-color: var(--cdt-ss-accent);
}

.cdt-ss-list .cdt-ss-name-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.cdt-ss-list .cdt-ss-name {
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
}

.cdt-ss-list .cdt-ss-name mark {
	padding: 0;
	background: transparent;
	color: var(--cdt-ss-accent);
	font-weight: 800;
}

.cdt-ss-list .cdt-ss-badge {
	flex: 0 0 auto;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f0f0f1;
	color: #50575e;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.6;
	white-space: nowrap;
}

.cdt-ss-list .cdt-ss-badge-1 { background: #e7f0fa; color: #135e96; }
.cdt-ss-list .cdt-ss-badge-2,
.cdt-ss-list .cdt-ss-badge-3 { background: #e9f6ec; color: #1e6b33; }

.cdt-ss-list .cdt-ss-trail {
	display: block;
	margin-top: 2px;
	overflow: hidden;
	color: #646970;
	font-size: 12.5px;
	line-height: 1.4;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cdt-ss-list .cdt-ss-heading {
	margin: 0;
	padding: 6px 14px 4px;
	color: #646970;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	list-style: none;
}

.cdt-ss-list .cdt-ss-msg {
	margin: 0;
	padding: 12px 14px;
	color: #50575e;
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
}

@media (max-width: 600px) {
	.cdt-ss {
		max-width: none;
		margin: 14px 0 16px;
	}

	.cdt-ss .cdt-ss-input {
		height: 48px;
		line-height: 48px;
	}

	.cdt-ss-list .cdt-ss-badge {
		display: none;
	}
}
