.rfj-filter-drawer-trigger {
	display: none;
}

.rfj-filter-drawer-trigger__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid #dedee3;
	border-radius: 20px;
	background: #fff;
	color: #1d1d1f;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}

.rfj-filter-drawer-trigger__btn svg {
	flex-shrink: 0;
	color: #86868b;
}

.rfj-filter-drawer-trigger.has-selected .rfj-filter-drawer-trigger__btn {
	border-color: #0071e3;
	background: #f0f7ff;
	color: #0071e3;
}

.rfj-filter-drawer-trigger.has-selected .rfj-filter-drawer-trigger__btn svg {
	color: #0071e3;
}

.rfj-filter-drawer-trigger__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #0071e3;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	font-weight: 700;
	line-height: 18px;
}

.rfj-filter-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	visibility: hidden;
	transition: visibility .3s;
}

.rfj-filter-drawer.is-open {
	visibility: visible;
}

.rfj-filter-drawer__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
	transition: opacity .3s;
}

.rfj-filter-drawer.is-open .rfj-filter-drawer__overlay {
	opacity: 1;
}

.rfj-filter-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	background: #fff;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.rfj-filter-drawer.is-open .rfj-filter-drawer__panel {
	transform: translateX(0);
}

.rfj-filter-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	height: 52px;
	padding: 0 16px;
	border-bottom: 1px solid #f0f0f5;
}

.rfj-filter-drawer__title {
	color: #1d1d1f;
	font-size: 17px;
	font-weight: 800;
}

.rfj-filter-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #86868b;
	cursor: pointer;
	transition: background .2s;
}

.rfj-filter-drawer__close:hover {
	background: #f5f5f7;
}

.rfj-filter-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0 16px;
}

.rfj-filter-drawer__section {
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f5;
}

.rfj-filter-drawer__section:last-child {
	border-bottom: none;
}

.rfj-filter-drawer__section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.rfj-filter-drawer__section-title {
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 700;
}

.rfj-filter-drawer__section-reset {
	padding: 0;
	border: none;
	background: transparent;
	color: #0071e3;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.rfj-filter-drawer__section-reset:disabled {
	color: #c8c8cc;
	cursor: default;
}

.rfj-filter-drawer__search {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px;
	margin-bottom: 10px;
	border: 1px solid #e5e5ea;
	border-radius: 8px;
	background: #fafafa;
}

.rfj-filter-drawer__search svg {
	flex-shrink: 0;
	color: #86868b;
}

.rfj-filter-drawer__search-input {
	flex: 1;
	min-width: 0;
	height: 100%;
	border: none;
	background: transparent;
	color: #1d1d1f;
	font-size: 14px;
	outline: none;
}

.rfj-filter-drawer__search-input::placeholder {
	color: #c8c8cc;
}

.rfj-filter-drawer__level-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rfj-filter-drawer__level-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid #e5e5ea;
	border-radius: 17px;
	background: #fff;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.rfj-filter-drawer__level-btn:hover {
	border-color: #c6dfff;
	background: #f0f7ff;
}

.rfj-filter-drawer__level-btn svg {
	flex-shrink: 0;
	color: #86868b;
}

.rfj-filter-drawer__level-btn.is-active {
	border-color: #0071e3;
	background: #0071e3;
	color: #fff;
}

.rfj-filter-drawer__level-btn.is-active svg {
	color: #fff;
}

.rfj-filter-drawer__level-nav--sub {
	flex-direction: column;
	gap: 0;
}

.rfj-filter-drawer__back-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 34px;
	padding: 0;
	border: none;
	border-bottom: 1px solid #f0f0f5;
	background: transparent;
	color: #0071e3;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 8px;
}

.rfj-filter-drawer__level-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rfj-filter-drawer__checkbox-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rfj-filter-drawer__checkbox-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 12px;
	border: 1px solid #e5e5ea;
	border-radius: 17px;
	background: #fff;
	color: #1d1d1f;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
	user-select: none;
}

.rfj-filter-drawer__checkbox-item:hover {
	border-color: #c6dfff;
	background: #f0f7ff;
}

.rfj-filter-drawer__checkbox-item input {
	display: none;
}

.rfj-filter-drawer__checkbox-item.is-checked {
	border-color: #0071e3;
	background: #0071e3;
	color: #fff;
}

.rfj-filter-drawer__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	padding: 12px 16px;
	border-top: 1px solid #f0f0f5;
	background: #fff;
}

.rfj-filter-drawer__reset-all {
	flex: 1;
	height: 44px;
	border: 1px solid #dedee3;
	border-radius: 22px;
	background: #fff;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}

.rfj-filter-drawer__reset-all:hover {
	background: #f5f5f7;
}

.rfj-filter-drawer__confirm {
	flex: 2;
	height: 44px;
	border: none;
	border-radius: 22px;
	background: #0071e3;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s;
}

.rfj-filter-drawer__confirm:hover {
	background: #0062cc;
}

.rfj-mobile-only {
	display: none !important;
}

.rfj-mobile-hidden {
	display: none !important;
}

@media (max-width: 640px) {
	.rfj-pc-only {
		display: none !important;
	}

	.rfj-mobile-only {
		display: block !important;
	}

	.rfj-filter-drawer-trigger {
		display: block;
	}

	.rfj-filter-drawer__overlay {
		top: var(--rfzj-mobile-channel-nav-height, 50px);
	}

	.rfj-filter-drawer__panel {
		top: var(--rfzj-mobile-channel-nav-height, 50px);
		max-width: 100%;
	}
}
