.csp-ad-filters {
	--csp-ad-accent: #6d28d9;
	--csp-ad-accent-dark: #4c159e;
	--csp-ad-accent-soft: #f5f0ff;
	--csp-ad-text: #19172b;
	--csp-ad-muted: #746f82;
	--csp-ad-line: #e8e2ef;
	--csp-ad-surface: #ffffff;
	box-sizing: border-box;
	margin: 0 0 22px;
	border: 1px solid rgba(92, 65, 132, .15);
	border-radius: 20px;
	background: var(--csp-ad-surface);
	box-shadow: 0 16px 45px rgba(43, 28, 69, .07), 0 2px 7px rgba(43, 28, 69, .035);
	color: var(--csp-ad-text);
	overflow: visible;
}

.csp-ad-filters *,
.csp-ad-filters *::before,
.csp-ad-filters *::after { box-sizing: border-box; }

.csp-ad-filters__intro {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 22px;
	padding: 23px 24px 16px;
}

.csp-ad-filters__heading { min-width: 0; }

.csp-ad-filters__eyebrow {
	margin: 0 0 5px;
	color: #7540d8;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .14em;
	line-height: 1.4;
	text-transform: uppercase;
}

.csp-ad-filters h2 {
	margin: 0;
	color: var(--csp-ad-text);
	font-size: clamp(20px, 2.15vw, 25px);
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.2;
}

.csp-ad-filters__lead {
	margin: 7px 0 0;
	color: var(--csp-ad-muted);
	font-size: 12px;
	line-height: 1.5;
}

.csp-ad-filters__summary {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	margin: 9px 0 0;
	padding: 5px 9px;
	border: 1px solid #eee7f6;
	border-radius: 999px;
	background: #faf8fd;
	color: #655b72;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	white-space: normal;
}

.csp-ad-filters__saved {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 0;
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf9f3;
	color: #08774d;
	font-size: 10px;
	font-weight: 750;
	line-height: 1.25;
}

.csp-ad-filters__saved > span {
	display: inline-grid;
	place-items: center;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: #d5f3e3;
	font-size: 10px;
}

.csp-ad-filters__toggle {
	display: inline-grid !important;
	flex: 0 0 auto;
	place-items: center;
	width: 38px;
	height: 38px;
	min-width: 38px;
	min-height: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #e0d8ec !important;
	border-radius: 12px;
	background: #fbf9fe !important;
	box-shadow: none !important;
	color: var(--csp-ad-accent-dark) !important;
	line-height: 1;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.csp-ad-filters__toggle:hover {
	border-color: #cbb9e2 !important;
	background: var(--csp-ad-accent-soft) !important;
	transform: translateY(-1px);
}

.csp-ad-filters__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform .2s ease;
}

.csp-ad-filters__toggle[aria-expanded="false"] svg { transform: rotate(180deg); }

.csp-ad-filters__form {
	display: grid;
	gap: 19px;
	padding: 0 24px;
}

.csp-ad-filters__form[hidden] { display: none; }

