.wpmbn-bar {
	position: fixed;
	left: 0.5rem;
	right: 0.5rem;
	bottom: 0.25rem;
	max-width: calc(100vw - 1rem);
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: space-around;
	gap: 4px;
	padding: 0.625rem 0.5rem 0.375rem;
	border-radius: 1rem;
	-webkit-backdrop-filter: blur(var(--wpmbn-blur, 16px)) saturate(150%);
	backdrop-filter: blur(var(--wpmbn-blur, 16px)) saturate(150%);
	transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
	transform: translateY(0);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	margin: 0;
}

@media (min-width: 768px) {
	.wpmbn-bar {
		display: none;
	}
}

.wpmbn-mode-light {
	background: var(--wpmbn-bg, rgba(255, 255, 255, 0.7));
}
.wpmbn-mode-light .wpmbn-item,
.wpmbn-mode-light .wpmbn-popover-item {
	color: var(--wpmbn-text, #111827);
}
.wpmbn-mode-light .wpmbn-more-popover {
	background: var(--wpmbn-bg, rgba(255, 255, 255, 0.85));
}

.wpmbn-mode-dark {
	background: var(--wpmbn-bg, rgba(17, 17, 20, 0.7));
}
.wpmbn-mode-dark .wpmbn-item,
.wpmbn-mode-dark .wpmbn-popover-item {
	color: var(--wpmbn-text, #e5e7eb);
}
.wpmbn-mode-dark .wpmbn-more-popover {
	background: var(--wpmbn-bg, rgba(17, 17, 20, 0.85));
}

/* ----- item ----- */
.wpmbn-item {
	flex: 1 1 0;
	min-width: 0;
	max-width: 96px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 4px;
	text-decoration: none;
	background: none;
	border: none;
	padding: 4px 4px 2px;
	box-sizing: border-box;
	cursor: pointer;
	color: inherit;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.wpmbn-label-right .wpmbn-item {
	flex-direction: row;
	gap: 6px;
}

.wpmbn-item.wpmbn-active,
.wpmbn-popover-item.wpmbn-active,
.wpmbn-item:hover,
.wpmbn-popover-item:hover {
	color: var(--wpmbn-active, #6d5ef8);
}

.wpmbn-icon {
	display: block;
	line-height: 1;
	flex-shrink: 0;
}
.wpmbn-icon-img {
	object-fit: contain;
}

.wpmbn-label {
	display: block;
	max-width: 100%;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ----- sizes ----- */
.wpmbn-size-small .wpmbn-icon {
	width: 16px;
	height: 16px;
	font-size: 16px;
}
.wpmbn-size-small .wpmbn-label {
	font-size: 12px;
}
.wpmbn-size-small.wpmbn-bar {
	min-height: 48px;
}

.wpmbn-size-medium .wpmbn-icon {
	width: 18px;
	height: 18px;
	font-size: 18px;
}
.wpmbn-size-medium .wpmbn-label {
	font-size: 13px;
}
.wpmbn-size-medium.wpmbn-bar {
	min-height: 52px;
}

.wpmbn-size-large .wpmbn-icon {
	width: 22px;
	height: 22px;
	font-size: 22px;
}
.wpmbn-size-large .wpmbn-label {
	font-size: 14px;
}
.wpmbn-size-large.wpmbn-bar {
	min-height: 60px;
}

.wpmbn-label-hidden .wpmbn-label {
	display: none;
}
.wpmbn-more-popover .wpmbn-label{
	display: block;
}

/* ----- nút More + popover ----- */
.wpmbn-more-wrap {
	position: relative;
	/* flex: 1 1 0; */
	min-width: 0;
	max-width: 96px;
	display: flex;
	/* justify-content: center; */
	height: 100%;
}

.wpmbn-more-toggle {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	height: 100%;
}
.wpmbn-more-toggle:focus-visible {
	outline: 2px solid var(--wpmbn-active, #6d5ef8);
	outline-offset: 2px;
	border-radius: 6px;
}

.wpmbn-more-popover {
	position: absolute;
	bottom: calc(100% + 10px);
	right: 0;
	left: auto;
	width: max-content;
	min-width: 170px;
	max-width: calc(100vw - 2rem);
	box-sizing: border-box;
	border-radius: 0.75rem;
	padding: 6px;
	display: none;
	flex-direction: column;
	gap: 2px;
	-webkit-backdrop-filter: blur(var(--wpmbn-blur, 16px)) saturate(150%);
	backdrop-filter: blur(var(--wpmbn-blur, 16px)) saturate(150%);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
.wpmbn-more-popover.wpmbn-open {
	display: flex;
}

.wpmbn-popover-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 0.5rem;
	text-decoration: none;
}
.wpmbn-popover-item:hover {
	background: rgba(125, 125, 125, 0.1);
}
.wpmbn-popover-item .wpmbn-icon {
	width: 18px;
	height: 18px;
	font-size: 18px;
}
.wpmbn-popover-item .wpmbn-label {
	white-space: normal;
}

.wpmbn-effect-shrink.wpmbn-scrolled {
	transform: scale(0.85);
}
.wpmbn-effect-hide.wpmbn-hidden {
	transform: translateY(150%);
}
