/*!
 * WPMobileTabBar – front-end styles
 * Zero dependencies. All colours come from CSS custom properties injected by
 * the plugin, so themes can be re-skinned without touching this file.
 */

/* ==========================================================================
   0. Tokens
   ========================================================================== */

.wmtb-on {
	--wmtb-active-fg: var(--wmtb-accent);
	--wmtb-sab: env(safe-area-inset-bottom, 0px);
	--wmtb-sat: env(safe-area-inset-top, 0px);
	--wmtb-total: calc(var(--wmtb-height) + var(--wmtb-offset) + (var(--wmtb-sab) * var(--wmtb-safe)));
	--wmtb-gap: calc(10px + (10px * var(--wmtb-float)));
	--wmtb-tint: color-mix(in srgb, var(--wmtb-accent) 12%, transparent);
}

.wmtb-on.wmtb-pad {
	padding-bottom: var(--wmtb-total) !important;
}

/* Floating bars need the extra gap accounted for in the document padding. */
.wmtb-on.wmtb-floating {
	--wmtb-total: calc(var(--wmtb-height) + var(--wmtb-offset) + var(--wmtb-gap) + (var(--wmtb-sab) * var(--wmtb-safe)));
}

/* Everything the plugin renders lives in its own stacking context. */
.wmtb-bar,
.wmtb-flyout,
.wmtb-sheet,
.wmtb-search,
.wmtb-scrim,
.wmtb-ptr {
	font-family: var(--wmtb-font, inherit);
	direction: inherit;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.wmtb-bar *,
.wmtb-flyout *,
.wmtb-sheet *,
.wmtb-search *,
.wmtb-ptr * {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

.wmtb-ico {
	width: var(--wmtb-icon, 22px);
	height: var(--wmtb-icon, 22px);
	display: block;
	flex: 0 0 auto;
	overflow: visible;
}

/* Body scroll lock while a panel is open. */
/* Scroll-lock must NOT set touch-action:none on the whole document: doing so
   kills touch panning inside the panel's own scroll container on many phones
   (the category tree / filter became unreachable on those devices). */
html.wmtb-locked,
html.wmtb-locked body {
	overflow: hidden !important;
	overscroll-behavior: none;
}

/* Guarantee vertical panning inside panel scrollers on every touch device. */
.wmtb-flyout__body,
.wmtb-sheet__body,
.wmtb-search__results {
	touch-action: pan-y;
}

/* Kill the legacy 300ms tap delay / double-tap zoom on our controls. */
.wmtb-bar button,
.wmtb-bar a,
.wmtb-flyout button,
.wmtb-flyout a,
.wmtb-sheet button,
.wmtb-sheet a,
.wmtb-search button,
.wmtb-search a,
.wmtb-search input {
	touch-action: manipulation;
}

/* ...and on the rest of the interactive surface: filter chips, accordion
   toggles, submenu toggles, scrims and suggestion rows. `manipulation` removes
   the 300 ms delay and stops Android from turning a tap into a (cancelled)
   pan gesture, which is what made controls ignore the first tap. */
.wmtb-bar label,
.wmtb-flyout label,
.wmtb-sheet label,
.wmtb-fbar,
.wmtb-fbar button,
.wmtb-fbar a,
.wmtb-fbar label,
.wmtb-fchip,
.wmtb-filter-sheet,
.wmtb-filter-sheet button,
.wmtb-filter-sheet a,
.wmtb-filter-sheet label,
.wmtb-filter-sheet summary,
.wmtb-ctnode__toggle,
.wmtb-ctnode__link,
.wmtb-menu__toggle,
.wmtb-menu__link,
.wmtb-search-panel__btn,
.wmtb-search-suggest a,
.wmtb-search-recent button,
.wmtb-scrim,
.wmtb-search-scrim,
.wmtb-sr a,
.wmtb-sr button {
	touch-action: manipulation;
}

/* A long press must not become a selection/context-menu gesture on Android. */
.wmtb-bar,
.wmtb-flyout,
.wmtb-sheet,
.wmtb-fbar,
.wmtb-fchip,
.wmtb-filter-sheet,
.wmtb-ctnode__toggle,
.wmtb-menu__toggle,
.wmtb-search-panel__btn {
	-webkit-tap-highlight-color: transparent;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

/* ==========================================================================
   1. The tab bar
   ========================================================================== */

.wmtb-bar {
	position: fixed;
	inset-inline: 0;
	bottom: var(--wmtb-offset, 0px);
	z-index: var(--wmtb-z, 9999);
	display: flex;
	padding: 0;
	margin: 0;
	transition: transform .38s var(--wmtb-ease), box-shadow .3s ease, opacity .25s ease;
	will-change: transform;
	contain: layout style;
}

.wmtb-bar__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: var(--wmtb-height);
	padding: 6px 6px calc(6px + (var(--wmtb-sab) * var(--wmtb-safe)));
	gap: 2px;
	position: relative;
	overflow: hidden;
}

/* --- surface variants --------------------------------------------------- */

.wmtb-style-glass .wmtb-bar__inner {
	background: var(--wmtb-surface);
	-webkit-backdrop-filter: blur(var(--wmtb-blur)) saturate(180%);
	backdrop-filter: blur(var(--wmtb-blur)) saturate(180%);
	border-top: 1px solid var(--wmtb-border);
	box-shadow: var(--wmtb-shadow);
}

.wmtb-style-solid .wmtb-bar__inner {
	background: var(--wmtb-surface-solid);
	border-top: 1px solid var(--wmtb-border);
	box-shadow: var(--wmtb-shadow);
}

.wmtb-style-gradient .wmtb-bar__inner {
	background: linear-gradient(135deg, var(--wmtb-accent) 0%, var(--wmtb-accent-2, var(--wmtb-accent)) 100%);
	--wmtb-fg: #fff;
	--wmtb-active-fg: #fff;
	--wmtb-fg-muted: rgba(255, 255, 255, .78);
	--wmtb-active-bg: rgba(255, 255, 255, .26);
	--wmtb-border: rgba(255, 255, 255, .22);
	box-shadow: 0 -8px 28px rgba(var(--wmtb-accent-rgb), .34);
}

.wmtb-style-minimal .wmtb-bar__inner {
	background: var(--wmtb-surface-solid);
	box-shadow: none;
	border-top: 1px solid var(--wmtb-border);
}

/* --- floating ----------------------------------------------------------- */

.wmtb-bar.wmtb-floating {
	inset-inline: var(--wmtb-gap);
	bottom: calc(var(--wmtb-offset) + var(--wmtb-gap) + (var(--wmtb-sab) * var(--wmtb-safe)));
}

.wmtb-bar.wmtb-floating .wmtb-bar__inner {
	border-radius: var(--wmtb-radius);
	border: 1px solid var(--wmtb-border);
	box-shadow: 0 12px 34px rgba(12, 16, 32, .22);
	padding-bottom: 6px;
}

/* --- rounded corners when not floating ----------------------------------- */

.wmtb-bar:not(.wmtb-floating) .wmtb-bar__inner {
	border-radius: 0;
}

.wmtb-bar.wmtb-floating:not(.wmtb-style-glass) .wmtb-bar__inner {
	border-radius: var(--wmtb-radius);
}

/* --- scroll elevation --------------------------------------------------- */

.wmtb-bar.is-scrolled.wmtb-elevate .wmtb-bar__inner {
	box-shadow: 0 -10px 30px rgba(12, 16, 32, .18);
}

/* --- hide on scroll ----------------------------------------------------- */

.wmtb-bar.is-hidden {
	transform: translateY(calc(100% + var(--wmtb-gap) + 8px));
	pointer-events: none;
}

/* --- horizontal overflow ------------------------------------------------ */

.wmtb-bar.wmtb-scrollable .wmtb-bar__inner {
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.wmtb-bar.wmtb-scrollable .wmtb-bar__inner::-webkit-scrollbar {
	display: none;
}

.wmtb-bar.wmtb-scrollable .wmtb-tab {
	flex: 0 0 auto;
	min-width: 68px;
}

/* ==========================================================================
   2. Tabs
   ========================================================================== */

.wmtb-tab {
	position: relative;
	display: flex;
	flex: 1 1 0;
	min-width: 0;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	padding: 6px 4px 4px;
	margin: 0;
	border: 0;
	background: transparent;
	color: var(--wmtb-fg-muted);
	font: inherit;
	font-size: var(--wmtb-label);
	line-height: 1.15;
	text-decoration: none !important;
	cursor: pointer;
	border-radius: calc(var(--wmtb-radius-sm) + 4px);
	transition: color .22s ease, transform .18s var(--wmtb-ease);
	-webkit-user-select: none;
	user-select: none;
	appearance: none;
	outline-offset: -3px;
}

.wmtb-tab:hover {
	color: var(--wmtb-fg);
}

.wmtb-tab:active {
	transform: scale(.93);
}

.wmtb-tab:focus-visible {
	outline: 2px solid var(--wmtb-accent);
}

.wmtb-tab__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: calc(var(--wmtb-icon) + 8px);
	transition: transform .32s var(--wmtb-ease);
}

.wmtb-tab__icon::before {
	content: "";
	position: absolute;
	inset: 0 -10px;
	border-radius: 999px;
	background: var(--wmtb-active-bg);
	opacity: 0;
	transform: scale(.6);
	transition: opacity .26s ease, transform .34s var(--wmtb-ease);
	pointer-events: none;
}

.wmtb-tab__icon > svg,
.wmtb-tab__icon > .wmtb-avatar {
	position: relative;
	z-index: 1;
}

.wmtb-tab__label {
	display: block;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: var(--wmtb-label);
	font-weight: 500;
	letter-spacing: .1px;
	opacity: .92;
}

.wmtb-bar.wmtb-no-labels .wmtb-tab {
	gap: 0;
}

.wmtb-bar.wmtb-no-labels .wmtb-tab__label {
	display: none;
}

/* --- avatar on the account tab ------------------------------------------ */

.wmtb-avatar {
	width: calc(var(--wmtb-icon) + 2px);
	height: calc(var(--wmtb-icon) + 2px);
	border-radius: 50%;
	background: var(--wmtb-field) center/cover no-repeat;
	box-shadow: 0 0 0 1.5px var(--wmtb-border);
}

.wmtb-tab.is-active .wmtb-avatar {
	box-shadow: 0 0 0 2px var(--wmtb-accent);
}

/* ==========================================================================
   3. Active indicators
   ========================================================================== */

.wmtb-tab.is-active {
	color: var(--wmtb-active-fg, var(--wmtb-accent));
}

/* pill */
.wmtb-ind-pill .wmtb-tab.is-active .wmtb-tab__icon::before {
	opacity: 1;
	transform: scale(1);
}

/* glow */
.wmtb-ind-glow .wmtb-tab.is-active .wmtb-tab__icon > svg {
	filter: drop-shadow(0 2px 8px rgba(var(--wmtb-accent-rgb), .55));
}

.wmtb-ind-glow .wmtb-tab.is-active .wmtb-tab__icon::before {
	opacity: .5;
	transform: scale(1);
	filter: blur(6px);
}

/* top bar */
.wmtb-ind-bar .wmtb-tab.is-active::after {
	content: "";
	position: absolute;
	top: 0;
	inset-inline: 50%;
	width: 22px;
	margin-inline-start: -11px;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--wmtb-accent);
	animation: wmtb-bar-in .32s var(--wmtb-ease) both;
}

@keyframes wmtb-bar-in {
	from { width: 0; margin-inline-start: 0; opacity: 0; }
	to   { width: 22px; margin-inline-start: -11px; opacity: 1; }
}

/* dot */
.wmtb-ind-dot .wmtb-tab.is-active::after {
	content: "";
	position: absolute;
	bottom: 2px;
	left: 50%;
	width: 4px;
	height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--wmtb-accent);
}

