/* Victuron Product Filters
   Brand colour lives in --vcf-blue. Change it once, everything follows. */

.vcf-layout {
	--vcf-blue: #2b7cc4;
	--vcf-blue-dark: #1a5b95;
	--vcf-blue-soft: #edf4fa;
	--vcf-ink: #1a1a1a;
	--vcf-muted: #70757a;
	--vcf-line: #e6e8ea;
	--vcf-line-soft: #f0f1f2;
	--vcf-radius: 4px;

	display: flex;
	align-items: flex-start;
	gap: 34px;
	margin-top: 8px;
}

.vcf-layout *,
.vcf-layout *::before,
.vcf-layout *::after {
	box-sizing: border-box;
}

.vcf-main {
	flex: 1 1 auto;
	min-width: 0;
}

/* -------------------------------------------------------------------------
   Sidebar shell
   ---------------------------------------------------------------------- */

.vcf {
	flex: 0 0 272px;
	width: 272px;
	position: sticky;
	top: 24px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--vcf-ink);
	-webkit-font-smoothing: antialiased;
}

.vcf-panel {
	background: #fff;
	border: 1px solid var(--vcf-line);
	border-radius: var(--vcf-radius);
	overflow: hidden;
}

.vcf-panel__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	background: #fafbfc;
	border-bottom: 1px solid var(--vcf-line);
}

.vcf-panel__title {
	flex: 1;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--vcf-ink);
}

.vcf-close-drawer,
.vcf-panel__foot,
.vcf-open-drawer {
	display: none;
}

.vcf-scroll {
	padding: 0 18px;
}

/* -------------------------------------------------------------------------
   Clear all
   ---------------------------------------------------------------------- */

.vcf-clear {
	padding: 0;
	background: none;
	border: none;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vcf-blue);
	cursor: pointer;
	transition: color .15s ease;
}

.vcf-clear:hover {
	color: var(--vcf-blue-dark);
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
   Applied chips
   ---------------------------------------------------------------------- */

.vcf-active {
	padding: 15px 0 5px;
	border-bottom: 1px solid var(--vcf-line-soft);
}

.vcf-active[hidden] {
	display: none;
}

.vcf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.vcf-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	max-width: 100%;
	padding: 5px 8px 5px 10px;
	background: var(--vcf-blue-soft);
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--vcf-blue-dark);
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}

.vcf-chip > span {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(26, 91, 149, .14);
	font-size: 13px;
	line-height: 1;
}

.vcf-chip:hover {
	border-color: var(--vcf-blue);
	background: #e2eefa;
}

.vcf-chip:hover > span {
	background: var(--vcf-blue);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Groups
   ---------------------------------------------------------------------- */

.vcf-group + .vcf-group,
.vcf-active + .vcf-group {
	border-top: 1px solid var(--vcf-line-soft);
}

.vcf-group__toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 16px 0 14px;
	background: none;
	border: none;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .03em;
	color: var(--vcf-ink);
	text-align: left;
	cursor: pointer;
}

.vcf-group__label {
	flex: 1;
}

.vcf-caret {
	flex: none;
	width: 8px;
	height: 8px;
	border-right: 1.8px solid #9aa0a6;
	border-bottom: 1.8px solid #9aa0a6;
	transform: translateY(-2px) rotate(45deg);
	transition: transform .2s ease, border-color .15s ease;
}

.vcf-group__toggle:hover .vcf-caret {
	border-color: var(--vcf-ink);
}

.vcf-group.is-open .vcf-caret {
	transform: translateY(2px) rotate(-135deg);
}

.vcf-group__body {
	display: none;
	padding-bottom: 16px;
}

.vcf-group.is-open .vcf-group__body {
	display: block;
}

.vcf-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 19px;
	height: 19px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--vcf-blue);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1;
}

/* -------------------------------------------------------------------------
   Search inside a group
   ---------------------------------------------------------------------- */

.vcf-search {
	position: relative;
	margin-bottom: 10px;
}

