/* Defaults match the Elementor Taxonomy Filter on the Resources page (870): its saved colours and
   6px radius, Elementor's 8px padding / 20px gap / line-height normal, and weight 600 from the kit.
   The Style-tab controls override them per widget.
   Colours are CSS variables, so the :hover / .is-active rules never out-rank a control.
   Every link state is set: legacy CSS styles a:visited / a:hover.
   Search box defaults copy the Elementor Search widget that sat on page 870 (4fa7912). */
.kmst-rf {
	--kmst-rf-c: #245db3;
	--kmst-rf-bg: rgb(255 255 255 / .75);
	--kmst-rf-bd: transparent;
	--kmst-rf-c-h: #fe006a;
	--kmst-rf-bg-h: #ffffff;
	--kmst-rf-bd-h: transparent;
	--kmst-rf-c-a: #fff;
	--kmst-rf-bg-a: #245db3;
	--kmst-rf-bd-a: transparent;
	--kmst-rf-icon: 18px;
}

.kmst-rf .kmst-rf__cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.kmst-rf .kmst-rf__btn,
.kmst-rf .kmst-rf__btn:visited {
	display: inline-flex;
	align-items: center;
	padding: 8px;
	border: 0 solid var(--kmst-rf-bd);
	border-radius: 6px;
	background: var(--kmst-rf-bg);
	color: var(--kmst-rf-c);
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color .2s, color .2s, border-color .2s;
}

.kmst-rf .kmst-rf__btn:hover,
.kmst-rf .kmst-rf__btn:focus-visible {
	border-color: var(--kmst-rf-bd-h);
	background: var(--kmst-rf-bg-h);
	color: var(--kmst-rf-c-h);
	text-decoration: none;
}

.kmst-rf .kmst-rf__btn.is-active,
.kmst-rf .kmst-rf__btn.is-active:visited,
.kmst-rf .kmst-rf__btn.is-active:hover,
.kmst-rf .kmst-rf__btn.is-active:focus-visible {
	border-color: var(--kmst-rf-bd-a);
	background: var(--kmst-rf-bg-a);
	color: var(--kmst-rf-c-a);
}

/* Search: the label is the box (border, radius, background); the input inside is bare.
   Two-class selectors beat Hello's reset of input[type=search]. */
.kmst-rf .kmst-rf__search {
	display: flex;
	justify-content: center;
	margin: 20px 0 0;
}

/* Show categories off: no space above the box. */
.kmst-rf > .kmst-rf__search:first-child {
	margin-top: 0;
}

.kmst-rf .kmst-rf__field {
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(100%, 500px);
	margin: 0;
	padding: 0 16px;
	border: 1px solid #bdbdbd;
	border-radius: 10px;
	background: #fff;
	cursor: text;
	transition: border-color .2s;
}

.kmst-rf .kmst-rf__field:focus-within {
	border-color: #245db3;
}

.kmst-rf .kmst-rf__search-icon {
	display: inline-flex;
	flex: none;
	width: var(--kmst-rf-icon);
	height: var(--kmst-rf-icon);
	color: #bdbdbd;
}

.kmst-rf .kmst-rf__search-icon svg {
	width: 100%;
	height: 100%;
}

.kmst-rf .kmst-rf__input {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	min-width: 0;
	margin: 0;
	padding: 16px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #c5c5c5;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	outline: none;
}

.kmst-rf .kmst-rf__input:focus {
	border: 0;
	outline: none;
	box-shadow: none;
}

.kmst-rf .kmst-rf__input::placeholder {
	color: #bdbdbd;
	opacity: 1;
}

/* Our ✕ replaces the browser's own clear button. */
.kmst-rf .kmst-rf__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	display: none;
}

.kmst-rf .kmst-rf__clear,
.kmst-rf .kmst-rf__clear:visited,
.kmst-rf .kmst-rf__clear:hover,
.kmst-rf .kmst-rf__clear:focus-visible {
	flex: none;
	color: #bdbdbd;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
}

.kmst-rf .kmst-rf__clear:hover,
.kmst-rf .kmst-rf__clear:focus-visible {
	color: #245db3;
}
