.rhize-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rhize-tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background-color: #f0f0f1;
	color: #1d2327;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

a.rhize-tag:hover,
a.rhize-tag:focus {
	text-decoration: none;
}

/* Gender filter: round icon buttons. */

.rhize-gender-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.rhize-gender-filter .rhize-gender-button {
	--rhize-button-size: 48px;
	--rhize-icon-size: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: var(--rhize-button-size);
	height: var(--rhize-button-size);
	margin: 0;
	padding: 0;
	border: 1px solid #1d2327;
	border-radius: 999px;
	background-color: transparent;
	color: #1d2327;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rhize-gender-filter .rhize-gender-button:has(.rhize-gender-button__text) {
	padding: 0 calc(var(--rhize-button-size) / 3);
}

.rhize-gender-button__icon {
	display: inline-flex;
	font-size: var(--rhize-icon-size);
}

.rhize-gender-button__icon svg,
.rhize-gender-button__icon i {
	width: var(--rhize-icon-size);
	height: var(--rhize-icon-size);
	font-size: var(--rhize-icon-size);
}

.rhize-gender-button__icon svg:not(.rhize-filter-icon) {
	fill: currentColor;
}

/* Topics filter: pill button with a checkbox box. */

.rhize-topics-filter {
	position: relative;
	display: inline-block;
	max-width: 100%;
}

.rhize-topics-filter .rhize-topics-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 22px;
	border: 1px solid #1d2327;
	border-radius: 999px;
	background-color: transparent;
	color: #1d2327;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rhize-topics-toggle__label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.rhize-topics-toggle__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5em;
	height: 1.5em;
	padding: 0 0.4em;
	border-radius: 999px;
	background-color: #1d2327;
	color: #fff;
	font-size: 0.8em;
}

.rhize-topics-toggle__count[hidden] {
	display: none;
}

.rhize-topics-toggle__arrow {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}

.rhize-topics-filter.is-open .rhize-topics-toggle__arrow {
	transform: rotate(180deg);
}

.rhize-topics-panel {
	position: absolute;
	top: 100%;
	z-index: 100;
	box-sizing: border-box;
	width: 260px;
	max-width: 90vw;
	margin-top: 8px;
	padding: 12px;
	border-radius: 16px;
	background-color: #fff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.rhize-topics-panel[hidden] {
	display: none;
}

.rhize-topics-panel.is-portaled {
	position: fixed;
	z-index: 99999;
	transform: none;
	inset-inline: auto;
}

.elementor-widget-rhize-topics-filter:has(.rhize-topics-filter.is-open) {
	position: relative;
	z-index: 1000;
}

.rhize-topics-filter--center .rhize-topics-panel {
	left: 50%;
	transform: translateX(-50%);
}

.rhize-topics-filter--start .rhize-topics-panel {
	inset-inline-start: 0;
}

.rhize-topics-filter--end .rhize-topics-panel {
	inset-inline-end: 0;
}

.rhize-topics-panel__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2px;
	max-height: 320px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.rhize-topics-option {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 8px 10px;
	border-radius: 10px;
	color: #1d2327;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}

.rhize-topics-option:hover {
	background-color: #f0f0f1;
}

.rhize-topics-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.rhize-topics-option__box {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border: 1.5px solid #8c8f94;
	border-radius: 5px;
	color: #fff;
	transition: background-color 0.2s, border-color 0.2s;
}

.rhize-topics-option__box svg {
	width: 75%;
	height: 75%;
	opacity: 0;
	transition: opacity 0.15s;
}

.rhize-topics-option.is-checked .rhize-topics-option__box {
	border-color: #1d2327;
	background-color: #1d2327;
}

.rhize-topics-option.is-checked .rhize-topics-option__box svg {
	opacity: 1;
}

.rhize-topics-option__input:focus-visible + .rhize-topics-option__box {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.rhize-topics-panel__empty {
	margin: 0;
	padding: 8px 10px;
	color: #646970;
}

.rhize-topics-filter .rhize-topics-clear {
	display: block;
	width: 100%;
	margin: 8px 0 0;
	padding: 8px 10px 0;
	border: 0;
	border-top: 1px solid #f0f0f1;
	border-radius: 0;
	background: none;
	color: #646970;
	font: inherit;
	font-size: 0.9em;
	text-align: center;
	text-decoration: underline;
	cursor: pointer;
}

.rhize-topics-filter .rhize-topics-clear[hidden] {
	display: none;
}

/* Topics filter: chips layout. */

.rhize-topics-filter.rhize-topics-filter--chips {
	display: block;
}

.rhize-topics-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.rhize-topics-chips .rhize-topics-chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #1d2327;
	border-radius: 999px;
	background-color: transparent;
	color: #1d2327;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rhize-topics-chips .rhize-topics-chip:hover,
.rhize-topics-chips .rhize-topics-chip:focus-within {
	background-color: #f0f0f1;
}

.rhize-topics-chips .rhize-topics-chip.is-checked {
	background-color: #1d2327;
	color: #fff;
}

.rhize-topics-chips .rhize-topics-chip:has(.rhize-topics-option__input:focus-visible) {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.rhize-topics-filter--chips:not(.is-expanded) .rhize-topics-chip.is-extra {
	display: none;
}

.rhize-topics-filter--chips .rhize-topics-chips .rhize-topics-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0 18px;
	border: 1px dashed #8c8f94;
	border-radius: 999px;
	background-color: transparent;
	color: #1d2327;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.rhize-topics-filter--chips .rhize-topics-chips .rhize-topics-more:hover,
.rhize-topics-filter--chips .rhize-topics-chips .rhize-topics-more:focus-visible {
	background-color: #f0f0f1;
}

.rhize-topics-filter--chips .rhize-topics-chips .rhize-topics-more[hidden] {
	display: none;
}

/* Shared active states and loading. */

.rhize-gender-filter .rhize-gender-button:hover,
.rhize-gender-filter .rhize-gender-button:focus-visible,
.rhize-topics-filter .rhize-topics-toggle:hover,
.rhize-topics-filter .rhize-topics-toggle:focus-visible {
	background-color: #f0f0f1;
	color: #1d2327;
}

.rhize-gender-filter .rhize-gender-button.is-active,
.rhize-topics-filter .rhize-topics-toggle.has-selection {
	background-color: #1d2327;
	color: #fff;
}

.rhize-topics-filter .rhize-topics-toggle.has-selection .rhize-topics-toggle__count {
	background-color: #fff;
	color: #1d2327;
}

.rhize-is-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}
