.mbn,
.mbn *,
.mbn-canvas-root,
.mbn-canvas-root * {
	box-sizing: border-box;
}

.mbn {
	--mbn-primary: #6f35d4;
	--mbn-primary-dark: #4d21b8;
	--mbn-bar-bg: #fff;
	--mbn-safe-bg: transparent;
	--mbn-active-text: #6f35d4;
	--mbn-inactive-text: #555;
	--mbn-active-icon: #6f35d4;
	--mbn-inactive-icon: #333;
	--mbn-active-bg: rgba(111, 53, 212, .14);
	--mbn-featured-bg: #6f35d4;
	--mbn-featured-icon: #fff;
	--mbn-underline: #6f35d4;
	--mbn-shadow: rgba(20, 20, 40, .18);
	--mbn-border: rgba(0, 0, 0, .06);
	--mbn-bottom-offset: 18px;
	--mbn-horizontal-margin: 16px;
	--mbn-max-width: 560px;
	--mbn-bar-height: 78px;
	--mbn-bar-radius: 28px;
	--mbn-icon-size: 22px;
	--mbn-featured-size: 58px;
	--mbn-label-size: 12px;
	--mbn-z-index: 9999;
	--mbn-count: 5;
	--mbn-featured-x: 50%;
	--mbn-safe-bottom: env(safe-area-inset-bottom, 0px);
	color: var(--mbn-inactive-text);
	font-family: inherit;
	font-size: 16px;
	letter-spacing: 0;
	line-height: 1.1;
	max-width: calc(100vw - (var(--mbn-horizontal-margin) * 2));
	-webkit-tap-highlight-color: transparent;
	width: min(calc(100vw - (var(--mbn-horizontal-margin) * 2)), var(--mbn-max-width));
}

.mbn--fixed-float,
.mbn--fixed-bottom {
	left: 50%;
	position: fixed;
	transform: translateX(-50%);
	z-index: var(--mbn-z-index);
}

.mbn--fixed-float {
	bottom: calc(var(--mbn-bottom-offset) + var(--mbn-safe-bottom));
}

.mbn--fixed-bottom {
	bottom: var(--mbn-safe-bottom);
}

.mbn--normal {
	margin-left: auto;
	margin-right: auto;
	position: relative;
}

.mbn--is-screen-hidden,
.mbn--is-desktop-hidden {
	display: none !important;
}

@media (min-width: 768px) {
	.mbn--screen-mobile {
		display: none;
	}
}

@media (max-width: 767px), (min-width: 1025px) {
	.mbn--screen-tablet {
		display: none;
	}
}

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

.mbn__list {
	align-items: center;
	background: var(--mbn-bar-bg);
	border: 1px solid var(--mbn-border);
	border-radius: var(--mbn-bar-radius);
	box-shadow: 0 16px 36px var(--mbn-shadow);
	display: grid;
	grid-template-columns: repeat(var(--mbn-count), minmax(0, 1fr));
	height: var(--mbn-bar-height);
	list-style: none;
	margin: 0;
	overflow: visible;
	padding: 0 10px;
	position: relative;
}

.mbn__item {
	align-items: center;
	display: flex;
	height: 100%;
	justify-content: center;
	min-width: 0;
	position: relative;
	z-index: 1;
}

.mbn__link {
	align-items: center;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border: 0;
	border-radius: 999px;
	color: var(--mbn-inactive-text);
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	font: inherit;
	gap: 5px;
	height: 100%;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	outline: 0;
	padding: 7px 4px;
	position: relative;
	text-align: center;
	text-decoration: none;
	touch-action: manipulation;
	transition: background-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
	width: 100%;
}

.mbn__link:hover,
.mbn__link:active,
.mbn__link:focus {
	color: var(--mbn-active-text);
	text-decoration: none;
}

.mbn__link:focus-visible {
	box-shadow: 0 0 0 3px var(--mbn-active-bg), 0 0 0 5px rgba(255, 255, 255, .94);
}

.mbn__icon {
	align-items: center;
	color: var(--mbn-inactive-icon);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: var(--mbn-icon-size);
	height: 1em;
	justify-content: center;
	line-height: 1;
	position: relative;
	transition: color .18s ease, transform .18s ease;
	width: 1em;
}

.mbn__label {
	color: currentColor;
	display: block;
	font-size: var(--mbn-label-size);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity .16s ease, transform .16s ease;
	white-space: nowrap;
}

.mbn__badge {
	align-items: center;
	background: var(--mbn-primary);
	border: 2px solid var(--mbn-bar-bg);
	border-radius: 999px;
	color: #fff;
	display: inline-flex;
	font-size: 10px;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-height: 18px;
	min-width: 18px;
	padding: 2px 5px;
	position: absolute;
	right: 14%;
	top: 12px;
}

.mbn__item.is-active > .mbn__link {
	color: var(--mbn-active-text);
}

.mbn__item.is-active .mbn__icon {
	color: var(--mbn-active-icon);
}

