/* ==== Bottom sheet panel ==== */
.smbn-sheet-scrim {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	z-index: 9998;
}

.smbn-sheet-scrim.is-open {
	opacity: 1;
	pointer-events: auto;
}

.smbn-sheet {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	height: 80%;
	max-height: 80vh;
	background: #ffffff;
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
	transform: translateY(100%);
	transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.smbn-sheet.is-open {
	transform: translateY(0);
}

@media (min-width: 850px) {
	.smbn-sheet,
	.smbn-sheet-scrim {
		display: none;
	}
}

.smbn-sheet-grip {
	width: 36px;
	height: 4px;
	border-radius: 2px;
	background: #d5d5d5;
	margin: 10px auto 6px;
	flex-shrink: 0;
}

.smbn-sheet-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 4px 12px 12px;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.smbn-sheet-title {
	font-weight: 500;
	font-size: 15px;
	color: #222;
	flex: 1;
}

.smbn-sheet-back {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f5f5f5;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.smbn-sheet-back i {
	font-size: 16px;
	color: #6b6b6b;
}

.smbn-sheet-back[hidden] {
	display: none;
}

.smbn-sheet-close {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f5f5f5;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
}

.smbn-sheet-close i {
	font-size: 16px;
	color: #6b6b6b;
}

/* The stage clips the two sliding levels. */
.smbn-sheet-stage {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.smbn-sheet-level {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 calc(16px + env(safe-area-inset-bottom, 0px));
	transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
	box-sizing: border-box;
}

.smbn-sheet-level-1 {
	transform: translateX(0);
}

.smbn-sheet-level-2 {
	transform: translateX(100%);
	background: #ffffff;
}

.smbn-sheet.is-drilled .smbn-sheet-level-1 {
	transform: translateX(-100%);
}

.smbn-sheet.is-drilled .smbn-sheet-level-2 {
	transform: translateX(0);
}

.smbn-sheet-row {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 16px;
	background: none;
	border: none;
	text-align: left;
	text-decoration: none;
	color: var(--smbn-text-color, #6b6b6b);
	font-size: 13px;
	font-family: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

.smbn-sheet-row.is-active {
	color: var(--smbn-accent, #1d4ed8);
	font-weight: 500;
}

.smbn-sheet-thumb {
	width: 38px;
	height: 38px;
	border-radius: 9px;
	background: #f5f5f5;
	border: 1px solid #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.smbn-sheet-thumb i {
	font-size: 19px;
}

.smbn-sheet-label {
	flex: 1;
}

.smbn-sheet-chev {
	font-size: 16px;
	color: #b0b0b0;
	flex-shrink: 0;
}

.smbn-sheet-subgroup {
	padding-left: 16px;
}

.smbn-sheet-subgroup[hidden] {
	display: none;
}

.smbn-sheet-subitem {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--smbn-text-color, #6b6b6b);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.smbn-sheet-subitem.is-all {
	color: var(--smbn-accent, #1d4ed8);
	font-weight: 500;
}

.smbn-sheet-subitem.is-active {
	color: var(--smbn-accent, #1d4ed8);
	font-weight: 500;
}