.wmtb-ind-dot.wmtb-no-labels .wmtb-tab.is-active::after {
	bottom: 4px;
}

/* ==========================================================================
   4. Tap animations
   ========================================================================== */

.wmtb-anim-spring .wmtb-tab.is-active .wmtb-tab__icon {
	animation: wmtb-spring .5s cubic-bezier(.34, 1.56, .64, 1);
}

.wmtb-anim-pop .wmtb-tab.is-active .wmtb-tab__icon {
	animation: wmtb-pop .34s ease-out;
}

.wmtb-anim-fade .wmtb-tab.is-active .wmtb-tab__icon {
	animation: wmtb-fade .3s ease-out;
}

@keyframes wmtb-spring {
	0%   { transform: translateY(0) scale(1); }
	35%  { transform: translateY(-5px) scale(1.14); }
	70%  { transform: translateY(1px) scale(.96); }
	100% { transform: translateY(0) scale(1); }
}

@keyframes wmtb-pop {
	0%   { transform: scale(.7); }
	60%  { transform: scale(1.12); }
	100% { transform: scale(1); }
}

@keyframes wmtb-fade {
	from { opacity: .25; }
	to   { opacity: 1; }
}

/* ==========================================================================
   5. Badges
   ========================================================================== */

.wmtb-badge {
	position: absolute;
	top: -3px;
	inset-inline-end: 50%;
	margin-inline-end: calc((var(--wmtb-icon) / 2) * -1 - 2px);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ff3b5c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0;
	pointer-events: none;
	box-shadow: 0 0 0 1.5px var(--wmtb-surface-solid, #fff);
	transform-origin: center;
}

.wmtb-bar.wmtb-style-gradient .wmtb-badge {
	box-shadow: none;
	background: #fff;
	color: var(--wmtb-accent);
}

.wmtb-badge--dot {
	min-width: 8px;
	width: 8px;
	height: 8px;
	padding: 0;
	font-size: 0;
	top: 0;
}

.wmtb-badge--square {
	border-radius: 5px;
}

.wmtb-badge--ring {
	background: transparent;
	color: #ff3b5c;
	box-shadow: inset 0 0 0 1.5px #ff3b5c;
}

.wmtb-badge--new_products {
	background: #12b886;
}

.wmtb-badge--new_products.wmtb-badge--ring {
	background: transparent;
	color: #12b886;
	box-shadow: inset 0 0 0 1.5px #12b886;
}

.wmtb-badge--account {
	background: #f59f00;
}

.wmtb-badge--account.wmtb-badge--ring {
	background: transparent;
	color: #f59f00;
	box-shadow: inset 0 0 0 1.5px #f59f00;
}

.wmtb-badge.is-bump {
	animation: wmtb-bump .48s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes wmtb-bump {
	0%   { transform: scale(.4); }
	45%  { transform: scale(1.35); }
	100% { transform: scale(1); }
}

.wmtb-badge.is-pulse::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: inherit;
	animation: wmtb-pulse 2.2s ease-out infinite;
	z-index: -1;
}

@keyframes wmtb-pulse {
	0%   { transform: scale(1); opacity: .55; }
	70%  { transform: scale(2.3); opacity: 0; }
	100% { transform: scale(2.3); opacity: 0; }
}

/* ==========================================================================
   6. Scrim
   ========================================================================== */

.wmtb-scrim {
	position: fixed;
	inset: 0;
	z-index: calc(var(--wmtb-z, 9999) + 1);
	background: var(--wmtb-scrim, rgba(12, 14, 22, .48));
	opacity: 0;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	transition: opacity .3s ease;
	pointer-events: none;
}

.wmtb-scrim.is-open {
	opacity: 1;
	pointer-events: auto;
}

/* ==========================================================================
   7. Flyout (mega menu)
   ========================================================================== */

.wmtb-flyout {
	position: fixed;
	inset-inline: 0;
	bottom: var(--wmtb-total, 62px);
	z-index: calc(var(--wmtb-z, 9999) + 2);
	display: flex;
	flex-direction: column;
	max-height: min(78vh, 660px);
	background: var(--wmtb-sheet, var(--wmtb-surface-solid));
	color: var(--wmtb-fg);
	border-radius: calc(var(--wmtb-radius) + 4px) calc(var(--wmtb-radius) + 4px) 0 0;
	box-shadow: 0 -18px 48px rgba(8, 10, 20, .28);
	transform: translateY(calc(100% + var(--wmtb-gap)));
	opacity: 0;
	visibility: hidden;
	transition: transform .42s var(--wmtb-ease), opacity .28s ease, visibility .42s;
	overflow: hidden;
}

.wmtb-flyout.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.wmtb-flyout__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px 12px;
	border-bottom: 1px solid var(--wmtb-border);
	flex: 0 0 auto;
}