.vcf-search__icon {
	position: absolute;
	top: 50%;
	left: 10px;
	width: 13px;
	height: 13px;
	margin-top: -7px;
	border: 1.6px solid #9aa0a6;
	border-radius: 50%;
	pointer-events: none;
}

.vcf-search__icon::after {
	content: "";
	position: absolute;
	top: 10px;
	left: 9px;
	width: 5px;
	height: 1.6px;
	background: #9aa0a6;
	transform: rotate(45deg);
}

.vcf-search input {
	width: 100%;
	padding: 8px 10px 8px 30px;
	border: 1px solid var(--vcf-line);
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	color: var(--vcf-ink);
}

.vcf-search input::placeholder {
	color: #9aa0a6;
}

.vcf-search input:focus {
	outline: none;
	border-color: var(--vcf-blue);
	box-shadow: 0 0 0 3px rgba(43, 124, 196, .12);
}

/* -------------------------------------------------------------------------
   Options
   ---------------------------------------------------------------------- */

.vcf-options {
	margin: 0 -8px;
	padding: 0;
	list-style: none;
}

.vcf-option label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 8px;
	border-radius: 3px;
	cursor: pointer;
	transition: background .12s ease;
}

.vcf-option label:hover {
	background: #f5f7f8;
}

.vcf-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.vcf-option__box {
	flex: none;
	position: relative;
	width: 16px;
	height: 16px;
	border: 1.5px solid #bdc1c6;
	border-radius: 2px;
	background: #fff;
	transition: background .15s ease, border-color .15s ease;
}

.vcf-option__box::after {
	content: "";
	position: absolute;
	top: 1px;
	left: 4.5px;
	width: 4px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}

.vcf-option label:hover .vcf-option__box {
	border-color: var(--vcf-blue);
}

.vcf-option input:checked ~ .vcf-option__box {
	background: var(--vcf-blue);
	border-color: var(--vcf-blue);
}

.vcf-option input:checked ~ .vcf-option__box::after {
	transform: rotate(45deg) scale(1);
}

.vcf-option input:focus-visible ~ .vcf-option__box {
	box-shadow: 0 0 0 3px rgba(43, 124, 196, .25);
}

.vcf-option__name {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
	color: #3c4043;
	overflow-wrap: break-word;
}

.vcf-option input:checked ~ .vcf-option__name {
	color: var(--vcf-ink);
	font-weight: 600;
}

.vcf-option__count {
	flex: none;
	min-width: 22px;
	padding: 1px 6px;
	border-radius: 9px;
	background: #f1f3f4;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
	color: var(--vcf-muted);
}

.vcf-option input:checked ~ .vcf-option__count {
	background: var(--vcf-blue-soft);
	color: var(--vcf-blue-dark);
}

/* Hidden until "Show all", and hidden by search */

.vcf-option.is-extra {
	display: none;
}

.vcf-group.is-expanded .vcf-option.is-extra,
.vcf-group.is-searching .vcf-option.is-extra {
	display: block;
}

.vcf-option.is-filtered {
	display: none !important;
}

/* Show all / Show less */

.vcf-more {
	margin: 8px 0 0;
	padding: 4px 0;
	background: none;
	border: none;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vcf-blue);
	cursor: pointer;
}

.vcf-more:hover {
	color: var(--vcf-blue-dark);
	text-decoration: underline;
}

.vcf-group.is-searching .vcf-more {
	display: none;
}

/* -------------------------------------------------------------------------
   Price
   ---------------------------------------------------------------------- */

.vcf-price {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	margin-bottom: 12px;
}

.vcf-price label {
	flex: 1;
	min-width: 0;
}

.vcf-price span {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--vcf-muted);
}

.vcf-price input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--vcf-line);
	border-radius: 3px;
	font-size: 13.5px;
	color: var(--vcf-ink);
}

.vcf-price input:focus {
	outline: none;
	border-color: var(--vcf-blue);
	box-shadow: 0 0 0 3px rgba(43, 124, 196, .12);
}

