/* ===== Match logic toggle ===== */
.tfd-logic-toggle {
	display: flex;
	gap: 16px;
	align-items: center;
	margin-bottom: 12px;
	font-size: 13px;
	color: #555;
}

.tfd-logic-toggle label {
	display: flex;
	align-items: center;
	gap: 5px;
	cursor: pointer;
}

/* ===== Filter accordion list ===== */
.tfd-filter-list {
	background: #ffffff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tfd-term-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tfd-term-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border-bottom: 1px solid #e2e2e2;
	background-color: #ffffff;
}

.tfd-depth-0 > .tfd-term-item > .tfd-term-row {
	background-color: #ffffff;
}

.tfd-term-children .tfd-term-row {
	background-color: #f6f6f6;
	padding-left: 28px;
}

.tfd-term-children .tfd-term-children .tfd-term-row {
	padding-left: 42px;
}

.tfd-term-item:last-child > .tfd-term-row {
	border-bottom: none;
}

.tfd-term-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	flex: 1;
	min-width: 0;
}

.tfd-term-checkbox {
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	accent-color: #003e77;
	cursor: pointer;
}

.tfd-term-name {
	color: #003e77;
	font-size: 15px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tfd-term-count {
	color: #8a8a8a;
	font-size: 12px;
	margin-left: 4px;
}

.tfd-term-toggle {
	background: none;
	border: none;
	padding: 6px;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tfd-chevron {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #003e77;
	border-bottom: 2px solid #003e77;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.tfd-term-item.tfd-open > .tfd-term-row .tfd-chevron {
	transform: rotate(-135deg);
}

.tfd-term-children {
	transition: all 0.2s ease;
}

.tfd-clear-btn {
	display: inline-block;
	margin-top: 14px;
	padding: 8px 16px;
	background: transparent;
	border: 1px solid #003e77;
	color: #003e77;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
}

.tfd-clear-btn:hover {
	background: #003e77;
	color: #ffffff;
}

/* ===== Loading state applied to YOUR existing results container ===== */
.tfd-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}