.wmtb-flyout__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none !important;
	color: var(--wmtb-fg);
	min-width: 0;
}

.wmtb-flyout__logo {
	max-height: 34px;
	max-width: 132px;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}

.wmtb-flyout__title {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wmtb-flyout__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 8px 16px 20px;
}

.wmtb-flyout__foot {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	border-top: 1px solid var(--wmtb-border);
	background: color-mix(in srgb, var(--wmtb-sheet, #fff) 88%, transparent);
}

.wmtb-flyout__powered {
	font-size: 11px;
	color: var(--wmtb-fg-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wmtb-flyout__heading {
	margin: 18px 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .9px;
	text-transform: uppercase;
	color: var(--wmtb-fg-muted);
}

.wmtb-flyout__section:first-child .wmtb-flyout__heading {
	margin-top: 12px;
}

/* search shortcut */
.wmtb-flyout__search {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid var(--wmtb-border);
	border-radius: 14px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg-muted);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease;
}

.wmtb-flyout__search:hover {
	border-color: var(--wmtb-accent);
	color: var(--wmtb-fg);
}

.wmtb-flyout__search .wmtb-ico {
	width: 18px;
	height: 18px;
}

/* menu */
.wmtb-menu,
.wmtb-menu__sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wmtb-menu__item {
	position: relative;
	border-bottom: 1px solid color-mix(in srgb, var(--wmtb-border) 60%, transparent);
}

.wmtb-menu__item:last-child {
	border-bottom: 0;
}

.wmtb-menu__link {
	display: block;
	padding: 13px 34px 13px 4px;
	color: var(--wmtb-fg);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
	line-height: 1.35;
}

[dir="rtl"] .wmtb-menu__link {
	padding: 13px 4px 13px 34px;
}

.wmtb-menu__item.is-current > .wmtb-menu__link {
	color: var(--wmtb-accent);
	font-weight: 700;
}

.wmtb-menu__toggle {
	position: absolute;
	top: 6px;
	inset-inline-end: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 10px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg-muted);
	cursor: pointer;
	transition: transform .3s var(--wmtb-ease), background .2s ease;
}

.wmtb-menu__toggle .wmtb-ico {
	width: 16px;
	height: 16px;
}

.wmtb-menu__item.is-expanded > .wmtb-menu__toggle {
	transform: rotate(180deg);
	background: var(--wmtb-active-bg);
	color: var(--wmtb-accent);
}

.wmtb-menu__sub {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding-inline-start: 12px;
	transition: max-height .34s var(--wmtb-ease), opacity .26s ease;
}

.wmtb-menu__item.is-expanded > .wmtb-menu__sub {
	max-height: 480px;
	opacity: 1;
}

.wmtb-menu__sub > .wmtb-menu__item > .wmtb-menu__link {
	font-size: 14px;
	font-weight: 400;
	color: var(--wmtb-fg-muted);
	padding-block: 10px;
}

.wmtb-menu__sub .wmtb-menu__sub {
	padding-inline-start: 10px;
}

/* categories */
.wmtb-cats {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.wmtb-cats a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 11px 12px;
	border-radius: 13px;
	background: var(--wmtb-field);
	border: 1px solid transparent;
	color: var(--wmtb-fg);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: border-color .2s ease, transform .2s var(--wmtb-ease);
}

.wmtb-cats a:active {
	transform: scale(.97);
	border-color: var(--wmtb-accent);
}

.wmtb-cats span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wmtb-cats em {
	flex: 0 0 auto;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: var(--wmtb-fg-muted);
	background: var(--wmtb-sheet, #fff);
	padding: 2px 7px;
	border-radius: 999px;
}

/* account block */
.wmtb-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.wmtb-links a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 12px;
	border-radius: 12px;
	color: var(--wmtb-fg);
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none !important;
	transition: background .2s ease;
}

.wmtb-links a:hover,
.wmtb-links a:active {
	background: var(--wmtb-field);
}

.wmtb-links a.wmtb-danger {
	color: #ff4d5e;
}

.wmtb-user {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 12px;
	margin-bottom: 6px;
	border-radius: 14px;
	background: var(--wmtb-field);
}

.wmtb-user__avatar img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: block;
}

.wmtb-user__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.wmtb-user__meta strong {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--wmtb-fg);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wmtb-user__meta small {
	font-size: 12px;
	color: var(--wmtb-fg-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* admin grid */
.wmtb-admin-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.wmtb-admin-grid a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 14px 6px;
	border-radius: 14px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: transform .2s var(--wmtb-ease), background .2s ease;
}

.wmtb-admin-grid a:active {
	transform: scale(.95);
	background: var(--wmtb-active-bg);
}

.wmtb-admin-grid .wmtb-ico {
	width: 20px;
	height: 20px;
	color: var(--wmtb-accent);
}

/* theme switch */
.wmtb-theme-switch {
	display: inline-flex;
	padding: 3px;
	gap: 2px;
	border-radius: 999px;
	background: var(--wmtb-field);
}

.wmtb-theme-switch button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 30px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--wmtb-fg-muted);
	cursor: pointer;
	transition: background .22s ease, color .22s ease;
}

