.hbcs-switcher {
	--hbcs-bottom: 22px;
	--hbcs-ink: #173f35;
	--hbcs-accent: #2f6d5d;
	--hbcs-paper: #fff;
	--hbcs-soft: #f2f6f4;
	--hbcs-border: rgba(23, 63, 53, 0.18);
	position: fixed;
	bottom: calc(var(--hbcs-bottom) + env(safe-area-inset-bottom, 0px));
	z-index: 999970;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.35;
}

.hbcs-switcher--left { left: 22px; }
.hbcs-switcher--right { right: 22px; }

.hbcs-switcher__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 46px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: var(--hbcs-ink);
	color: #fff;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.hbcs-switcher__toggle:hover,
.hbcs-switcher__toggle:focus-visible {
	background: var(--hbcs-accent);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	transform: translateY(-1px);
	outline: none;
}

.hbcs-switcher__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform .18s ease;
}

.hbcs-switcher.is-open .hbcs-switcher__toggle svg { transform: rotate(180deg); }
.hbcs-switcher__symbol { font-size: 17px; }

.hbcs-switcher__panel {
	position: absolute;
	bottom: 58px;
	width: min(360px, calc(100vw - 28px));
	max-height: min(620px, calc(100vh - 105px));
	overflow: hidden;
	border: 1px solid var(--hbcs-border);
	border-radius: 16px;
	background: var(--hbcs-paper);
	color: #15231f;
	box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
}

.hbcs-switcher--left .hbcs-switcher__panel { left: 0; }
.hbcs-switcher--right .hbcs-switcher__panel { right: 0; }
.hbcs-switcher__panel[hidden] { display: none !important; }

.hbcs-switcher__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 10px;
	font-size: 17px;
}

.hbcs-switcher__close {
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--hbcs-soft);
	color: var(--hbcs-ink);
	cursor: pointer;
	font: 700 24px/1 Arial, sans-serif;
}

.hbcs-switcher__search-wrap { display: block; padding: 0 14px 12px; }
.hbcs-switcher__search {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--hbcs-border);
	border-radius: 9px;
	background: #fff;
	color: #15231f;
	font: inherit;
	box-shadow: none;
}
.hbcs-switcher__search:focus { border-color: var(--hbcs-accent); outline: 2px solid rgba(47,109,93,.16); }

.hbcs-switcher__list {
	max-height: min(430px, calc(100vh - 260px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 2px 8px 8px;
	scrollbar-width: thin;
}

.hbcs-switcher__option {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 8px;
	min-height: 54px;
	padding: 6px 9px;
	border-radius: 10px;
	color: inherit;
	text-decoration: none !important;
}

.hbcs-switcher__option:hover,
.hbcs-switcher__option:focus-visible { background: var(--hbcs-soft); outline: none; }
.hbcs-switcher__option.is-current { background: #e8f1ed; }
.hbcs-switcher__option[hidden] { display: none !important; }
.hbcs-switcher__option-symbol { color: var(--hbcs-ink); font-size: 17px; font-weight: 700; text-align: center; }
.hbcs-switcher__option-copy { min-width: 0; display: flex; flex-direction: column; }
.hbcs-switcher__option-copy strong { color: #15231f; font-size: 14px; }
.hbcs-switcher__option-copy small { overflow: hidden; color: #607069; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hbcs-switcher__tick { color: var(--hbcs-accent); font-size: 17px; font-weight: 800; text-align: center; }
.hbcs-switcher__footnote { margin: 0; padding: 11px 14px 13px; border-top: 1px solid var(--hbcs-border); background: #fafcfb; color: #61716a; font-size: 11px; }

@media (max-width: 520px) {
	.hbcs-switcher--left { left: 12px; }
	.hbcs-switcher--right { right: 12px; }
	.hbcs-switcher__toggle { min-height: 43px; padding: 7px 12px; }
	.hbcs-switcher__panel { bottom: 54px; }
}

@media (prefers-reduced-motion: reduce) {
	.hbcs-switcher__toggle,
	.hbcs-switcher__toggle svg { transition: none; }
}