.csp-ad-filters__group,
.csp-ad-filters__reach {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.csp-ad-filters__group-title {
	margin: 0;
	padding: 0;
	color: #332f42;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.35;
}

.csp-ad-filters__group-note {
	margin: 3px 0 10px;
	color: #8a8495;
	font-size: 10px;
	font-weight: 500;
	line-height: 1.4;
}

.csp-ad-sort {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.csp-ad-sort__options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.csp-ad-sort__option {
	position: relative;
	min-width: 0;
	margin: 0;
}

.csp-ad-sort__option > input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.csp-ad-sort__card {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 58px;
	padding: 10px 12px;
	border: 1px solid #e3dde9;
	border-radius: 14px;
	background: linear-gradient(180deg, #fff, #fcfbfd);
	color: #494453;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.csp-ad-sort__card:hover {
	border-color: #cdbde0;
	background: #faf7fe;
	transform: translateY(-1px);
}

.csp-ad-sort__option > input:checked + .csp-ad-sort__card {
	border-color: #9b61df;
	background: linear-gradient(135deg, #faf7ff, #f1e8ff);
	box-shadow: 0 0 0 2px rgba(109, 40, 217, .08), 0 8px 20px rgba(76, 22, 130, .08);
	color: var(--csp-ad-accent-dark);
}

.csp-ad-sort__icon {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: #f1ebfa;
	color: var(--csp-ad-accent);
}

.csp-ad-sort__icon svg {
	width: 18px;
	height: 18px;
}

.csp-ad-sort__card strong,
.csp-ad-sort__card small {
	display: block;
}

.csp-ad-sort__card strong {
	font-size: 11px;
	font-weight: 850;
	line-height: 1.25;
}

.csp-ad-sort__card small {
	margin-top: 3px;
	color: #8b8495;
	font-size: 9px;
	font-weight: 550;
	line-height: 1.3;
}

.csp-ad-sort__explain {
	margin: 8px 2px 0;
	color: #82798c;
	font-size: 9px;
	font-weight: 500;
	line-height: 1.45;
}

.csp-ad-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	min-width: 0;
}

.csp-ad-chip {
	position: relative;
	min-width: 0;
	margin: 0;
}

button.csp-ad-chip,
.csp-ad-chip > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: 34px;
	margin: 0;
	padding: 7px 13px;
	border: 1px solid #e1dbe9;
	border-radius: 999px;
	background: #faf9fc;
	box-shadow: none;
	color: #554f62;
	font-size: 11px;
	font-weight: 720;
	line-height: 1.15;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

button.csp-ad-chip {
	display: inline-flex !important;
	width: auto !important;
	min-height: 34px !important;
	margin: 0 !important;
	padding: 7px 13px !important;
	border: 1px solid #e1dbe9 !important;
	border-radius: 999px !important;
	background: #faf9fc !important;
	box-shadow: none !important;
	color: #554f62 !important;
}

.csp-ad-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

button.csp-ad-chip:hover,
.csp-ad-chip > span:hover {
	border-color: #c9b7e1 !important;
	background: #f7f2fd !important;
	color: var(--csp-ad-accent-dark) !important;
}

button.csp-ad-chip.is-active,
.csp-ad-chip input:checked + span {
	border-color: var(--csp-ad-accent) !important;
	background: var(--csp-ad-accent) !important;
	box-shadow: 0 5px 13px rgba(109, 40, 217, .15) !important;
	color: #fff !important;
}

.csp-ad-topics {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.csp-ad-topics__control {
	position: relative;
	width: 100%;
	min-width: 0;
}

.csp-ad-topics__trigger {
	display: grid !important;
	grid-template-columns: 28px minmax(0, 1fr) 16px;
	align-items: center;
	gap: 9px;
	width: 100% !important;
	min-height: 44px !important;
	margin: 0 !important;
	padding: 7px 11px !important;
	border: 1px solid #ded7e7 !important;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(44, 28, 65, .025) !important;
	color: #403949 !important;
	font-size: 11px;
	font-weight: 720;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
}

.csp-ad-topics__trigger:hover,
.csp-ad-topics__trigger[aria-expanded="true"] {
	border-color: #a77bdd !important;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .08) !important;
}

.csp-ad-topics__trigger.has-selection { color: var(--csp-ad-accent-dark) !important; }

.csp-ad-topics__trigger-icon {
	display: inline-grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	background: #f2ecfb;
	color: var(--csp-ad-accent);
	font-size: 13px;
	font-weight: 850;
}

.csp-ad-topics__trigger-label {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.csp-ad-topics__trigger svg {
	width: 16px;
	height: 16px;
	color: #91899b;
	transition: transform .16s ease;
}

.csp-ad-topics__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

.csp-ad-topics__panel {
	position: absolute;
	top: calc(100% + 7px);
	left: 0;
	z-index: 1010;
	width: 100%;
	max-width: min(100%, calc(100vw - 54px));
	max-height: min(55vh, 440px);
	padding: 10px;
	border: 1px solid #ddd5e7;
	border-radius: 15px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(37, 22, 61, .17), 0 3px 9px rgba(37, 22, 61, .06);
	overflow: hidden;
}

.csp-ad-topics__panel[hidden] { display: none; }

.csp-ad-topics__search {
	position: sticky;
	top: 0;
	z-index: 2;
	display: block;
	margin: 0 0 8px;
	background: #fff;
}

.csp-ad-topics__search svg {
	position: absolute;
	top: 50%;
	left: 11px;
	width: 16px;
	height: 16px;
	transform: translateY(-50%);
	color: #887f92;
	pointer-events: none;
}

.csp-ad-topics__search input {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 8px 12px 8px 36px;
	border: 1px solid #e1dae9;
	border-radius: 11px;
	background: #fbfafc;
	box-shadow: none;
	color: #322c3a;
	font-size: 11px;
	outline: 0;
}

.csp-ad-topics__search input:focus {
	border-color: #9c6eda;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .08);
}

.csp-ad-topics__options {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
	gap: 4px;
	max-height: min(44vh, 340px);
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-gutter: stable;
}

.csp-ad-topic {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 36px;
	margin: 0;
	padding: 7px 8px;
	border-radius: 9px;
	color: #484150;
	font-size: 10px;
	font-weight: 650;
	line-height: 1.3;
	cursor: pointer;
}

.csp-ad-topic[hidden] { display: none; }
.csp-ad-topic:hover { background: #f7f3fc; color: var(--csp-ad-accent-dark); }

.csp-ad-topic input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.csp-ad-topic__check {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid #d9d0e4;
	border-radius: 7px;
	background: #fff;
	color: transparent;
	font-size: 11px;
	font-weight: 850;
}

.csp-ad-topic input:checked + .csp-ad-topic__check {
	border-color: var(--csp-ad-accent);
	background: var(--csp-ad-accent);
	color: #fff;
}

.csp-ad-topic input:focus-visible + .csp-ad-topic__check {
	outline: 3px solid rgba(109, 40, 217, .20);
	outline-offset: 2px;
}

.csp-ad-topics__empty {
	margin: 8px 0 2px;
	padding: 10px;
	color: #8e8797;
	font-size: 10px;
	text-align: center;
}

.csp-ad-filters__reach { padding-top: 1px; }

.csp-ad-reach-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.csp-ad-reach-option {
	position: relative;
	min-width: 0;
	margin: 0;
}

.csp-ad-reach-option > input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.csp-ad-reach-option > span {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 9px 11px;
	border: 1px solid #e3dde9;
	border-radius: 13px;
	background: #fcfbfd;
	color: #494453;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.csp-ad-reach-option > span:hover {
	border-color: #cdbde0;
	background: #faf7fe;
	transform: translateY(-1px);
}

.csp-ad-reach-option > input:checked + span {
	border-color: #a77bdd;
	background: linear-gradient(135deg, #faf7ff, #f3ecff);
	box-shadow: 0 0 0 2px rgba(109, 40, 217, .075);
	color: var(--csp-ad-accent-dark);
}

.csp-ad-reach-option__icon {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 29px;
	height: 29px;
	border-radius: 9px;
	background: #f1ebfa;
	color: var(--csp-ad-accent);
	font-size: 17px;
	font-weight: 700;
}

.csp-ad-reach-option strong,
.csp-ad-reach-option small { display: block; }

.csp-ad-reach-option strong {
	font-size: 11px;
	font-weight: 800;
	line-height: 1.25;
}

.csp-ad-reach-option small {
	margin-top: 2px;
	color: #8b8495;
	font-size: 9px;
	font-weight: 500;
	line-height: 1.25;
}

.csp-ad-filters__location-grid {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid #ebe6f0;
	border-radius: 15px;
	background: #fbfafc;
}

.csp-ad-filters__location-grid[hidden],
.csp-ad-filters__location[hidden],
.csp-ad-location-availability[hidden] { display: none; }

.csp-ad-filters__location {
	display: grid;
	align-content: start;
	gap: 6px;
	min-width: 0;
}

.csp-ad-filters__location:first-child { flex: 1 0 100%; }

.csp-ad-filters__location--teryt {
	flex: 0 1 var(--csp-ad-field-width, 220px);
	width: min(100%, var(--csp-ad-field-width, 220px));
	max-width: 100%;
}

.csp-ad-filters__location label {
	margin: 0;
	color: #5c5666;
	font-size: 10px;
	font-weight: 780;
	line-height: 1.35;
}

.csp-ad-field-help {
	margin: -1px 0 0;
	color: #9992a2;
	font-size: 9px;
	line-height: 1.35;
}

.csp-ad-country-field,
.csp-ad-select-control,
.csp-ad-combobox {
	position: relative;
	min-width: 0;
}

.csp-ad-select-control { width: 100%; }

.csp-ad-country-native,
.csp-ad-filters select,
.csp-ad-combobox {
	width: 100%;
	min-width: 0;
	min-height: 42px;
	margin: 0;
	border: 1px solid #ded7e7;
	border-radius: 12px;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(44, 28, 65, .025);
	color: #302b38;
	font-size: 11px;
	font-weight: 650;
}

.csp-ad-filters select {
	-webkit-appearance: none;
	appearance: none;
	height: 42px;
	padding: 8px 34px 8px 12px;
	background-image: linear-gradient(45deg, transparent 50%, #8d8498 50%), linear-gradient(135deg, #8d8498 50%, transparent 50%);
	background-position: calc(100% - 16px) 18px, calc(100% - 12px) 18px;
	background-repeat: no-repeat;
	background-size: 4px 4px, 4px 4px;
	text-overflow: ellipsis;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.csp-ad-country-native { padding: 8px 12px; }

.csp-ad-combobox {
	display: flex;
	align-items: center;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.csp-ad-combobox[hidden] { display: none; }

.csp-ad-combobox:focus-within,
.csp-ad-filters select:focus {
	border-color: #9c6eda;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .09);
	outline: 0;
}

.csp-ad-combobox__flag {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 40px;
	padding-left: 8px;
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 18px;
	line-height: 1;
}

.csp-ad-combobox > input {
	width: 100%;
	min-width: 0;
	height: 40px;
	margin: 0;
	padding: 8px 28px 8px 4px;
	border: 0;
	border-radius: 12px;
	background: transparent;
	box-shadow: none;
	color: #302b38;
	font-size: 11px;
	font-weight: 680;
	line-height: 1.2;
	outline: 0;
}

.csp-ad-combobox > input::placeholder { color: #9c95a4; font-weight: 550; }

/*
 * Puste pole kraju otwiera listę po fokusie. Ukrywamy wtedy wyłącznie
 * migający kursor przed placeholderem; po wpisaniu pierwszego znaku
 * standardowy kursor natychmiast wraca.
 */
.csp-ad-country-field .csp-ad-combobox > input:placeholder-shown {
	color: transparent !important;
	-webkit-text-fill-color: transparent;
	caret-color: transparent !important;
}

.csp-ad-country-field .csp-ad-combobox > input:placeholder-shown::placeholder {
	color: transparent;
	-webkit-text-fill-color: transparent;
	opacity: 0;
}

.csp-ad-country-field .csp-ad-combobox:has(> input:placeholder-shown)::after {
	content: attr(data-placeholder);
	position: absolute;
	top: 50%;
	left: 44px;
	z-index: 2;
	padding: 7px 4px 7px 0;
	transform: translateY(-50%);
	background: #fff;
	color: #9c95a4;
	font-size: 11px;
	font-weight: 550;
	line-height: 1.2;
	pointer-events: none;
}

.csp-ad-combobox > svg {
	position: absolute;
	right: 9px;
	width: 16px;
	height: 16px;
	color: #91899b;
	pointer-events: none;
}

.csp-ad-combobox--directory > input {
	padding-right: 30px;
	padding-left: 37px;
}

.csp-ad-combobox__search-icon {
	position: absolute;
	left: 12px;
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	color: #8c8297;
	pointer-events: none;
}

.csp-ad-combobox__search-icon svg { width: 16px; height: 16px; }

.csp-ad-combobox--directory.is-disabled {
	border-color: #e9e5ed;
	background: #f7f5f8;
	opacity: .72;
}

.csp-ad-combobox--directory.is-disabled > input { cursor: not-allowed; }

.csp-ad-combobox--directory.is-loading .csp-ad-combobox__search-icon {
	width: 14px;
	height: 14px;
	border: 2px solid #ded3ed;
	border-top-color: var(--csp-ad-accent);
	border-radius: 50%;
	animation: csp-ad-spin .7s linear infinite;
}

.csp-ad-combobox--directory.is-loading .csp-ad-combobox__search-icon svg { display: none; }

@keyframes csp-ad-spin { to { transform: rotate(360deg); } }

.csp-ad-combobox__list {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	left: 0;
	z-index: 1000;
	max-height: 244px;
	margin: 0;
	padding: 6px;
	border: 1px solid #ded6e8;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 18px 45px rgba(37, 22, 61, .16), 0 3px 8px rgba(37, 22, 61, .06);
	list-style: none;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.csp-ad-combobox__list[hidden] { display: none; }

.csp-ad-combobox__list [role="option"] {
	display: grid;
	grid-template-columns: 27px minmax(0, 1fr) auto;
	align-items: center;
	gap: 7px;
	min-height: 36px;
	margin: 0;
	padding: 6px 8px;
	border-radius: 9px;
	color: #3e3847;
	font-size: 11px;
	font-weight: 650;
	cursor: pointer;
}

.csp-ad-combobox__list--directory [role="option"] {
	grid-template-columns: minmax(0, 1fr);
	min-height: 38px;
	padding: 7px 10px;
}

.csp-ad-combobox__list--directory [role="option"] > span {
	white-space: nowrap;
}

.csp-ad-combobox__list [role="option"]:hover,
.csp-ad-combobox__list [role="option"].is-active {
	background: #f4effb;
	color: var(--csp-ad-accent-dark);
}

.csp-ad-combobox__list [role="option"][aria-selected="true"] {
	background: #eee5fb;
	color: var(--csp-ad-accent-dark);
}

.csp-ad-combobox__option-flag {
	font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
	font-size: 18px;
	line-height: 1;
}

.csp-ad-combobox__list small {
	color: #aaa3b2;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
}

.csp-ad-combobox__empty {
	margin: 0;
	padding: 12px;
	color: #8e8797;
	font-size: 11px;
	text-align: center;
}

.csp-ad-combobox__hint {
	margin: 5px 4px 1px;
	padding: 8px 9px;
	border-top: 1px solid #eee9f3;
	color: #8e8797;
	font-size: 9px;
	font-weight: 650;
	line-height: 1.35;
	text-align: center;
}

.csp-ad-filters select:hover { border-color: #cabdde; }

.csp-ad-filters select[aria-busy="true"] {
	background-color: #faf8fd;
	cursor: wait;
}

.csp-ad-location-availability {
	display: flex;
	grid-column: 1 / -1;
	align-items: flex-start;
	gap: 9px;
	padding: 10px 11px;
	border-radius: 11px;
	background: #f3f0f8;
	color: #716a7c;
}

.csp-ad-location-availability > span {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #e4dcef;
	color: #68469a;
	font-size: 10px;
	font-weight: 800;
}

.csp-ad-location-availability p {
	margin: 0;
	font-size: 9px;
	line-height: 1.45;
}

.csp-ad-location-availability strong { color: #4e4759; font-size: 10px; }

.csp-ad-filters__actions {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	margin: 0 -24px;
	padding: 14px 24px 16px;
	border-top: 1px solid #eee9f3;
	border-radius: 0 0 20px 20px;
	background: #fcfbfd;
}

.csp-ad-filters__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 150px;
	min-height: 40px;
	margin: 0 !important;
	padding: 8px 15px !important;
	border: 0 !important;
	border-radius: 11px;
	background: linear-gradient(135deg, #5b16b7, #7427d9) !important;
	box-shadow: 0 7px 17px rgba(103, 28, 197, .19);
	color: #fff !important;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	cursor: pointer;
	transition: box-shadow .16s ease, transform .16s ease;
}

.csp-ad-filters__submit:hover {
	box-shadow: 0 10px 21px rgba(103, 28, 197, .25);
	transform: translateY(-1px);
}

.csp-ad-filters__submit svg { width: 15px; height: 15px; }

.csp-ad-filters__submit[disabled] {
	opacity: .62;
	cursor: wait;
	transform: none;
}

.csp-ad-filters__reset {
	display: inline-flex !important;
	align-items: center;
	gap: 5px;
	min-width: 0;
	min-height: 34px !important;
	height: auto !important;
	margin: 0 !important;
	padding: 6px 2px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #6c6278 !important;
	font-size: 10px;
	font-weight: 750;
	line-height: 1.2;
	cursor: pointer;
}

.csp-ad-filters__reset:hover { color: var(--csp-ad-accent-dark) !important; }

.csp-ad-filters__status {
	min-width: 0;
	color: #7258a0;
	font-size: 10px;
	line-height: 1.35;
	text-align: right;
}

/*
 * The Discovery panel replaces duplicate global BuddyBoss selectors, but keeps
 * the native BuddyBoss search form so its AJAX, reset and pagination contracts
 * remain untouched. Assets and the body class are scoped to the global feed.
 */
.csp-ad-global-feed #buddypress .activity-topic-selector,
.csp-ad-global-feed #buddypress .activity-head-bar > .bb-subnav-filters-container-main,
.csp-ad-global-feed #buddypress .bb-subnav-filters-search > .subnav-filters-opener {
	display: none !important;
}

.csp-ad-global-feed #buddypress .activity-head-bar {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	margin: 0 0 18px;
	padding: 0;
}

.csp-ad-global-feed #buddypress .bb-subnav-filters-search,
.csp-ad-global-feed #buddypress .bb-subnav-filters-search #subnav-filters,
.csp-ad-global-feed #buddypress .bb-subnav-filters-search .subnav-search,
.csp-ad-global-feed #buddypress .bb-subnav-filters-search .dir-search,
.csp-ad-global-feed #buddypress .csp-ad-native-search-form {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form {
	position: relative;
	display: flex !important;
	align-items: center;
	min-height: 44px;
	padding: 0 44px 0 0;
	border: 1px solid #ded7e7;
	border-radius: 13px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(44, 28, 65, .035);
	overflow: hidden;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form:focus-within {
	border-color: #9c6eda;
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .09);
}

.csp-ad-global-feed #buddypress #dir-activity-search {
	width: 100% !important;
	height: 42px !important;
	min-height: 42px !important;
	margin: 0 !important;
	padding: 9px 12px 9px 42px !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #302b38;
	font-size: 12px;
	outline: 0 !important;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 14px;
	width: 15px;
	height: 15px;
	border: 1.8px solid #81778d;
	border-radius: 50%;
	transform: translateY(-58%);
	pointer-events: none;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form::after {
	content: "";
	position: absolute;
	top: calc(50% + 5px);
	left: 27px;
	width: 6px;
	height: 1.8px;
	border-radius: 2px;
	background: #81778d;
	transform: rotate(45deg);
	pointer-events: none;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form button[type="submit"] {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 43px !important;
	height: 43px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid #eee9f3 !important;
	border-radius: 0 !important;
	background: #faf8fd !important;
	box-shadow: none !important;
	color: #5b16b7 !important;
}

.csp-ad-global-feed #buddypress .csp-ad-native-search-form .search-form_reset {
	right: 46px !important;
}

.csp-ad-chip input:focus-visible + span,
.csp-ad-sort__option input:focus-visible + .csp-ad-sort__card,
.csp-ad-reach-option input:focus-visible + span,
button.csp-ad-chip:focus-visible,
.csp-ad-filters button:focus-visible {
	outline: 3px solid rgba(109, 40, 217, .20);
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.csp-ad-filters { border-radius: 17px; }
	.csp-ad-filters__intro { gap: 13px; padding: 19px 17px 14px; }
	.csp-ad-filters h2 { font-size: 20px; }
	.csp-ad-filters__lead { max-width: 260px; font-size: 11px; }
	.csp-ad-filters__toggle { width: 36px; height: 36px; min-width: 36px; min-height: 36px; }
	.csp-ad-filters__form { gap: 17px; padding: 0 17px; }
	.csp-ad-filters__chips { gap: 6px; }
	.csp-ad-sort__options { grid-template-columns: 1fr; gap: 7px; }
	.csp-ad-sort__card { min-height: 52px; }
	.csp-ad-topics__control { width: 100%; }
	.csp-ad-topics__panel { position: fixed; top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; max-height: min(72vh, 520px); }
	.csp-ad-topics__options { grid-template-columns: 1fr; max-height: min(55vh, 390px); }
	button.csp-ad-chip,
	.csp-ad-chip > span { min-height: 33px; padding: 7px 11px; font-size: 10px; }
	.csp-ad-reach-options { grid-template-columns: 1fr; gap: 7px; }
	.csp-ad-reach-option > span { min-height: 48px; }
	.csp-ad-filters__location-grid { display: grid; grid-template-columns: 1fr; padding: 12px; }
	.csp-ad-filters__location:first-child { grid-column: auto; }
	.csp-ad-filters__location--teryt { width: 100%; }
	.csp-ad-combobox__list--directory [role="option"] > span { white-space: normal; }
	.csp-ad-filters__actions { grid-template-columns: auto minmax(0, 1fr) auto; margin-right: -17px; margin-left: -17px; padding: 12px 17px 14px; border-radius: 0 0 17px 17px; }
	.csp-ad-filters__submit { min-width: 0; }
}

@media (max-width: 390px) {
	.csp-ad-filters__actions { grid-template-columns: 1fr auto; }
	.csp-ad-filters__status { grid-column: 1 / -1; grid-row: 1; text-align: left; }
	.csp-ad-filters__reset { grid-column: 1; grid-row: 2; justify-self: start; }
	.csp-ad-filters__submit { grid-column: 2; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
	.csp-ad-filters *,
	.csp-ad-filters *::before,
	.csp-ad-filters *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