.wmtb-theme-switch button .wmtb-ico {
	width: 16px;
	height: 16px;
}

.wmtb-theme-switch button.is-active {
	background: var(--wmtb-surface-solid);
	color: var(--wmtb-accent);
	box-shadow: 0 1px 6px rgba(10, 12, 24, .18);
}

/* icon button (shared) */
.wmtb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	cursor: pointer;
	transition: background .2s ease, transform .2s var(--wmtb-ease);
}

.wmtb-icon-btn:active {
	transform: scale(.92);
}

.wmtb-icon-btn .wmtb-ico {
	width: 18px;
	height: 18px;
}

/* ==========================================================================
   8. Cart bottom sheet
   ========================================================================== */

.wmtb-sheet {
	position: fixed;
	inset-inline: 0;
	bottom: var(--wmtb-total, 62px);
	z-index: calc(var(--wmtb-z, 9999) + 2);
	display: flex;
	flex-direction: column;
	max-height: min(76vh, 620px);
	background: var(--wmtb-sheet, var(--wmtb-surface-solid));
	color: var(--wmtb-fg);
	border-radius: calc(var(--wmtb-radius) + 4px) calc(var(--wmtb-radius) + 4px) 0 0;
	box-shadow: 0 -18px 48px rgba(8, 10, 20, .28);
	transform: translateY(calc(100% + var(--wmtb-gap)));
	opacity: 0;
	visibility: hidden;
	transition: transform .42s var(--wmtb-ease), opacity .28s ease, visibility .42s;
	overflow: hidden;
}

.wmtb-sheet.is-open {
	transform: translateY(0);
	opacity: 1;
	visibility: visible;
}

.wmtb-sheet__foot[hidden] {
	display: none !important;
}

.wmtb-sheet__grab {
	width: 40px;
	height: 4px;
	margin: 9px auto 0;
	border-radius: 999px;
	background: var(--wmtb-border);
	flex: 0 0 auto;
}

.wmtb-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 16px 10px;
	flex: 0 0 auto;
}

.wmtb-sheet__head h2 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.2px;
	color: var(--wmtb-fg);
}

.wmtb-sheet__body {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 4px 16px 12px;
}

.wmtb-sheet__foot {
	flex: 0 0 auto;
	padding: 12px 16px calc(12px + (var(--wmtb-sab) * var(--wmtb-safe) * .3));
	border-top: 1px solid var(--wmtb-border);
	background: color-mix(in srgb, var(--wmtb-sheet, #fff) 92%, transparent);
}

/* free-shipping nudge */
.wmtb-progress {
	margin: 0 0 12px;
}

.wmtb-progress__label {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--wmtb-fg-muted);
	margin-bottom: 6px;
}

.wmtb-progress__label b {
	color: #12b886;
}

.wmtb-progress__label span,
.wmtb-progress__label b,
.wmtb-line__price,
.wmtb-result__meta,
.wmtb-total-row b {
	direction: ltr;
	unicode-bidi: isolate;
}

.wmtb-progress__track {
	height: 6px;
	border-radius: 999px;
	background: var(--wmtb-field);
	overflow: hidden;
}

.wmtb-progress__fill {
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--wmtb-accent), #12b886);
	transition: width .5s var(--wmtb-ease);
}

/* line items */
.wmtb-lines {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wmtb-line {
	display: flex;
	gap: 12px;
	padding: 10px;
	border-radius: 15px;
	background: var(--wmtb-field);
	animation: wmtb-line-in .3s var(--wmtb-ease) both;
}

@keyframes wmtb-line-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.wmtb-line__img {
	width: 62px;
	height: 62px;
	flex: 0 0 auto;
	border-radius: 11px;
	object-fit: cover;
	background: var(--wmtb-surface-solid);
}

.wmtb-line__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wmtb-line__name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--wmtb-fg);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-decoration: none !important;
}

.wmtb-line__meta {
	font-size: 11.5px;
	color: var(--wmtb-fg-muted);
	line-height: 1.4;
}

.wmtb-line__meta .wc-item-meta {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 11.5px;
}

.wmtb-line__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
}

.wmtb-line__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--wmtb-accent);
	white-space: nowrap;
}

.wmtb-line__price del {
	color: var(--wmtb-fg-muted);
	font-weight: 500;
	font-size: 12px;
	opacity: .8;
}

/* stepper */
.wmtb-stepper {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 2px;
	border-radius: 999px;
	background: var(--wmtb-surface-solid);
	border: 1px solid var(--wmtb-border);
}

.wmtb-stepper button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wmtb-fg);
	cursor: pointer;
	transition: background .18s ease;
}

.wmtb-stepper button:active {
	background: var(--wmtb-active-bg);
}

.wmtb-stepper button .wmtb-ico {
	width: 14px;
	height: 14px;
}

.wmtb-stepper output {
	min-width: 22px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--wmtb-fg);
}

.wmtb-line__remove {
	border: 0;
	background: transparent;
	color: var(--wmtb-fg-muted);
	cursor: pointer;
	padding: 4px;
	border-radius: 8px;
	display: flex;
}

.wmtb-line__remove:hover {
	color: #ff4d5e;
}

.wmtb-line__remove .wmtb-ico {
	width: 15px;
	height: 15px;
}

/* totals + CTA */
.wmtb-total-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	font-size: 14px;
	color: var(--wmtb-fg-muted);
}

.wmtb-total-row b {
	font-size: 19px;
	font-weight: 800;
	color: var(--wmtb-fg);
	letter-spacing: -.3px;
}

.wmtb-cta {
	display: flex;
	gap: 8px;
}

.wmtb-btn-primary,
.wmtb-btn-ghost {
	flex: 1 1 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 15px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .18s var(--wmtb-ease), filter .2s ease, background .2s ease;
	border: 0;
}

