/**
 * Mobile Bottom Bar for WooCommerce - 前端样式
 */

.mbbw-bottom-bar {
	box-sizing: border-box;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: var(--mbbw-z-index, 9998);
	background-color: var(--mbbw-bg, #ffffff);
	color: var(--mbbw-text, #333333);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding-bottom: env(safe-area-inset-bottom, 0);
	display: none;
}

.mbbw-inner {
	box-sizing: border-box;
	display: flex;
	justify-content: space-around;
	align-items: center;
	min-height: var(--mbbw-bar-height, 56px);
	padding: 8px 0;
}

.mbbw-item {
	box-sizing: border-box;
	position: relative;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 4px 8px;
	text-decoration: none;
	color: inherit;
	font-size: 11px;
	transition: color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.mbbw-item:hover,
.mbbw-item:focus {
	color: var(--mbbw-active, #0073aa);
}

.mbbw-item.current-menu-item {
	color: var(--mbbw-active, #0073aa);
}

.mbbw-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 2px;
}

.mbbw-icon .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}

.mbbw-icon img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.mbbw-label {
	max-width: 100%;
	overflow: hidden;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ===== 1.68 移动端底部菜单排版风格 ===== */
.mbbw-style-brand-solid {
	background: #1769aa;
	color: rgba(255, 255, 255, 0.76);
}

.mbbw-style-brand-solid .mbbw-item:hover,
.mbbw-style-brand-solid .mbbw-item:focus,
.mbbw-style-brand-solid .mbbw-item.current-menu-item {
	color: #fff;
}

.mbbw-style-brand-solid .current-menu-item .mbbw-icon {
	padding: 3px 7px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 9px;
}

.mbbw-style-black-gold {
	background: #171717;
	border-top: 1px solid #b98d43;
	color: #a9a9a9;
}

.mbbw-style-black-gold .mbbw-item:hover,
.mbbw-style-black-gold .mbbw-item:focus,
.mbbw-style-black-gold .mbbw-item.current-menu-item {
	color: #e8bd68;
}

.mbbw-style-glass {
	padding: 0 8px calc(7px + env(safe-area-inset-bottom, 0));
	background: transparent;
	box-shadow: none;
}

.mbbw-style-glass .mbbw-inner {
	min-height: 56px;
	background: rgba(255, 255, 255, 0.78);
	border: 1px solid rgba(255, 255, 255, 0.9);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(34, 45, 64, 0.18);
	-webkit-backdrop-filter: blur(14px) saturate(1.3);
	backdrop-filter: blur(14px) saturate(1.3);
}

.mbbw-style-glass .mbbw-item {
	color: #535d6c;
}

.mbbw-style-glass .mbbw-item:hover,
.mbbw-style-glass .mbbw-item:focus,
.mbbw-style-glass .mbbw-item.current-menu-item {
	color: #8a5adf;
}

.mbbw-style-floating,
.mbbw-style-soft-shadow,
.mbbw-style-ios-island {
	padding: 0 8px calc(7px + env(safe-area-inset-bottom, 0));
	background: transparent;
	box-shadow: none;
}

.mbbw-style-floating .mbbw-inner {
	min-height: 56px;
	background: var(--mbbw-bg, #fff);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(29, 55, 85, 0.24);
}

.mbbw-style-floating .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	margin-bottom: 2px;
	background: var(--mbbw-active, #2271b1);
	border-radius: 10px;
	color: #fff;
}

.mbbw-style-soft-shadow .mbbw-inner {
	min-height: 56px;
	background: var(--mbbw-bg, #fff);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(82, 94, 117, 0.22);
}

.mbbw-style-soft-shadow .mbbw-item {
	color: var(--mbbw-text, #333);
}

.mbbw-style-soft-shadow .mbbw-item:hover,
.mbbw-style-soft-shadow .mbbw-item:focus,
.mbbw-style-soft-shadow .mbbw-item.current-menu-item {
	color: var(--mbbw-active, #686ee2);
}

.mbbw-style-morandi {
	background: #e8e4de;
	color: #6f716d;
}

.mbbw-style-morandi .mbbw-item:hover,
.mbbw-style-morandi .mbbw-item:focus,
.mbbw-style-morandi .mbbw-item.current-menu-item {
	color: #65785f;
}

.mbbw-style-morandi .current-menu-item .mbbw-icon {
	padding: 3px 7px;
	background: #cbd4c5;
	border-radius: 9px;
}

.mbbw-style-neon-dark {
	background: #101522;
	border-top: 1px solid #29344b;
	color: #727d95;
}

.mbbw-style-neon-dark .mbbw-item:hover,
.mbbw-style-neon-dark .mbbw-item:focus,
.mbbw-style-neon-dark .mbbw-item.current-menu-item {
	color: #55f2d1;
	text-shadow: 0 0 9px rgba(85, 242, 209, 0.7);
}

.mbbw-style-segmented {
	background: var(--mbbw-bg, #f3f5f8);
	background: color-mix(in srgb, var(--mbbw-bg, #fff) 82%, #e4e9f0);
	box-shadow: none;
	color: var(--mbbw-text, #333);
}

.mbbw-style-segmented .mbbw-inner {
	gap: 4px;
	padding: 5px;
}

.mbbw-style-segmented .mbbw-item {
	padding: 4px 2px;
	background: var(--mbbw-bg, #fff);
	border: 1px solid #e2e6eb;
	border-radius: 9px;
}

.mbbw-style-segmented .mbbw-item.current-menu-item {
	border-color: var(--mbbw-active, #2271b1);
}

.mbbw-style-accent-top {
	border-top: 4px solid var(--mbbw-active, #ff6b35);
}

.mbbw-style-icon-tile .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #f0f1f3;
	border-radius: 9px;
}

.mbbw-style-icon-tile .current-menu-item .mbbw-icon {
	background: var(--mbbw-active, #2271b1);
	color: #fff;
}

.mbbw-style-label-highlight .current-menu-item .mbbw-label {
	padding: 2px 7px;
	background: color-mix(in srgb, var(--mbbw-active, #6d48d7) 14%, white);
	border-radius: 999px;
	font-weight: 700;
}

.mbbw-style-commerce-red {
	background: #fff7f7;
	border-top: 1px solid #f4d9d9;
	color: #756565;
}

.mbbw-style-commerce-red .mbbw-item:hover,
.mbbw-style-commerce-red .mbbw-item:focus,
.mbbw-style-commerce-red .mbbw-item.current-menu-item {
	color: #d63638;
}

.mbbw-style-commerce-red .current-menu-item .mbbw-icon {
	padding: 3px 7px;
	background: #fde0e0;
	border-radius: 9px;
}

.mbbw-style-nature-green {
	background: #f4f8f2;
	color: #637060;
}

.mbbw-style-nature-green .mbbw-item:hover,
.mbbw-style-nature-green .mbbw-item:focus,
.mbbw-style-nature-green .mbbw-item.current-menu-item {
	color: #3f7d45;
}

.mbbw-style-nature-green .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #dcebd9;
	border-radius: 50%;
}

.mbbw-style-gradient {
	background: linear-gradient(110deg, #7546d6, #d4489d, #ff7854);
	color: rgba(255, 255, 255, 0.76);
}

.mbbw-style-gradient .mbbw-item:hover,
.mbbw-style-gradient .mbbw-item:focus,
.mbbw-style-gradient .mbbw-item.current-menu-item {
	color: #fff;
}

.mbbw-style-gradient .current-menu-item .mbbw-icon {
	padding: 3px 7px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 9px;
}

.mbbw-style-ios-island {
	padding-right: 10px;
	padding-left: 10px;
}

.mbbw-style-ios-island .mbbw-inner {
	min-height: 56px;
	background: #fff;
	border: 1px solid #e1e5ea;
	border-radius: 24px;
	box-shadow: 0 8px 24px rgba(20, 35, 55, 0.22);
}

.mbbw-style-ios-island .mbbw-item {
	color: #616873;
}

.mbbw-style-ios-island .mbbw-item:hover,
.mbbw-style-ios-island .mbbw-item:focus,
.mbbw-style-ios-island .mbbw-item.current-menu-item {
	color: #111;
}

.mbbw-style-ios-island .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #111;
	border-radius: 50%;
	color: #fff;
}

/* ===== 中国大陆与台湾主流商城灵感风格 ===== */
.mbbw-style-taobao {
	background: #fff;
	color: #666;
}

.mbbw-style-taobao .mbbw-item:hover,
.mbbw-style-taobao .mbbw-item:focus,
.mbbw-style-taobao .mbbw-item.current-menu-item {
	color: #ff5000;
}

.mbbw-style-taobao .current-menu-item .mbbw-icon .dashicons {
	font-weight: 700;
}

.mbbw-style-tmall {
	background: #fff;
	border-top: 1px solid #eee;
	color: #777;
}

.mbbw-style-tmall .mbbw-item:hover,
.mbbw-style-tmall .mbbw-item:focus,
.mbbw-style-tmall .mbbw-item.current-menu-item {
	color: #111;
}

.mbbw-style-tmall .mbbw-item.current-menu-item::after {
	position: absolute;
	bottom: 1px;
	width: 18px;
	height: 3px;
	background: #ff0036;
	border-radius: 3px;
	content: "";
}

.mbbw-style-jd {
	background: #fff;
	color: #64676d;
}

.mbbw-style-jd .mbbw-item:hover,
.mbbw-style-jd .mbbw-item:focus,
.mbbw-style-jd .mbbw-item.current-menu-item {
	color: #e1251b;
}

.mbbw-style-jd .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #e1251b;
	border-radius: 9px;
	color: #fff;
}

.mbbw-style-pdd {
	background: #fff;
	color: #666;
}

.mbbw-style-pdd .mbbw-item:hover,
.mbbw-style-pdd .mbbw-item:focus,
.mbbw-style-pdd .mbbw-item.current-menu-item {
	color: #e02e24;
}

.mbbw-style-pdd .current-menu-item .mbbw-label {
	padding: 2px 7px;
	background: #e02e24;
	border-radius: 999px;
	color: #fff;
	font-weight: 700;
}

.mbbw-style-douyin {
	background: #08090b;
	border-top: 1px solid #202329;
	color: #a6abb2;
}

.mbbw-style-douyin .mbbw-item:hover,
.mbbw-style-douyin .mbbw-item:focus,
.mbbw-style-douyin .mbbw-item.current-menu-item {
	color: #fff;
}

.mbbw-style-douyin .current-menu-item .mbbw-icon {
	filter: drop-shadow(-2px 0 #25f4ee) drop-shadow(2px 0 #fe2c55);
}

.mbbw-style-vip {
	background: linear-gradient(105deg, #ef3f8f, #bc2cc7);
	color: rgba(255, 255, 255, 0.76);
}

.mbbw-style-vip .mbbw-item:hover,
.mbbw-style-vip .mbbw-item:focus,
.mbbw-style-vip .mbbw-item.current-menu-item {
	color: #fff;
}

.mbbw-style-vip .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #fff;
	border-radius: 50%;
	color: #d72b98;
}

.mbbw-style-suning {
	background: #fff;
	border-top: 3px solid #1f75d8;
	color: #66707a;
}

.mbbw-style-suning .mbbw-item:hover,
.mbbw-style-suning .mbbw-item:focus,
.mbbw-style-suning .mbbw-item.current-menu-item {
	color: #ff8a00;
}

.mbbw-style-shopee-tw {
	background: #fff;
	border-top: 2px solid #ee4d2d;
	color: #656b73;
}

.mbbw-style-shopee-tw .mbbw-item:hover,
.mbbw-style-shopee-tw .mbbw-item:focus,
.mbbw-style-shopee-tw .mbbw-item.current-menu-item {
	color: #ee4d2d;
}

.mbbw-style-shopee-tw .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	border: 1px solid #ee4d2d;
	border-radius: 50%;
}

.mbbw-style-momo-tw {
	background: #fff5fa;
	border-top: 1px solid #f3cade;
	color: #6f6870;
}

.mbbw-style-momo-tw .mbbw-item:hover,
.mbbw-style-momo-tw .mbbw-item:focus,
.mbbw-style-momo-tw .mbbw-item.current-menu-item {
	color: #d9287f;
}

.mbbw-style-momo-tw .mbbw-item.current-menu-item::before {
	position: absolute;
	top: -5px;
	width: 28px;
	height: 4px;
	background: #d9287f;
	border-radius: 0 0 5px 5px;
	content: "";
}

.mbbw-style-yahoo-tw {
	background: #fff;
	color: #716a79;
}

.mbbw-style-yahoo-tw .mbbw-item:hover,
.mbbw-style-yahoo-tw .mbbw-item:focus,
.mbbw-style-yahoo-tw .mbbw-item.current-menu-item {
	color: #6001d2;
}

.mbbw-style-yahoo-tw .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #f0e6ff;
	border-radius: 10px;
}

.mbbw-style-apple-store {
	padding: 0 8px calc(7px + env(safe-area-inset-bottom, 0));
	background: transparent;
	box-shadow: none;
}

.mbbw-style-apple-store .mbbw-inner {
	min-height: 56px;
	background: rgba(250, 250, 252, 0.9);
	border: 1px solid rgba(120, 120, 128, 0.18);
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(20, 25, 35, 0.18);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
}

.mbbw-style-apple-store .mbbw-item {
	color: #73777e;
}

.mbbw-style-apple-store .mbbw-item:hover,
.mbbw-style-apple-store .mbbw-item:focus,
.mbbw-style-apple-store .mbbw-item.current-menu-item {
	color: #111;
}

.mbbw-style-xiaomi {
	background: #fff;
	color: #666b72;
}

.mbbw-style-xiaomi .mbbw-item:hover,
.mbbw-style-xiaomi .mbbw-item:focus,
.mbbw-style-xiaomi .mbbw-item.current-menu-item {
	color: #ff6900;
}

.mbbw-style-xiaomi .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	background: #ff6900;
	border-radius: 9px;
	color: #fff;
}

.mbbw-style-youpin {
	background: #f6f2ea;
	border-top: 1px solid #e1d9cd;
	color: #777067;
}

.mbbw-style-youpin .mbbw-item:hover,
.mbbw-style-youpin .mbbw-item:focus,
.mbbw-style-youpin .mbbw-item.current-menu-item {
	color: #8d6341;
}

.mbbw-style-youpin .mbbw-item.current-menu-item::after {
	position: absolute;
	bottom: 1px;
	width: 22px;
	height: 2px;
	background: #8d6341;
	content: "";
}

.mbbw-style-yanxuan {
	background: #fbf8f3;
	border-top: 1px solid #e8dfd5;
	color: #6f6a68;
}

.mbbw-style-yanxuan .mbbw-item:hover,
.mbbw-style-yanxuan .mbbw-item:focus,
.mbbw-style-yanxuan .mbbw-item.current-menu-item {
	color: #b4282d;
}

.mbbw-style-yanxuan .current-menu-item .mbbw-icon {
	width: 31px;
	height: 31px;
	border: 1px solid #b4282d;
	border-radius: 5px;
}

@supports not (background: color-mix(in srgb, red 10%, white)) {
	.mbbw-style-label-highlight .current-menu-item .mbbw-label { background: #eee9ff; }
}

@media (prefers-reduced-motion: reduce) {
	.mbbw-item { transition: none; }
}

/* 显示/隐藏由 wp_add_inline_style 根据配置的断点动态注入 */
