.rzpf-filter {
	--rzpf-accent: #2f8f4e;
	--rzpf-accent-dark: #236d3c;
	--rzpf-bg: #ffffff;
	--rzpf-border: #e4e7ec;
	--rzpf-muted: #667085;
	--rzpf-selected: #edf7f0;
	--rzpf-soft: #f7faf8;
	--rzpf-text: #1f2933;

	background: var(--rzpf-bg);
	border: 1px solid var(--rzpf-border);
	border-radius: 8px;
	box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
	color: var(--rzpf-text);
	font-size: 14px;
	line-height: 1.45;
	margin: 0;
	overflow: hidden;
	position: relative;
}

.rzpf-filter,
.rzpf-filter * {
	box-sizing: border-box;
}

.rzpf-filter.is-loading {
	pointer-events: none;
}

.rzpf-filter.is-loading::after {
	background: rgba(255, 255, 255, 0.58);
	content: "";
	inset: 0;
	position: absolute;
	z-index: 2;
}

.rzpf-filter.is-loading::before {
	animation: rzpf-spin 0.8s linear infinite;
	border: 2px solid rgba(47, 143, 78, 0.24);
	border-radius: 999px;
	border-top-color: var(--rzpf-accent);
	content: "";
	height: 18px;
	position: absolute;
	right: 18px;
	top: 18px;
	width: 18px;
	z-index: 3;
}

.rzpf-filter-group {
	background: var(--rzpf-bg);
	padding: 0;
}

.rzpf-filter-group:not(:first-of-type) {
	border-top: 1px solid var(--rzpf-border);
}

.rzpf-filter-title {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: inherit;
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 12px;
	justify-content: space-between;
	margin: 0;
	min-height: 56px;
	padding: 16px 20px;
	text-align: left;
	transition: background-color 0.16s ease, color 0.16s ease;
	width: 100%;
}

.rzpf-filter-title:hover,
.rzpf-filter-title:focus-visible {
	background: var(--rzpf-soft);
	color: var(--rzpf-accent-dark);
	outline: 0;
}

.rzpf-filter-title:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(47, 143, 78, 0.26);
}

.rzpf-filter-label {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	min-width: 0;
	overflow-wrap: anywhere;
}

.rzpf-filter-group.has-selection .rzpf-filter-label::after {
	background: var(--rzpf-accent);
	border-radius: 999px;
	content: "";
	display: inline-block;
	height: 6px;
	margin-left: 8px;
	transform: translateY(-1px);
	vertical-align: middle;
	width: 6px;
}

.rzpf-filter-icon {
	align-items: center;
	background: #ffffff;
	border: 1px solid #d0d5dd;
	border-radius: 999px;
	color: var(--rzpf-muted);
	display: inline-flex;
	flex: 0 0 24px;
	height: 24px;
	justify-content: center;
	transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
	width: 24px;
}

.rzpf-filter-title:hover .rzpf-filter-icon,
.rzpf-filter-title:focus-visible .rzpf-filter-icon,
.rzpf-filter-group.has-selection .rzpf-filter-icon {
	border-color: rgba(47, 143, 78, 0.5);
	color: var(--rzpf-accent-dark);
}

.rzpf-filter-icon::before {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	content: "";
	display: inline-block;
	height: 6px;
	transform: rotate(45deg) translate(-1px, -1px);
	width: 6px;
}

.rzpf-filter-group.is-open .rzpf-filter-icon {
	transform: rotate(180deg);
}

.rzpf-filter-values {
	margin: 0;
	padding: 0 14px 16px;
}