.wmtb-btn-primary {
	background: linear-gradient(135deg, var(--wmtb-accent), var(--wmtb-accent-2, var(--wmtb-accent)));
	color: #fff;
	box-shadow: 0 8px 20px rgba(var(--wmtb-accent-rgb), .34);
}

.wmtb-btn-primary:active {
	transform: scale(.975);
	filter: brightness(1.06);
}

.wmtb-btn-ghost {
	flex: 0 0 auto;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	border: 1px solid var(--wmtb-border);
}

.wmtb-btn-ghost:active {
	transform: scale(.975);
}

/* empty state */
.wmtb-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 46px 20px 54px;
	text-align: center;
}

.wmtb-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: var(--wmtb-field);
	color: var(--wmtb-fg-muted);
}

.wmtb-empty__icon .wmtb-ico {
	width: 30px;
	height: 30px;
}

.wmtb-empty p {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--wmtb-fg);
}

.wmtb-empty small {
	font-size: 12.5px;
	color: var(--wmtb-fg-muted);
}

.wmtb-empty a {
	margin-top: 6px;
}

/* skeleton */
.wmtb-skeleton {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 6px 0 14px;
}

.wmtb-skeleton span {
	display: block;
	height: 76px;
	border-radius: 15px;
	background: linear-gradient(100deg, var(--wmtb-field) 30%, color-mix(in srgb, var(--wmtb-field) 55%, var(--wmtb-surface-solid)) 50%, var(--wmtb-field) 70%);
	background-size: 220% 100%;
	animation: wmtb-shimmer 1.25s linear infinite;
}

.wmtb-skeleton span:nth-child(2) { opacity: .7; }
.wmtb-skeleton span:nth-child(3) { opacity: .45; }

@keyframes wmtb-shimmer {
	from { background-position: 180% 0; }
	to   { background-position: -80% 0; }
}

/* ==========================================================================
   9. Search overlay
   ========================================================================== */

.wmtb-search {
	position: fixed;
	inset: 0;
	z-index: calc(var(--wmtb-z, 9999) + 4);
	display: flex;
	flex-direction: column;
	background: var(--wmtb-surface-solid);
	color: var(--wmtb-fg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(.99);
	transition: opacity .26s ease, transform .32s var(--wmtb-ease), visibility .3s;
	padding-top: calc(var(--wmtb-sat) * var(--wmtb-safe));
}

.wmtb-search.is-open {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.wmtb-search__bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--wmtb-border);
	flex: 0 0 auto;
}

.wmtb-search__bar input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wmtb-border);
	border-radius: 14px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	font: inherit;
	font-size: 15px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.wmtb-search__bar input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.wmtb-search__bar input[type="search"]:focus {
	border-color: var(--wmtb-accent);
	box-shadow: 0 0 0 3px rgba(var(--wmtb-accent-rgb), .16);
}

.wmtb-search__results {
	flex: 1 1 auto;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 12px 16px calc(24px + var(--wmtb-total));
}

.wmtb-search__heading {
	margin: 6px 0 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .9px;
	text-transform: uppercase;
	color: var(--wmtb-fg-muted);
}

.wmtb-recent {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.wmtb-recent button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 13px;
	border: 1px solid var(--wmtb-border);
	border-radius: 999px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
	transition: border-color .2s ease, transform .18s var(--wmtb-ease);
}

.wmtb-recent button:active {
	transform: scale(.96);
	border-color: var(--wmtb-accent);
}

.wmtb-recent .wmtb-ico {
	width: 13px;
	height: 13px;
	color: var(--wmtb-fg-muted);
}

.wmtb-results {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.wmtb-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px;
	border-radius: 15px;
	text-decoration: none !important;
	color: var(--wmtb-fg);
	transition: background .2s ease, transform .18s var(--wmtb-ease);
	animation: wmtb-line-in .28s var(--wmtb-ease) both;
}

.wmtb-result:active {
	background: var(--wmtb-field);
	transform: scale(.99);
}

.wmtb-result img {
	width: 54px;
	height: 54px;
	flex: 0 0 auto;
	border-radius: 11px;
	object-fit: cover;
	background: var(--wmtb-field);
}

.wmtb-result__body {
	flex: 1 1 auto;
	min-width: 0;
}

.wmtb-result__name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.wmtb-result__meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 3px;
	font-size: 13px;
	font-weight: 700;
	color: var(--wmtb-accent);
}

.wmtb-result__meta del {
	color: var(--wmtb-fg-muted);
	font-weight: 500;
	font-size: 12px;
}

.wmtb-result__meta .out {
	color: #ff4d5e;
	font-weight: 600;
	font-size: 11.5px;
}

.wmtb-result__go {
	flex: 0 0 auto;
	color: var(--wmtb-fg-muted);
}

.wmtb-result__go .wmtb-ico {
	width: 17px;
	height: 17px;
}

[dir="rtl"] .wmtb-result__go .wmtb-ico,
[dir="rtl"] .wmtb-search__more .wmtb-ico {
	transform: scaleX(-1);
}

.wmtb-search__more {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding: 14px;
	border: 1px dashed var(--wmtb-border);
	border-radius: 15px;
	background: transparent;
	color: var(--wmtb-accent);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.wmtb-search__state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 52px 20px;
	text-align: center;
	color: var(--wmtb-fg-muted);
	font-size: 13.5px;
}

.wmtb-search__state .wmtb-ico {
	width: 30px;
	height: 30px;
	opacity: .6;
}

.wmtb-spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--wmtb-border);
	border-top-color: var(--wmtb-accent);
	animation: wmtb-spin .7s linear infinite;
}

@keyframes wmtb-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   10. Pull to refresh
   ========================================================================== */

.wmtb-ptr {
	position: fixed;
	top: calc(-56px + (var(--wmtb-sat) * var(--wmtb-safe)));
	inset-inline: 0;
	z-index: calc(var(--wmtb-z, 9999) + 3);
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	pointer-events: none;
	transition: transform .3s var(--wmtb-ease), opacity .25s ease;
	opacity: 0;
}

.wmtb-ptr.is-visible {
	opacity: 1;
}

.wmtb-ptr__pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 15px;
	border-radius: 999px;
	background: var(--wmtb-surface-solid);
	box-shadow: 0 6px 22px rgba(10, 12, 24, .2);
	border: 1px solid var(--wmtb-border);
	color: var(--wmtb-fg);
	font-size: 12.5px;
	font-weight: 600;
}

.wmtb-ptr__icon {
	display: flex;
	transition: transform .25s var(--wmtb-ease);
}

.wmtb-ptr__icon .wmtb-ico {
	width: 16px;
	height: 16px;
	color: var(--wmtb-accent);
}

.wmtb-ptr.is-ready .wmtb-ptr__icon {
	transform: rotate(180deg);
}

.wmtb-ptr.is-loading .wmtb-ptr__icon {
	animation: wmtb-spin .8s linear infinite;
}