.vcf-price__apply {
	width: 100%;
	padding: 9px;
	background: #fff;
	border: 1px solid var(--vcf-blue);
	border-radius: 3px;
	color: var(--vcf-blue);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.vcf-price__apply:hover {
	background: var(--vcf-blue);
	color: #fff;
}

/* -------------------------------------------------------------------------
   Loading state
   ---------------------------------------------------------------------- */

#vcf-products {
	position: relative;
	min-height: 160px;
	transition: opacity .18s ease;
}

#vcf-products.vcf-loading {
	opacity: .45;
	pointer-events: none;
}

#vcf-products.vcf-loading::after {
	content: "";
	position: absolute;
	top: 90px;
	left: 50%;
	width: 34px;
	height: 34px;
	margin-left: -17px;
	border: 3px solid rgba(43, 124, 196, .2);
	border-top-color: var(--vcf-blue);
	border-radius: 50%;
	animation: vcf-spin .7s linear infinite;
}

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

/* -------------------------------------------------------------------------
   Tablet
   ---------------------------------------------------------------------- */

@media (max-width: 1150px) {
	.vcf-layout {
		gap: 24px;
	}

	.vcf {
		flex-basis: 238px;
		width: 238px;
	}

	.vcf-scroll {
		padding: 0 14px;
	}

	.vcf-panel__head {
		padding: 13px 14px;
	}
}

/* -------------------------------------------------------------------------
   Mobile drawer
   ---------------------------------------------------------------------- */

@media (max-width: 860px) {

	.vcf-layout {
		display: block;
	}

	.vcf {
		position: static;
		width: auto;
		margin-bottom: 18px;
	}

	.vcf-open-drawer {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		padding: 13px 16px;
		background: #fff;
		border: 1px solid #cfd3d6;
		border-radius: var(--vcf-radius);
		font-size: 13px;
		font-weight: 700;
		letter-spacing: .07em;
		text-transform: uppercase;
		color: var(--vcf-ink);
		cursor: pointer;
	}

	.vcf-open-drawer:active {
		background: #f5f7f8;
	}

	.vcf-open-drawer__icon {
		width: 15px;
		height: 11px;
		background:
			linear-gradient(currentColor, currentColor) top/100% 1.8px no-repeat,
			linear-gradient(currentColor, currentColor) center/68% 1.8px no-repeat,
			linear-gradient(currentColor, currentColor) bottom/36% 1.8px no-repeat;
	}

	.vcf-panel {
		position: fixed;
		z-index: 100000;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(92vw, 370px);
		display: flex;
		flex-direction: column;
		border: none;
		border-radius: 0;
		box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
		transform: translateX(100%);
		transition: transform .28s cubic-bezier(.4, 0, .2, 1);
	}

	.vcf.is-drawer-open .vcf-panel {
		transform: translateX(0);
	}

	.vcf-panel__head {
		flex: none;
		padding: 16px 18px;
		background: #fff;
	}

	.vcf-panel__title {
		font-size: 15px;
		letter-spacing: .02em;
		text-transform: none;
	}

	.vcf-close-drawer {
		display: block;
		width: 32px;
		height: 32px;
		margin-right: -6px;
		background: none;
		border: none;
		font-size: 26px;
		line-height: 1;
		color: var(--vcf-muted);
		cursor: pointer;
	}

	.vcf-scroll {
		flex: 1;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0 18px;
	}

	.vcf-panel__foot {
		display: block;
		flex: none;
		padding: 14px 18px;
		background: #fff;
		border-top: 1px solid var(--vcf-line);
		box-shadow: 0 -2px 10px rgba(0, 0, 0, .05);
	}

	.vcf-apply {
		width: 100%;
		padding: 14px;
		background: var(--vcf-blue);
		border: none;
		border-radius: 3px;
		color: #fff;
		font-size: 14px;
		font-weight: 700;
		letter-spacing: .05em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.vcf-apply:active {
		background: var(--vcf-blue-dark);
	}

	.vcf-overlay {
		position: fixed;
		z-index: 99999;
		inset: 0;
		background: rgba(0, 0, 0, .45);
	}

	.vcf-overlay[hidden] {
		display: none;
	}

	body.vcf-drawer-lock {
		overflow: hidden;
	}

	.vcf-option label {
		padding: 10px 8px;
	}
}
