.rcf-filters {
	display: grid;
	gap: 1.25rem;
	margin: 1rem 0;
	max-width: 100%;
}

.rcf-filter {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	min-inline-size: 0;
}

.rcf-container-inner .rcf-filter__label,
.rcf-filters .rcf-filter__label {
	color: var(--e-global-color-47835ed, #BC0203);
	font-family: "Montserrat", system-ui, -apple-system, sans-serif;
	font-weight: 700;
	font-size: 1.3rem;
	text-transform: uppercase;
	margin: 15px 0 !important;
	background-color: var(--e-global-color-9387566);
	padding: 10px;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
}

.rcf-filter__options {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.5rem;
}

.rcf-filter__options > li:not(.rcf-filter__more-wrap) {
	margin: 0 10px;
}

.rcf-filter__options label {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	cursor: pointer;
	line-height: 1.4;
}

.rcf-filter__options label:has(input[type="checkbox"]:checked),
.rcf-filter__options label:has(input[type="radio"]:checked),
.rcf-filter__option-label label:has(input:checked),
.rcf-filter__option-row > label:has(input:checked) {
	font-weight: 700;
}

.rcf-filters input[type="checkbox"]:not(.rcf-pill__input) {
	appearance: none;
	-webkit-appearance: none;
	width: 1.2rem;
	height: 1.2rem;
	margin-right: 0.3em;
	flex-shrink: 0;
	border: 1px solid #c3c4c7;
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
	position: relative;
	vertical-align: top;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.rcf-filters input[type="checkbox"]:not(.rcf-pill__input):checked {
	background-color: var(--e-global-color-47835e, #BC0203);
	border-color: var(--e-global-color-47835e, #BC0203);
}

.rcf-filters input[type="checkbox"]:not(.rcf-pill__input):checked::after {
	content: "";
	display: block;
	width: 0.35rem;
	height: 0.6rem;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	position: absolute;
	top: 0.18rem;
	left: 0.38rem;
}

.rcf-filters input[type="checkbox"]:not(.rcf-pill__input):focus-visible {
	outline: 2px solid var(--e-global-color-47835e, #BC0203);
	outline-offset: 2px;
}

.rcf-filter__count {
	color: #646970;
	font-size: 0.875em;
	white-space: nowrap;
}

.rcf-filter__header {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 0;
	margin-bottom: 0.75rem;
	position: relative;
}

.rcf-filter__header .rcf-filter__label {
	margin: 15px 0 !important;
}

.rcf-filter__header:has(.rcf-filter__collapse) .rcf-filter__label {
	padding-right: 2.5rem;
}

.rcf-filter__header .rcf-filter__collapse {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 1;
}

.rcf-filter__header .rcf-filter__collapse:hover {
	background-color: transparent!important;
}


.rcf-filter__body {
	padding: 0 0 0.5rem;
}

.rcf-filter__collapse-sign,
.rcf-term-expand__sign {
	display: inline-block !important;
	visibility: visible !important;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1;
	background-color: transparent!important;
	color: var(--e-global-color-47835e, #BC0203);
}


.rcf-filter__collapse-sign:hover,
.rcf-term-expand__sign:hover {
	background-color: transparent!important;
}

.rcf-filter__collapse,
.rcf-term-expand {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 1;
	flex-shrink: 0;
	min-width: 1.25rem;
	min-height: 1.25rem;
	appearance: none;
	-webkit-appearance: none;
	color: var(--e-global-color-47835e, #BC0203);
	font-family: inherit;
}

.rcf-filter__collapse:hover,
.rcf-term-expand:hover,
.rcf-filter__collapse:focus-visible,
.rcf-term-expand:focus-visible,
.rcf-filter__collapse:focus,
.rcf-term-expand:focus {
	background-color: transparent!important;
}

.rcf-filter__option-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.rcf-filter__option-label {
	flex: 1;
	min-width: 0;
}

.rcf-filter__option-label label,
.rcf-filter__option-row > label {
	display: flex;
	align-items: flex-start;
	gap: 0.35rem;
	cursor: pointer;
	line-height: 1.4;
}

.rcf-term-expand {
	position: relative;
	z-index: 1;
}

.rcf-filter__children {
	margin: 0.35rem 0 0 1.25rem;
	padding: 0;
	list-style: none;
	gap: 0.5rem;
}

.rcf-filter__children:not([hidden]):not(.rcf-is-collapsed) {
	display: grid;
}

.rcf-filter__children[hidden],
.rcf-filter__children.rcf-is-collapsed,
.rcf-filter__body[hidden] {
	display: none !important;
}

.rcf-filter__options--tree > .rcf-filter__option--parent > .rcf-filter__option-row .rcf-filter__option-label {
	margin: 0;
}

/* Label pills — 2-column WOOF-style grid */
.rcf-filter__options--pills {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	padding: 10px 5px;
	list-style: none;
}

.rcf-filter__options--pills > li:not(.rcf-filter__more-wrap) {
	margin: 0;
}

.rcf-pill-item {
	position: relative;
	margin: 0;
	list-style: none;
}

.rcf-pill-item--inline {
	width: 100%;
}

.rcf-pill {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px;
	background: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #333;
	text-align: center;
	min-height: 48px;
	line-height: 1.4;
	word-wrap: break-word;
	overflow-wrap: break-word;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rcf-pill:hover {
	background: #f0f0f0;
	border-color: #ccc;
}

.rcf-pill__label {
	display: block;
	width: 100%;
}

.rcf-pill__count {
	position: absolute;
	top: -8px;
	right: -8px;
	background: var(--e-global-color-47835e, #BC0203);
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	min-width: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 600;
	z-index: 2;
	box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
	line-height: 1;
	pointer-events: none;
}

.rcf-pill__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rcf-pill--active,
.rcf-pill:has(.rcf-pill__input:checked) {
	background: var(--e-global-color-47835e, #BC0203);
	color: #fff;
	border-color: var(--e-global-color-47835e, #BC0203);
	font-weight: 600;
}

.rcf-pill-item:has(.rcf-pill__input:checked) .rcf-pill__count {
	background: #fff;
	color: var(--e-global-color-47835e, #BC0203);
}

.rcf-pill:focus-within {
	outline: 2px solid var(--e-global-color-47835e, #BC0203);
	outline-offset: 2px;
}

.rcf-show-more {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--e-global-color-47835e, #BC0203);
	cursor: pointer;
	font: inherit;
	text-decoration: none;
}

.rcf-show-more:hover{
	background-color: transparent;
	color: var(--e-global-color-47835e, #BC0203);
}

.rcf-filter--price {
	--rcf-brand-color: var(--e-global-color-47835e, #BC0203);
}

.rcf-filter__price-slider {
	margin: 0.5rem 0 0.75rem;
}

/* Ion.RangeSlider â€” brand-colored track, handles, and tooltips */
.rcf-filter--price .irs--round .irs-line {
	background-color: #dee4ec;
}

.rcf-filter--price .irs--round .irs-bar {
	background-color: var(--rcf-brand-color);
}

.rcf-filter--price .irs--round .irs-handle {
	border-color: var(--rcf-brand-color);
	background-color: #fff;
	box-shadow: 0 1px 3px color-mix(in srgb, var(--rcf-brand-color) 30%, transparent);
}

.rcf-filter--price .irs--round .irs-handle.state_hover,
.rcf-filter--price .irs--round .irs-handle:hover {
	background-color: color-mix(in srgb, var(--rcf-brand-color) 8%, #fff);
}

.rcf-filter--price .irs--round .irs-from,
.rcf-filter--price .irs--round .irs-to,
.rcf-filter--price .irs--round .irs-single {
	background-color: var(--rcf-brand-color);
}

.rcf-filter--price .irs--round .irs-from::before,
.rcf-filter--price .irs--round .irs-to::before,
.rcf-filter--price .irs--round .irs-single::before {
	border-top-color: var(--rcf-brand-color);
}

.rcf-filter__price-values {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: var(--rcf-brand-color);
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.rcf-filter__price-sep {
	display: none;
}

.rcf-filter__price-to {
	text-align: right;
}

.rcf-filter__price-fallback {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.rcf-filter__options--more {
	margin-top: 0.5rem;
}

.rcf-filter__price-inputs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rcf-filter__price-inputs label {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.rcf-filters__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.rcf-filters[data-rcf-submission="auto"] .rcf-apply {
	display: none;
}

.rcf-filters .button:focus-visible,
.rcf-filters a.rcf-reset:focus-visible,
.rcf-filter input[type="radio"]:focus-visible {
	outline: 2px solid var(--e-global-color-47835e, #BC0203);
	outline-offset: 2px;
}

.rcf-grid-target.rcf-grid--loading {
	opacity: 0.55;
	pointer-events: none;
}

.rcf-live-status {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rcf-live-error {
	margin: 1rem 0;
	padding: 0.75rem 1rem;
	border: 1px solid #d63638;
	border-radius: 4px;
	background: #fcf0f1;
}

.rcf-live-error p {
	margin: 0 0 0.5rem;
}

.rcf-live-error .button {
	margin-right: 0.5rem;
}

/* Align with common ShopEngine archive sidebar spacing */
.shopengine-archive .rcf-filters,
.woocommerce-shop .rcf-filters,
.tax-product_cat .rcf-filters,
[class*="tax-pa_"] .rcf-filters {
	box-sizing: border-box;
}

/* ShopEngine load-more uses unfiltered archive URLs; hide it while ROI filters are active */
body.rcf-filters-active .shopengine-archive-products .woocommerce-pagination,
body.rcf-filters-active .elementor-widget-shopengine-archive-products .woocommerce-pagination {
	display: none;
}

@media (prefers-reduced-motion: no-preference) {
	.rcf-filters .button {
		transition: opacity 0.15s ease;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcf-filters .button {
		transition: none;
	}
}

/* Desktop sidebar — hide on mobile when mobile shortcode is used */
@media (max-width: 768px) {
	.rcf-filters--desktop {
		display: none !important;
	}
}

/* Mobile filter drawer — hide on desktop */
@media (min-width: 769px) {
	.rcf-mobile-filters {
		display: none !important;
	}
}

.rcf-mobile-filters {
	position: relative;
	z-index: 20;
}

.rcf-mobile-filters__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
	border: 0;
	background: transparent;
	color: var(--e-global-color-47835e, #BC0203);
	cursor: pointer;
	line-height: 1;
}

.rcf-mobile-filters__trigger:focus-visible {
	outline: 2px solid var(--e-global-color-47835e, #BC0203);
	outline-offset: 2px;
}

.rcf-mobile-filters__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
}

.rcf-mobile-filters__icon-x {
	position: absolute;
	right: -0.15rem;
	top: -0.15rem;
	width: 0.75rem;
	height: 0.75rem;
	padding: 0.1rem;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--e-global-color-47835e, #BC0203) 35%, transparent);
}

.rcf-mobile-filters__drawer {
	--rcf-mobile-header-offset: 72px;
	position: fixed;
	top: var(--rcf-mobile-header-offset);
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99990;
	display: flex;
	flex-direction: column;
}

.rcf-mobile-filters__drawer[hidden] {
	display: none !important;
}

.rcf-mobile-filters__overlay {
	position: absolute;
	inset: 0;
	background: rgb(0 0 0 / 0.45);
}

.rcf-mobile-filters__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	max-height: 100%;
	background: #fff;
	overflow: hidden;
}

.rcf-mobile-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: 0.65rem 1rem;
	min-height: 3.25rem;
	border-bottom: 1px solid #e8e8e8;
	background: #fff;
}

.rcf-mobile-filters__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.rcf-mobile-filters__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 0;
	background: transparent;
	color: var(--e-global-color-47835e, #BC0203);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}

.rcf-mobile-filters__close-icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
}

.rcf-mobile-filters__close:focus-visible {
	outline: 2px solid var(--e-global-color-47835e, #BC0203);
	outline-offset: 2px;
}

.rcf-mobile-filters__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 1rem 1.5rem;
}

.rcf-mobile-filters__body .rcf-filters {
	margin: 0;
	gap: 0;
}

.rcf-mobile-filters__body .rcf-filter__options > li:not(.rcf-filter__more-wrap) {
	margin-left: 0;
	margin-right: 0;
}

.rcf-mobile-filters__body .rcf-filter__price-slider {
	padding: 0 0.15rem;
}

.rcf-mobile-filters__body .rcf-filters__actions {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 1rem;
	background: linear-gradient(to top, #fff 80%, rgb(255 255 255 / 0));
	border-top: 1px solid #e8e8e8;
}

body.rcf-mobile-filters-active {
	overflow: hidden;
}