/* ==========================================================================
   11. Page transition
   ========================================================================== */

.wmtb-trans-fade {
	animation: wmtb-page-fade .3s ease both;
}

.wmtb-trans-slide {
	animation: wmtb-page-slide .32s var(--wmtb-ease) both;
}

@keyframes wmtb-page-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes wmtb-page-slide {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.wmtb-leaving {
	opacity: .35;
	transform: scale(.995);
	transition: opacity .18s ease, transform .18s ease;
	pointer-events: none;
}

/* ==========================================================================
   12. Small-screen tuning + accessibility
   ========================================================================== */

@media (max-width: 359px) {
	.wmtb-tab__label {
		font-size: calc(var(--wmtb-label) - 1px);
	}

	.wmtb-cats {
		grid-template-columns: 1fr;
	}
}

@media (max-height: 480px) {
	.wmtb-flyout,
	.wmtb-sheet {
		max-height: 88vh;
	}
}

/* Landscape phones: shrink the bar a little. */
@media (max-height: 460px) and (orientation: landscape) {
	.wmtb-on {
		--wmtb-height: calc(var(--wmtb-height) * .82);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wmtb-bar,
	.wmtb-flyout,
	.wmtb-sheet,
	.wmtb-search,
	.wmtb-scrim,
	.wmtb-ptr,
	.wmtb-tab,
	.wmtb-tab__icon,
	.wmtb-tab__icon::before,
	.wmtb-badge,
	.wmtb-menu__sub,
	.wmtb-line,
	.wmtb-result {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}
}

@media (forced-colors: active) {
	.wmtb-bar__inner,
	.wmtb-flyout,
	.wmtb-sheet {
		border: 1px solid CanvasText;
	}

	.wmtb-tab.is-active {
		forced-color-adjust: none;
	}
}

/* Make sure the theme's own bottom-fixed elements don't sit under the bar. */
.wmtb-on .woocommerce-store-notice,
.wmtb-on .demo_store {
	bottom: var(--wmtb-total) !important;
}

/* ==========================================================================
   13. Theme isolation layer
   --------------------------------------------------------------------------
   Many themes style bare `button` / `a` / `input` elements with high-specificity
   selectors such as `button:not(:hover):not(:active):not(.has-background)`
   (Twenty Twenty-One) which outrank single-class selectors. This last layer
   re-asserts the plugin's own visuals with !important so the tab bar always
   looks like itself, no matter how aggressive the theme is.
   ========================================================================== */

:where(.wmtb-bar button,
.wmtb-bar a,
.wmtb-flyout button,
.wmtb-flyout a,
.wmtb-sheet button,
.wmtb-sheet a,
.wmtb-search button,
.wmtb-search a,
.wmtb-search input) {
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-family: inherit !important;
	margin: 0 !important;
	outline-offset: -3px !important;
}

:where(.wmtb-bar a,
.wmtb-flyout a,
.wmtb-sheet a,
.wmtb-search a) {
	background: transparent !important;
	font-weight: inherit !important;
}

.wmtb-tab {
	background: transparent !important;
	color: var(--wmtb-fg-muted) !important;
	padding: 6px 4px 4px !important;
	border-radius: calc(var(--wmtb-radius-sm) + 4px) !important;
}

.wmtb-tab.is-active {
	color: var(--wmtb-active-fg, var(--wmtb-accent)) !important;
}

.wmtb-icon-btn {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	width: 36px !important;
	height: 36px !important;
	padding: 0 !important;
	border-radius: 12px !important;
}

.wmtb-menu__toggle {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg-muted) !important;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	border-radius: 10px !important;
}

.wmtb-theme-switch button {
	background: transparent !important;
	color: var(--wmtb-fg-muted) !important;
	width: 32px !important;
	height: 30px !important;
	padding: 0 !important;
}

.wmtb-theme-switch button.is-active {
	background: var(--wmtb-surface-solid) !important;
	color: var(--wmtb-accent) !important;
}

.wmtb-flyout__search {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg-muted) !important;
	border: 1px solid var(--wmtb-border) !important;
	padding: 12px 14px !important;
	border-radius: 14px !important;
}

.wmtb-stepper button {
	background: transparent !important;
	color: var(--wmtb-fg) !important;
	width: 26px !important;
	height: 26px !important;
	padding: 0 !important;
	border-radius: 50% !important;
}

.wmtb-line__remove {
	background: transparent !important;
	color: var(--wmtb-fg-muted) !important;
	padding: 4px !important;
}

.wmtb-recent button {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	border: 1px solid var(--wmtb-border) !important;
	padding: 8px 13px !important;
	border-radius: 999px !important;
}

.wmtb-search__more {
	background: transparent !important;
	color: var(--wmtb-accent) !important;
	border: 1px dashed var(--wmtb-border) !important;
	padding: 14px !important;
	border-radius: 15px !important;
}

.wmtb-btn-primary {
	background: linear-gradient(135deg, var(--wmtb-accent), var(--wmtb-accent-2, var(--wmtb-accent))) !important;
	color: #fff !important;
	padding: 0 18px !important;
	min-height: 48px !important;
	border-radius: 15px !important;
	font-weight: 700 !important;
}

.wmtb-btn-ghost {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	border: 1px solid var(--wmtb-border) !important;
	padding: 0 18px !important;
	min-height: 48px !important;
	border-radius: 15px !important;
	font-weight: 700 !important;
}

.wmtb-search__bar input[type="search"] {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	border: 1px solid var(--wmtb-border) !important;
	padding: 0 14px !important;
	height: 44px !important;
	border-radius: 14px !important;
}

.wmtb-menu__link,
.wmtb-links a,
.wmtb-line__name,
.wmtb-result__name {
	color: var(--wmtb-fg) !important;
	text-decoration: none !important;
}

.wmtb-links a.wmtb-danger {
	color: #ff4d5e !important;
}

.wmtb-cats a {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	padding: 11px 12px !important;
	border-radius: 13px !important;
}

.wmtb-admin-grid a {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	padding: 14px 6px !important;
	border-radius: 14px !important;
}

.wmtb-result {
	background: transparent !important;
	color: var(--wmtb-fg) !important;
	padding: 9px !important;
	border-radius: 15px !important;
}

.wmtb-user {
	background: var(--wmtb-field) !important;
	padding: 12px !important;
	border-radius: 14px !important;
}

/* ==========================================================================
   14. Category tree (collapsible) + filter
   ========================================================================== */

.wmtb-cattree__search {
	position: sticky;
	top: 0;
	z-index: 3;
	width: 100%;
	height: 40px;
	margin: 10px 0 4px;
	padding: 0 13px;
	border: 1px solid var(--wmtb-border);
	border-radius: 12px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg);
	font: inherit;
	font-size: 13.5px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.wmtb-cattree__search:focus {
	border-color: var(--wmtb-accent);
	box-shadow: 0 0 0 3px rgba(var(--wmtb-accent-rgb), .16);
}

