/**
 * Mobile bottom navbar + menu drawer
 */

.bizto-mnav {
	--bizto-mnav-bg: #ffffff;
	--bizto-mnav-text: #1e3a5f;
	--bizto-mnav-icon-bg: #f3f4f6;
	--bizto-mnav-shop-bg: #f4a5c0;
	--bizto-mnav-border: #eef0f3;
	--bizto-mnav-h: 58px;
	display: none;
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: 9000;
	padding: 0.35rem 0.45rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
	background: var(--bizto-mnav-bg);
	border-top: 1px solid var(--bizto-mnav-border);
	box-shadow: 0 -6px 24px rgba(30, 58, 95, 0.08);
	transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s ease;
}

.bizto-mnav__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 0.15rem;
	max-width: 560px;
	margin: 0 auto;
	min-height: var(--bizto-mnav-h);
}

.bizto-mnav__item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.22rem;
	min-width: 0;
	padding: 0.15rem 0.1rem 0.1rem;
	border: 0;
	background: transparent;
	color: var(--bizto-mnav-text);
	text-decoration: none;
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.bizto-mnav__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--bizto-mnav-icon-bg);
	color: var(--bizto-mnav-text);
	flex-shrink: 0;
}

.bizto-mnav__icon .bizto-icon {
	width: 18px;
	height: 18px;
}

.bizto-mnav__label {
	display: block;
	max-width: 100%;
	padding: 0 0.1rem;
	font-size: 0.68rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--bizto-mnav-text);
}

.bizto-mnav__item--shop {
	justify-content: flex-end;
	transform: translateY(-6px);
}

.bizto-mnav__shop-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bizto-mnav-shop-bg);
	box-shadow: 0 6px 16px rgba(30, 58, 95, 0.14);
	border: 3px solid #fff;
	overflow: hidden;
	flex-shrink: 0;
}

.bizto-mnav__shop-mark img {
	display: block;
	width: 62%;
	height: 62%;
	object-fit: contain;
}

.bizto-mnav__item--cart .bizto-cart-badge {
	top: -5px;
	right: -6px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	font-size: 0.58rem;
	border-width: 1.5px;
}

@media (max-width: 900px) {
	.bizto-mnav {
		display: block;
	}

	body.has-bizto-mnav {
		padding-bottom: calc(var(--bizto-mnav-h, 58px) + 0.7rem + env(safe-area-inset-bottom, 0px));
	}

	body.has-bizto-mnav .site-footer {
		padding-bottom: 0.5rem;
	}
}

html.bizto-minicart-open .bizto-mnav,
html.bizto-menu-open .bizto-mnav {
	transform: translateY(110%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* ========== Mobile menu drawer ========== */
.bizto-mmenu {
	position: fixed;
	inset: 0;
	z-index: 100000;
	visibility: hidden;
	pointer-events: none;
}

.bizto-mmenu.is-open {
	visibility: visible;
	pointer-events: auto;
}

.bizto-mmenu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.42);
	opacity: 0;
	transition: opacity 0.28s ease;
}

.bizto-mmenu.is-open .bizto-mmenu__overlay {
	opacity: 1;
}

.bizto-mmenu__wrap {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(360px, 92vw);
	display: flex;
	flex-direction: column;
	transform: translateX(105%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
}

.bizto-mmenu.is-open .bizto-mmenu__wrap {
	transform: translateX(0);
}

.bizto-mmenu__panel {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	background: #fff;
	box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.bizto-mmenu__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.15rem;
	border-bottom: 1px solid #f0f0f0;
	flex-shrink: 0;
}

.bizto-mmenu__title {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-weight: 800;
	font-size: 1.05rem;
	color: #1e3a5f;
}

.bizto-mmenu__title-icon {
	display: inline-flex;
	color: #0f6b5c;
}

.bizto-mmenu__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #f3f4f6;
	color: #9ca3af;
	cursor: pointer;
	flex-shrink: 0;
}

.bizto-mmenu__body {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 0.5rem 0 1.25rem;
}

.bizto-mmenu__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bizto-mmenu__list > li > a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem;
	color: #1f2937;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border-bottom: 1px solid #f5f5f7;
	transition: background 0.15s ease, color 0.15s ease;
}

.bizto-mmenu__list > li > a:hover,
.bizto-mmenu__list > li > a:focus-visible,
.bizto-mmenu__list > li.current-menu-item > a {
	background: #f7f4ef;
	color: #0f6b5c;
}

.bizto-mmenu__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0.35rem;
	background: #fafaf9;
}

.bizto-mmenu__list .sub-menu a {
	display: block;
	padding: 0.65rem 1.25rem 0.65rem 1.75rem;
	color: #4b5563;
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 500;
}

.bizto-mmenu__list .sub-menu a:hover,
.bizto-mmenu__list .sub-menu a:focus-visible {
	color: #0f6b5c;
}

.bizto-mmenu__empty {
	margin: 1.5rem 1.25rem;
	padding: 1rem;
	border-radius: 12px;
	background: #f7f4ef;
	color: #6b7280;
	font-size: 0.9rem;
	text-align: center;
}

html.bizto-menu-open {
	overflow: hidden;
	padding-inline-end: var(--bizto-sbw, 0px);
	overscroll-behavior: none;
}

html.bizto-menu-open body {
	overflow: hidden;
	overscroll-behavior: none;
}

.bizto-search-form.is-mnav-focus {
	outline: 2px solid #0f6b5c;
	outline-offset: 3px;
	border-radius: var(--bizto-search-radius, 12px);
	transition: outline-color 0.2s ease;
}

@media (min-width: 901px) {
	.bizto-mnav,
	.bizto-mmenu {
		display: none !important;
	}

	body.has-bizto-mnav {
		padding-bottom: 0;
	}
}