.mbn--labels-never .mbn__label,
.mbn--labels-active-only .mbn__item:not(.is-active) .mbn__label,
.mbn__item.is-featured .mbn__label {
	opacity: 0;
	position: absolute;
	transform: translateY(4px);
	width: 1px;
}

.mbn--preset-floating-notch .mbn__list::before {
	background: var(--mbn-safe-bg);
	border-radius: 0 0 999px 999px;
	box-shadow: inset 0 -12px 18px rgba(20, 20, 40, .06);
	content: "";
	height: calc(var(--mbn-featured-size) * .62);
	left: var(--mbn-featured-x);
	pointer-events: none;
	position: absolute;
	top: -20px;
	transform: translateX(-50%);
	width: calc(var(--mbn-featured-size) + 30px);
	z-index: 0;
}

.mbn--preset-floating-notch .mbn__item.is-featured,
.mbn--preset-diamond-center .mbn__item.is-featured,
.mbn--preset-circle-center .mbn__item.is-featured {
	z-index: 3;
}

.mbn--preset-floating-notch .mbn__item.is-featured > .mbn__link,
.mbn--preset-circle-center .mbn__item.is-featured > .mbn__link {
	background: linear-gradient(180deg, var(--mbn-featured-bg), var(--mbn-primary-dark));
	border-radius: 999px;
	box-shadow: 0 12px 22px var(--mbn-shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
	color: var(--mbn-featured-icon);
	height: var(--mbn-featured-size);
	padding: 0;
	transform: translateY(calc(var(--mbn-featured-size) * -.36));
	width: var(--mbn-featured-size);
}

.mbn--preset-floating-notch .mbn__item.is-featured .mbn__icon,
.mbn--preset-circle-center .mbn__item.is-featured .mbn__icon,
.mbn--preset-diamond-center .mbn__item.is-featured .mbn__icon {
	color: var(--mbn-featured-icon);
	font-size: calc(var(--mbn-icon-size) + 4px);
}

.mbn--preset-floating-notch .mbn__item.is-featured .mbn__badge,
.mbn--preset-circle-center .mbn__item.is-featured .mbn__badge,
.mbn--preset-diamond-center .mbn__item.is-featured .mbn__badge {
	display: none;
}

.mbn--preset-floating-notch .mbn__item.is-active:not(.is-featured)::after,
.mbn--preset-diamond-center .mbn__item.is-active:not(.is-featured)::after {
	background: var(--mbn-underline);
	border-radius: 999px;
	bottom: 13px;
	content: "";
	height: 3px;
	position: absolute;
	width: 18px;
}

.mbn--preset-diamond-center .mbn__list {
	padding-left: 12px;
	padding-right: 12px;
}

.mbn--preset-diamond-center .mbn__item.is-featured > .mbn__link {
	background: linear-gradient(145deg, var(--mbn-primary), var(--mbn-primary-dark));
	border-radius: 18px;
	box-shadow: 0 14px 26px var(--mbn-shadow), inset 0 1px 0 rgba(255, 255, 255, .25);
	color: var(--mbn-featured-icon);
	height: var(--mbn-featured-size);
	padding: 0;
	transform: translateY(calc(var(--mbn-featured-size) * -.42)) rotate(45deg);
	width: var(--mbn-featured-size);
}

.mbn--preset-diamond-center .mbn__item.is-featured .mbn__icon {
	transform: rotate(-45deg);
}

.mbn--preset-circle-center .mbn__item.is-featured > .mbn__link {
	transform: translateY(calc(var(--mbn-featured-size) * -.12));
}

.mbn--preset-circle-center .mbn__item.is-active:not(.is-featured)::after {
	background: currentColor;
	border-radius: 999px;
	bottom: 11px;
	content: "";
	height: 5px;
	position: absolute;
	width: 5px;
}

.mbn--preset-active-pill .mbn__list {
	padding: 0 12px;
}

.mbn--preset-active-pill .mbn__item.is-active > .mbn__link {
	background: var(--mbn-active-bg);
	box-shadow: inset 0 0 0 1px rgba(111, 53, 212, .08);
	flex-direction: row;
	gap: 7px;
	height: 44px;
	padding: 0 12px;
	width: auto;
}

.mbn--preset-active-pill .mbn__item.is-featured > .mbn__link {
	color: var(--mbn-inactive-text);
}

.mbn--preset-active-pill .mbn__item.is-active.is-featured > .mbn__link {
	color: var(--mbn-active-text);
}

.mbn--preset-active-pill .mbn__item.is-featured .mbn__label {
	opacity: 1;
	position: static;
	transform: none;
	width: auto;
}

.mbn--preset-active-pill.mbn--labels-never .mbn__item.is-featured .mbn__label,
.mbn--preset-active-pill.mbn--labels-active-only .mbn__item:not(.is-active).is-featured .mbn__label {
	opacity: 0;
	position: absolute;
	transform: translateY(4px);
	width: 1px;
}

.mbn--preset-underline .mbn__item.is-active::after {
	background: var(--mbn-underline);
	border-radius: 999px;
	bottom: 8px;
	content: "";
	height: 3px;
	position: absolute;
	width: min(58px, 70%);
}

.mbn--preset-underline .mbn__item.is-featured .mbn__label {
	opacity: 1;
	position: static;
	transform: none;
	width: auto;
}

.mbn--preset-underline.mbn--labels-never .mbn__item.is-featured .mbn__label,
.mbn--preset-underline.mbn--labels-active-only .mbn__item:not(.is-active).is-featured .mbn__label {
	opacity: 0;
	position: absolute;
	transform: translateY(4px);
	width: 1px;
}

.mbn-canvas-root {
	--mbn-z-index: 9999;
	--mbn-bar-bg: #fff;
	--mbn-border: rgba(0, 0, 0, .06);
	--mbn-shadow: rgba(20, 20, 40, .18);
	--mbn-primary: #6f35d4;
	--mbn-active-bg: rgba(111, 53, 212, .14);
	--mbn-safe-bottom: env(safe-area-inset-bottom, 0px);
}

.mbn-canvas {
	inset: 0;
	pointer-events: none;
	position: fixed;
	visibility: hidden;
	z-index: calc(var(--mbn-z-index) + 1);
}

.mbn-canvas.is-open {
	pointer-events: auto;
	visibility: visible;
}

.mbn-canvas__overlay {
	-webkit-appearance: none;
	appearance: none;
	background: rgba(14, 12, 24, .48);
	border: 0;
	cursor: pointer;
	height: 100%;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	transition: opacity .22s ease;
	width: 100%;
}

.mbn-canvas.is-open .mbn-canvas__overlay {
	opacity: 1;
}

.mbn-canvas__panel {
	background: var(--mbn-bar-bg);
	border: 1px solid var(--mbn-border);
	box-shadow: 0 20px 46px var(--mbn-shadow);
	color: #1f1f28;
	display: flex;
	flex-direction: column;
	max-height: 100dvh;
	max-width: 100vw;
	overflow: hidden;
	position: absolute;
	transition: transform .24s ease;
	will-change: transform;
}

.mbn-canvas[data-mbn-canvas-direction="right"] .mbn-canvas__panel {
	border-radius: 22px 0 0 22px;
	height: 100dvh;
	right: 0;
	top: 0;
	transform: translateX(102%);
	width: min(var(--mbn-canvas-width, 360px), 100vw);
}

.mbn-canvas[data-mbn-canvas-direction="left"] .mbn-canvas__panel {
	border-radius: 0 22px 22px 0;
	height: 100dvh;
	left: 0;
	top: 0;
	transform: translateX(-102%);
	width: min(var(--mbn-canvas-width, 360px), 100vw);
}

.mbn-canvas[data-mbn-canvas-direction="bottom"] .mbn-canvas__panel {
	border-radius: 24px 24px 0 0;
	bottom: 0;
	height: min(var(--mbn-canvas-height, 420px), 100dvh);
	left: 0;
	padding-bottom: var(--mbn-safe-bottom);
	transform: translateY(102%);
	width: 100vw;
}

.mbn-canvas[data-mbn-canvas-direction="top"] .mbn-canvas__panel {
	border-radius: 0 0 24px 24px;
	height: min(var(--mbn-canvas-height, 420px), 100dvh);
	left: 0;
	top: 0;
	transform: translateY(-102%);
	width: 100vw;
}

.mbn-canvas.is-open .mbn-canvas__panel {
	transform: translate(0, 0);
}

.mbn-canvas__header {
	align-items: center;
	border-bottom: 1px solid var(--mbn-border);
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	justify-content: space-between;
	min-height: 56px;
	padding: 12px 16px;
}

.mbn-canvas__title {
	color: #23232c;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mbn-canvas__close {
	align-items: center;
	-webkit-appearance: none;
	appearance: none;
	background: var(--mbn-active-bg);
	border: 0;
	border-radius: 999px;
	color: var(--mbn-primary);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	font: inherit;
	font-size: 24px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	width: 36px;
}

.mbn-canvas__close:focus-visible,
.mbn-canvas__overlay:focus-visible {
	outline: 3px solid var(--mbn-active-bg);
	outline-offset: 2px;
}

.mbn-canvas__body {
	flex: 1 1 auto;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px;
}

html.mbn-canvas-lock,
body.mbn-canvas-lock {
	overflow: hidden;
}

@media (max-width: 360px) {
	.mbn__label {
		font-size: min(var(--mbn-label-size), 11px);
	}

	.mbn__list {
		padding-left: 7px;
		padding-right: 7px;
	}

	.mbn__link {
		padding-left: 2px;
		padding-right: 2px;
	}

	.mbn--preset-active-pill .mbn__item.is-active > .mbn__link {
		gap: 5px;
		padding-left: 9px;
		padding-right: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbn__link,
	.mbn__icon,
	.mbn__label,
	.mbn-canvas__overlay,
	.mbn-canvas__panel {
		transition: none;
	}
}