.wmtb-cattree,
.wmtb-ctnode__kids {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wmtb-ctnode__kids {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding-inline-start: 14px;
	border-inline-start: 1px solid color-mix(in srgb, var(--wmtb-border) 70%, transparent);
	margin-inline-start: 15px;
	transition: max-height .34s var(--wmtb-ease), opacity .24s ease;
}

.wmtb-ctnode.is-expanded > .wmtb-ctnode__kids {
	max-height: 640px;
	opacity: 1;
}

.wmtb-ctnode__row {
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 1px solid color-mix(in srgb, var(--wmtb-border) 55%, transparent);
}

.wmtb-ctnode__kids .wmtb-ctnode__row {
	border-bottom: 0;
}

.wmtb-ctnode__link {
	flex: 1 1 auto;
	min-width: 0;
	padding: 11px 4px;
	color: var(--wmtb-fg);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wmtb-ctnode__kids .wmtb-ctnode__link {
	font-size: 13px;
	font-weight: 400;
	color: var(--wmtb-fg-muted);
	padding-block: 9px;
}

.wmtb-ctnode.is-current > .wmtb-ctnode__row > .wmtb-ctnode__link {
	color: var(--wmtb-accent);
	font-weight: 700;
}

.wmtb-ctnode__count {
	flex: 0 0 auto;
	font-style: normal;
	font-size: 11px;
	font-weight: 700;
	color: var(--wmtb-fg-muted);
	background: var(--wmtb-field);
	padding: 2px 8px;
	border-radius: 999px;
	font-variant-numeric: tabular-nums;
}

.wmtb-ctnode__toggle {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 9px;
	background: var(--wmtb-field);
	color: var(--wmtb-fg-muted);
	cursor: pointer;
	transition: transform .3s var(--wmtb-ease), background .2s ease, color .2s ease;
}

.wmtb-ctnode__toggle .wmtb-ico {
	width: 15px;
	height: 15px;
}

.wmtb-ctnode.is-expanded > .wmtb-ctnode__row > .wmtb-ctnode__toggle {
	transform: rotate(180deg);
	background: var(--wmtb-active-bg);
	color: var(--wmtb-accent);
}

.wmtb-ctnode[data-wmtb-cathide="1"] {
	display: none;
}

.wmtb-cattree__empty {
	padding: 14px 4px;
	color: var(--wmtb-fg-muted);
	font-size: 13px;
	text-align: center;
}

.wmtb-cats__all {
	display: flex;
	width: 100%;
	font: inherit;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 12px;
	padding: 11px 14px;
	border-radius: 13px;
	border: 1px dashed var(--wmtb-border);
	color: var(--wmtb-accent);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s ease;
}

.wmtb-cats__all:active {
	background: var(--wmtb-active-bg);
}

.wmtb-cats__all .wmtb-ico {
	width: 15px;
	height: 15px;
}

[dir="rtl"] .wmtb-cats__all .wmtb-ico {
	transform: scaleX(-1);
}

.wmtb-cats__all.is-loading {
	opacity: .65;
	pointer-events: none;
}

.wmtb-cats__all.is-loading .wmtb-ico {
	display: none;
}

.wmtb-cats__all.is-loading::after {
	content: "";
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid currentColor;
	border-top-color: transparent;
	animation: wmtb-spin .7s linear infinite;
}

/* Category tree isolation (themes style bare buttons/inputs aggressively). */
.wmtb-ctnode__toggle {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg-muted) !important;
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	border-radius: 9px !important;
}

.wmtb-ctnode.is-expanded > .wmtb-ctnode__row > .wmtb-ctnode__toggle {
	background: var(--wmtb-active-bg) !important;
	color: var(--wmtb-accent) !important;
}

.wmtb-cattree__search {
	background: var(--wmtb-field) !important;
	color: var(--wmtb-fg) !important;
	border: 1px solid var(--wmtb-border) !important;
	padding: 0 13px !important;
	height: 40px !important;
	border-radius: 12px !important;
	font-size: 13.5px !important;
}

.wmtb-ctnode__link {
	background: transparent !important;
	color: var(--wmtb-fg) !important;
	padding: 11px 4px !important;
}

.wmtb-ctnode__kids .wmtb-ctnode__link {
	color: var(--wmtb-fg-muted) !important;
	padding-block: 9px !important;
}

.wmtb-ctnode.is-current > .wmtb-ctnode__row > .wmtb-ctnode__link {
	color: var(--wmtb-accent) !important;
}


/* ==========================================================================
   16. Horizontal overflow guard + graceful badge removal
   ========================================================================== */

/* A full-bleed hero (100vw) must never create horizontal panning – on RTL
   mobile pages that panning made the fixed bottom bar look "shifted" away
   from the device edge. The class is mirrored onto <html> by an inline head
   script (and again by wmtb.js); the body selector is a belt-and-braces
   fallback – when <html> has visible overflow the UA propagates the body's
   overflow to the viewport, so either selector kills the pan. */
html.wmtb-on,
body.wmtb-on {
	overflow-x: clip;
}

@supports not (overflow-x: clip) {
	html.wmtb-on,
	body.wmtb-on {
		overflow-x: hidden;
	}
}

.wmtb-badge.is-out {
	animation: wmtb-badge-out .26s ease both;
}

@keyframes wmtb-badge-out {
	from { opacity: 1; transform: scale(1); }
	to   { opacity: 0; transform: scale(.4); }
}

/* Bigger, more reliable tap targets for the category tree toggles. */
.wmtb-ctnode__toggle {
	width: 34px !important;
	height: 34px !important;
	touch-action: manipulation;
	-webkit-touch-callout: none;
}

/* ==========================================================================
   17. Seamless AJAX updates (cart diff, soft refresh)
   ========================================================================== */

/* Rows added during a background diff slide in subtly; rows patched in place
   never re-run their entrance animation. */
.wmtb-line.is-quiet {
	animation: none !important;
}

.wmtb-line.is-gone {
	opacity: 0 !important;
	transform: scale(.97);
	overflow: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease,
		max-height .28s ease .03s, margin-bottom .28s ease .03s, padding-block .28s ease .03s;
}

.wmtb-line.is-updated {
	animation: wmtb-line-tick .55s ease;
}

@keyframes wmtb-line-tick {
	0%   { background-color: rgba(var(--wmtb-accent-rgb, 109, 94, 252), .16); }
	100% { background-color: transparent; }
}

/* Subtotal crossfade instead of a hard text swap. */
.wmtb-total-row b.is-tick {
	animation: wmtb-total-tick .45s var(--wmtb-ease, ease);
}

@keyframes wmtb-total-tick {
	0%   { opacity: .2; transform: translateY(4px); }
	100% { opacity: 1; transform: none; }
}

/* Soft pull-to-refresh: the outgoing main region dims for a heartbeat, the
   incoming one fades in – the bar, drawers and scroll never move. */
html.wmtb-softswapping main,
html.wmtb-softswapping #main,
html.wmtb-softswapping #content,
html.wmtb-softswapping .site-main,
html.wmtb-softswapping .site-content,
html.wmtb-softswapping [role="main"] {
	opacity: .35;
	transition: opacity .15s ease;
}

html.wmtb-softswapped main,
html.wmtb-softswapped #main,
html.wmtb-softswapped #content,
html.wmtb-softswapped .site-main,
html.wmtb-softswapped .site-content,
html.wmtb-softswapped [role="main"] {
	animation: wmtb-soft-in .3s ease both;
}

@keyframes wmtb-soft-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.wmtb-line,
	.wmtb-line.is-new,
	.wmtb-line.is-updated,
	.wmtb-total-row b.is-tick,
	html.wmtb-softswapped main {
		animation: none !important;
	}

	.wmtb-line.is-gone {
		transition: opacity .12s ease !important;
	}
}