.rzpf-filter-values ul {
	display: grid;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.rzpf-filter-values li {
	margin: 0;
	min-width: 0;
}

.rzpf-filter-values label {
	align-items: center;
	border-radius: 6px;
	color: var(--rzpf-text);
	cursor: pointer;
	display: flex;
	gap: 10px;
	line-height: 1.35;
	min-height: 38px;
	padding: 8px 10px;
	transition: background-color 0.16s ease, color 0.16s ease;
	width: 100%;
}

.rzpf-filter-values label:hover,
.rzpf-filter-values label:focus-within {
	background: var(--rzpf-soft);
}

.rzpf-filter-values li.is-selected label {
	background: var(--rzpf-selected);
	color: var(--rzpf-accent-dark);
	font-weight: 600;
}

.rzpf-filter-values input[type="checkbox"] {
	accent-color: var(--rzpf-accent);
	flex: 0 0 18px;
	height: 18px;
	margin: 0;
	width: 18px;
}

.rzpf-value-label {
	min-width: 0;
	overflow-wrap: anywhere;
}

.rzpf-count {
	color: var(--rzpf-muted);
	font-size: 12px;
	margin-left: auto;
	white-space: nowrap;
}

.rzpf-actions {
	align-items: center;
	background: #fbfcfb;
	border-top: 1px solid var(--rzpf-border);
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 16px 20px 18px;
}

.rzpf-apply.button {
	align-items: center;
	background: var(--rzpf-accent);
	border: 1px solid var(--rzpf-accent);
	border-radius: 6px;
	color: #ffffff;
	display: inline-flex;
	flex: 1 1 148px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 11px 16px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.woocommerce .rzpf-apply.button {
	background: var(--rzpf-accent);
	border-color: var(--rzpf-accent);
	color: #ffffff;
}

.rzpf-apply.button:hover,
.rzpf-apply.button:focus-visible,
.woocommerce .rzpf-apply.button:hover,
.woocommerce .rzpf-apply.button:focus-visible {
	background: var(--rzpf-accent-dark);
	border-color: var(--rzpf-accent-dark);
	box-shadow: 0 6px 14px rgba(35, 109, 60, 0.2);
	color: #ffffff;
	outline: 0;
}

.rzpf-reset {
	align-items: center;
	color: var(--rzpf-muted);
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	justify-content: center;
	line-height: 1.2;
	min-height: 42px;
	padding: 0 2px;
	text-decoration: none;
	transition: color 0.16s ease;
}

.rzpf-reset:hover,
.rzpf-reset:focus-visible {
	color: var(--rzpf-accent-dark);
	outline: 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rzpf-is-loading ul.products {
	opacity: 0.58;
	transition: opacity 0.16s ease;
}

.rzpf-products-notice {
	margin-top: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
	.rzpf-filter.is-loading::before {
		animation: none;
	}

	.rzpf-filter-title,
	.rzpf-filter-icon,
	.rzpf-filter-values label,
	.rzpf-apply.button,
	.rzpf-reset,
	.rzpf-is-loading ul.products {
		transition: none;
	}
}

@media (max-width: 1024px) {
	body.woocommerce-page.left-sidebar .site-content {
		display: flex;
		flex-direction: column;
	}

	body.woocommerce-page.left-sidebar .site-content .content-area {
		order: 2;
		width: 100%;
	}

	body.woocommerce-page.left-sidebar .site-content #left-sidebar {
		order: 1;
		width: 100%;
	}

	body.woocommerce-page.left-sidebar #left-sidebar,
	body.woocommerce-page.left-sidebar #left-sidebar .inside-left-sidebar,
	body.woocommerce-page.left-sidebar #left-sidebar .widget_rz_product_filter_widget {
		margin-top: 0;
		padding-left: 0;
		padding-right: 0;
		padding-top: 0;
		width: 100%;
	}

	body.woocommerce-page.left-sidebar #left-sidebar .widget_rz_product_filter_widget {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.inside-left-sidebar .rzpf-filter,
	.inside-right-sidebar .rzpf-filter {
		margin-bottom: 24px;
	}
}

@media (max-width: 768px) {
	.rzpf-filter {
		box-shadow: 0 4px 14px rgba(16, 24, 40, 0.05);
		font-size: 15px;
	}

	body.woocommerce-page.left-sidebar #left-sidebar .widget_rz_product_filter_widget {
		padding-left: 0;
		padding-right: 0;
	}

	.rzpf-filter-title {
		min-height: 54px;
		padding: 15px 16px;
	}

	.rzpf-filter-label {
		font-size: 15px;
	}

	.rzpf-filter-values {
		padding: 0 10px 14px;
	}

	.rzpf-filter-values label {
		gap: 11px;
		min-height: 44px;
		padding: 10px;
	}

	.rzpf-actions {
		gap: 10px;
		padding: 14px;
	}

	.rzpf-apply.button,
	.rzpf-reset {
		flex-basis: 100%;
		width: 100%;
	}

	.rzpf-reset {
		border: 1px solid var(--rzpf-border);
		border-radius: 6px;
		color: var(--rzpf-text);
	}
}

@media (max-width: 480px) {
	body.woocommerce-page.left-sidebar #left-sidebar .widget_rz_product_filter_widget {
		padding-left: 0;
		padding-right: 0;
	}

	.rzpf-filter {
		border-radius: 6px;
	}

	.rzpf-filter-title {
		padding-left: 14px;
		padding-right: 14px;
	}

	.rzpf-filter-values {
		padding-left: 8px;
		padding-right: 8px;
	}
}
