.bdsf-panel {
	--bdsf-border: #e8e8e8;
	--bdsf-muted: #737373;
	--bdsf-text: #202020;
	--bdsf-accent: #ff5a1f;
	--bdsf-soft: #f7f7f7;
	background: #fff;
	border: 1px solid var(--bdsf-border);
	border-radius: 8px;
	color: var(--bdsf-text);
	margin-bottom: 24px;
	padding: 18px;
}

.bdsf-lock {
	overflow: hidden;
}

.bdsf-desktop .bdsf-panel {
	position: sticky;
	top: 24px;
}

.bdsf-head {
	align-items: center;
	border-bottom: 1px solid var(--bdsf-border);
	display: flex;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 12px;
}

.bdsf-head h3 {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.bdsf-clear {
	color: var(--bdsf-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.bdsf-active {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.bdsf-chip {
	align-items: center;
	background: #111;
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 12px;
	gap: 6px;
	line-height: 1.2;
	max-width: 100%;
	padding: 7px 10px;
	text-decoration: none;
}

.bdsf-chip span {
	color: #cfcfcf;
}

.bdsf-chip strong {
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bdsf-price {
	border-bottom: 1px solid var(--bdsf-border);
	margin-bottom: 4px;
	padding-bottom: 16px;
}

.bdsf-group-title,
.bdsf-group-toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--bdsf-text);
	display: flex;
	font-size: 14px;
	font-weight: 800;
	justify-content: space-between;
	line-height: 1.25;
	margin: 0;
	padding: 15px 0 10px;
	text-align: left;
	width: 100%;
}

.bdsf-group-toggle {
	cursor: pointer;
}

.bdsf-group-toggle:after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	height: 7px;
	margin-left: 10px;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .18s ease;
	width: 7px;
}

.bdsf-group.is-collapsed .bdsf-group-toggle:after {
	transform: rotate(-45deg);
}

.bdsf-group.is-collapsed .bdsf-options {
	display: none;
}

.bdsf-price-row {
	display: grid;
	gap: 8px;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.bdsf-price-row input {
	background: var(--bdsf-soft);
	border: 1px solid var(--bdsf-border);
	border-radius: 6px;
	box-shadow: none;
	font-size: 13px;
	height: 40px;
	min-width: 0;
	padding: 0 10px;
	width: 100%;
}

.bdsf-price-row button {
	background: #111;
	border: 0;
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	height: 40px;
	padding: 0 12px;
}

.bdsf-group {
	border-bottom: 1px solid var(--bdsf-border);
	padding-bottom: 10px;
}

.bdsf-group:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.bdsf-options {
	display: grid;
	gap: 8px;
}

.bdsf-option {
	align-items: center;
	border-radius: 6px;
	color: var(--bdsf-text);
	display: grid;
	font-size: 13px;
	gap: 9px;
	grid-template-columns: 18px minmax(0, 1fr) auto;
	line-height: 1.25;
	padding: 6px;
	text-decoration: none;
}

.bdsf-option:hover,
.bdsf-option.is-active {
	background: var(--bdsf-soft);
	color: var(--bdsf-text);
}

.bdsf-box {
	border: 1px solid #bdbdbd;
	border-radius: 4px;
	height: 18px;
	position: relative;
	width: 18px;
}

.bdsf-option.is-active .bdsf-box {
	background: var(--bdsf-accent);
	border-color: var(--bdsf-accent);
}

.bdsf-option.is-active .bdsf-box:after {
	border-bottom: 2px solid #fff;
	border-right: 2px solid #fff;
	content: "";
	height: 9px;
	left: 6px;
	position: absolute;
	top: 2px;
	transform: rotate(45deg);
	width: 5px;
}

.bdsf-label {
	overflow-wrap: anywhere;
}

.bdsf-count {
	color: var(--bdsf-muted);
	font-size: 12px;
}

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

.bdsf-options.is-expanded .bdsf-option.is-extra {
	display: grid;
}

.bdsf-more {
	background: transparent;
	border: 0;
	color: var(--bdsf-accent);
	cursor: pointer;
	font-size: 13px;
	font-weight: 800;
	justify-self: start;
	padding: 5px 6px;
}

.bdsf-mobile-bar,
.bdsf-overlay,
.bdsf-drawer {
	display: none;
}

@media (max-width: 1024px) {
	.bdsf-desktop {
		display: none;
	}

	.bdsf-mobile-bar {
		display: block;
		margin: 0 0 18px;
	}

	.bdsf-mobile-open {
		align-items: center;
		background: #111;
		border: 0;
		border-radius: 6px;
		color: #fff;
		display: inline-flex;
		font-size: 14px;
		font-weight: 800;
		gap: 9px;
		min-height: 42px;
		padding: 0 15px;
	}

	.bdsf-mobile-count {
		background: var(--bdsf-accent, #ff5a1f);
		border-radius: 999px;
		display: inline-flex;
		font-size: 11px;
		justify-content: center;
		min-width: 20px;
		padding: 3px 6px;
	}

	.bdsf-mobile-open-icon,
	.bdsf-mobile-open-icon:before,
	.bdsf-mobile-open-icon:after {
		background: currentColor;
		border-radius: 999px;
		content: "";
		display: block;
		height: 2px;
		width: 16px;
	}

	.bdsf-mobile-open-icon {
		position: relative;
	}

	.bdsf-mobile-open-icon:before,
	.bdsf-mobile-open-icon:after {
		left: 0;
		position: absolute;
	}

	.bdsf-mobile-open-icon:before {
		top: -5px;
	}

	.bdsf-mobile-open-icon:after {
		top: 5px;
	}

	.bdsf-overlay.is-open {
		background: rgba(0, 0, 0, .48);
		display: block;
		inset: 0;
		position: fixed;
		z-index: 99990;
	}

	.bdsf-drawer {
		background: #fff;
		box-shadow: -12px 0 34px rgba(0, 0, 0, .18);
		display: flex;
		flex-direction: column;
		height: 100dvh;
		max-width: 420px;
		position: fixed;
		right: 0;
		top: 0;
		transform: translateX(105%);
		transition: transform .22s ease;
		width: min(92vw, 420px);
		z-index: 99991;
	}

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

	.bdsf-drawer-head {
		align-items: center;
		border-bottom: 1px solid #e8e8e8;
		display: flex;
		flex: 0 0 auto;
		justify-content: space-between;
		min-height: 58px;
		padding: 0 16px;
	}

	.bdsf-drawer-head strong {
		font-size: 18px;
	}

	.bdsf-drawer-close {
		background: transparent;
		border: 0;
		height: 38px;
		position: relative;
		width: 38px;
	}

	.bdsf-drawer-close:before,
	.bdsf-drawer-close:after {
		background: #111;
		content: "";
		height: 2px;
		left: 9px;
		position: absolute;
		top: 18px;
		width: 20px;
	}

	.bdsf-drawer-close:before {
		transform: rotate(45deg);
	}

	.bdsf-drawer-close:after {
		transform: rotate(-45deg);
	}

	.bdsf-drawer-body {
		flex: 1 1 auto;
		overflow-y: auto;
		padding: 16px;
	}

	.bdsf-panel {
		border: 0;
		border-radius: 0;
		margin: 0;
		padding: 0;
	}
}

@media (min-width: 1025px) {
	.bdsf-mobile-bar,
	.bdsf-overlay,
	.bdsf-drawer {
		display: none !important;
	}
}