/* ==========================================================================
   20. Android reliability: pinned bar, visual-viewport tracking and the
       bottom-collision guard
   --------------------------------------------------------------------------
   Two guarantees live here:

   1. NOTHING may sit on top of the tab bar – every foreign fixed/sticky
      element that overlaps the bar's band is lifted above it by the runtime
      (`.wmtb-lifted`), and our own stack keeps the highest z-index.
   2. The tab bar may never slip UNDER another button, widget or frame – the
      whole WMTB stack is pinned with `!important` and `--wmtb-z` is raised at
      runtime when a foreign element out-ranks us.
   ========================================================================== */

html.wmtb-on {
	--wmtb-lift: 0px;
	--wmtb-vvb: 0px;
}

/* --- pinned bar (optional, Android) -------------------------------------- */

.wmtb-bar.wmtb-bar--pinned {
	bottom: calc(var(--wmtb-offset, 0px) + var(--wmtb-vvb, 0px)) !important;
	transition: bottom .16s linear, box-shadow .3s ease !important;
	will-change: bottom;
}

.wmtb-bar.wmtb-floating.wmtb-bar--pinned {
	bottom: calc(var(--wmtb-offset, 0px) + var(--wmtb-gap) + (var(--wmtb-sab) * var(--wmtb-safe)) + var(--wmtb-vvb, 0px)) !important;
}

/* A pinned bar ignores hide-on-scroll completely – that is the point of the
   setting, and it also removes the "the bar vanished and never came back"
   class of Android bugs. */
.wmtb-bar.wmtb-bar--pinned.is-hidden {
	transform: none !important;
	opacity: 1 !important;
	pointer-events: auto !important;
}

/* On-screen keyboard open: sit right above it with a stronger shadow so the
   bar reads as "floating over the keyboard". */
.wmtb-bar.wmtb-bar--pinned.wmtb-bar--kb .wmtb-bar__inner {
	box-shadow: 0 -14px 34px rgba(8, 10, 20, .26);
}

/* --- lifted foreign widgets ---------------------------------------------- */

.wmtb-lifted {
	transition: bottom .22s var(--wmtb-ease, cubic-bezier(.32, .72, 0, 1)),
		transform .22s var(--wmtb-ease, cubic-bezier(.32, .72, 0, 1)) !important;
}

/* Anything the guard could not move still must not paint over the bar. */
html.wmtb-on [data-wmtb-lift] {
	z-index: calc(var(--wmtb-z, 9999) - 1);
}

/* --- safe stacking (advanced.z_safe) -------------------------------------- */

html.wmtb-on .wmtb-bar,
body.wmtb-on .wmtb-bar {
	isolation: isolate;
}

/* Our own panels must stay above the bar even after `--wmtb-z` is raised. */
html.wmtb-on .wmtb-flyout.is-open,
html.wmtb-on .wmtb-sheet.is-open,
html.wmtb-on .wmtb-search.is-open {
	z-index: calc(var(--wmtb-z, 9999) + 2) !important;
}

/* --- reduced motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wmtb-bar.wmtb-bar--pinned,
	.wmtb-lifted {
		transition: none !important;
	}
}

/* ==========================================================================
   Floating cart chip – "budget bubble" (1.7.2)
   Fixed to the TOP-LEFT of the screen on phones while the cart has items.
   Android shows the item count, other mobiles the cart total (JS decides per
   real device, so a cached page can not serve the wrong variant).
   ========================================================================== */

.wmtb-cart-chip {
	--wmtb-chip-top: calc(env(safe-area-inset-top, 0px) + 10px);
	position: fixed;
	top: var(--wmtb-chip-top);
	left: 10px;
	z-index: calc(var(--wmtb-z, 9999) - 2);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	max-width: min(58vw, 220px);
	padding: 7px 13px 7px 10px;
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
	border-radius: 999px;
	background: var(--wmtb-surface-solid, #fff);
	color: var(--wmtb-fg, #14161f);
	font-family: var(--wmtb-font, inherit);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 6px 20px rgba(10, 14, 30, .18);
	cursor: pointer;
	opacity: 0;
	transform: translateY(-10px) scale(.92);
	pointer-events: none;
	transition: opacity .22s ease, transform .22s cubic-bezier(.34, 1.4, .64, 1);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.wmtb-cart-chip[hidden] {
	display: none;
}

.wmtb-cart-chip.is-visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	pointer-events: auto;
}

.wmtb-cart-chip__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: var(--wmtb-accent, #6d5efc);
	color: #fff;
}

.wmtb-cart-chip__ico .wmtb-ico {
	width: 13px;
	height: 13px;
}

.wmtb-cart-chip__text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	direction: ltr; /* totals stay readable (1.2K) inside RTL layouts */
}

.wmtb-cart-chip:active {
	transform: scale(.94);
}

/* Count bump, same language as the tab badges. */
@keyframes wmtb-chip-bump {
	0% { transform: scale(1); }
	35% { transform: scale(1.14); }
	100% { transform: scale(1); }
}

.wmtb-cart-chip.is-bump {
	animation: wmtb-chip-bump .34s ease;
}

/* Below the WP admin bar when it is visible on phones. */
body.admin-bar .wmtb-cart-chip {
	--wmtb-chip-top: calc(env(safe-area-inset-top, 0px) + 56px);
}

@media (max-width: 782px) {
	body.admin-bar .wmtb-cart-chip {
		--wmtb-chip-top: calc(env(safe-area-inset-top, 0px) + 56px);
	}
}

/* Any open panel (menu / drawer / search / filter) dims the whole screen –
   the chip must not float above the scrim. */
html.wmtb-locked .wmtb-cart-chip {
	opacity: 0;
	transform: translateY(-10px) scale(.92);
	pointer-events: none;
}

/* Desktop never shows it – the desktop bar already carries the cart. */
@media (min-width: 783px) {
	.wmtb-cart-chip {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wmtb-cart-chip,
	.wmtb-cart-chip.is-bump {
		transition: none;
		animation: none;
	}
}
