/*!
 * WPMobileTabBar – Smart Product Filtering & Theme Replacement Styles
 */

.wmtb-fbar {
	font-family: var(--wmtb-font, inherit);
	margin-block: 0 20px;
	padding: 12px 14px;
	border-radius: var(--wmtb-radius-sm, 14px);
	background: var(--wmtb-surface, rgba(255, 255, 255, .9));
	-webkit-backdrop-filter: blur(var(--wmtb-blur, 14px));
	backdrop-filter: blur(var(--wmtb-blur, 14px));
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
	box-shadow: 0 4px 18px rgba(16, 20, 40, .05);
	color: var(--wmtb-fg, #14161f);
}

.wmtb-fbar *,
.wmtb-fbar *::before,
.wmtb-fbar *::after,
.wmtb-filter-sheet *,
.wmtb-filter-sheet *::before,
.wmtb-filter-sheet *::after {
	box-sizing: border-box;
}

.wmtb-fbar__row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wmtb-fbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 15px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--wmtb-accent, #6d5efc);
	color: #fff;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
	box-shadow: 0 6px 16px rgba(var(--wmtb-accent-rgb, 109, 94, 252), .28);
}

.wmtb-fbar__btn:hover {
	transform: translateY(-1px);
}

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

.wmtb-fbar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 6px;
	border-radius: 999px;
	background: #fff;
	color: var(--wmtb-accent, #6d5efc);
	font-style: normal;
	font-size: 11.5px;
	font-weight: 800;
}

.wmtb-fbar__pills {
	display: flex;
	align-items: center;
	gap: 7px;
	overflow-x: auto;
	scrollbar-width: none;
	max-width: 100%;
	padding-block: 2px;
}

.wmtb-fbar__pills::-webkit-scrollbar {
	display: none;
}

.wmtb-fpill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	border-radius: 999px;
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .12));
	background: var(--wmtb-field, #f2f3f7);
	color: var(--wmtb-fg, #14161f);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: all .18s ease;
}

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

.wmtb-fpill.is-active {
	background: var(--wmtb-active-bg, rgba(var(--wmtb-accent-rgb, 109, 94, 252), .14));
	border-color: var(--wmtb-accent, #6d5efc);
	color: var(--wmtb-accent, #6d5efc);
}

.wmtb-fbar__spacer {
	flex: 1 1 auto;
}

.wmtb-fbar__sort select {
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .14));
	background: var(--wmtb-field, #f2f3f7);
	color: var(--wmtb-fg, #14161f);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	outline: none;
}

.wmtb-fbar__active {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed var(--wmtb-border, rgba(16, 20, 40, .12));
}

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

.wmtb-fchip {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 11px;
	border-radius: 999px;
	border: 1px solid rgba(var(--wmtb-accent-rgb, 109, 94, 252), .3);
	background: rgba(var(--wmtb-accent-rgb, 109, 94, 252), .1);
	color: var(--wmtb-fg, #14161f);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.wmtb-fchip .wmtb-ico {
	width: 13px;
	height: 13px;
	opacity: .75;
}

.wmtb-fchip--reset {
	border-color: rgba(239, 68, 68, .35);
	background: rgba(239, 68, 68, .1);
	color: #ef4444;
}

.wmtb-filter-sheet {
	position: fixed;
	inset-inline: 0;
	bottom: 0;
	z-index: calc(var(--wmtb-z, 9999) + 5);
	max-height: 86vh;
	max-height: 86dvh;
	background: var(--wmtb-sheet, #ffffff);
	color: var(--wmtb-fg, #14161f);
	font-family: var(--wmtb-font, inherit);
	border-radius: 24px 24px 0 0;
	box-shadow: 0 -14px 44px rgba(10, 12, 24, .24);
	display: flex;
	flex-direction: column;
	transform: translateY(104%);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: transform .34s var(--wmtb-ease, cubic-bezier(.32, .72, 0, 1)), opacity .24s ease, visibility .34s;
}

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

@media (min-width: 783px) {
	.wmtb-filter-sheet {
		top: 0;
		bottom: 0;
		inset-inline-start: 0;
		inset-inline-end: auto;
		width: min(400px, 92vw);
		max-height: 100vh;
		border-radius: 0 22px 22px 0;
		transform: translateX(-104%);
	}
	[dir="rtl"] .wmtb-filter-sheet {
		border-radius: 22px 0 0 22px;
		transform: translateX(104%);
	}
	.wmtb-filter-sheet.is-open,
	[dir="rtl"] .wmtb-filter-sheet.is-open {
		transform: translateX(0);
	}
	.wmtb-filter-sheet .wmtb-sheet__grab {
		display: none;
	}
}

.wmtb-filter-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
}

.wmtb-filter-sheet__title {
	display: flex;
	align-items: center;
	gap: 9px;
}

.wmtb-filter-sheet__title h2 {
	margin: 0;
	font-size: 16.5px;
	font-weight: 800;
	color: inherit;
}

.wmtb-filter-sheet__title .wmtb-ico {
	width: 20px;
	height: 20px;
	color: var(--wmtb-accent, #6d5efc);
}

.wmtb-filter-sheet__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 20px 24px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.wmtb-fsec {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--wmtb-border, rgba(16, 20, 40, .08));
}

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

.wmtb-fsec__head {
	margin: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: inherit;
}

.wmtb-fsec__search {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 10px 14px;
	border-radius: 14px;
	background: var(--wmtb-field, #f2f3f7);
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
}

.wmtb-fsec__search input {
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	width: 100%;
	font-family: inherit;
	font-size: 13.5px;
	outline: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.wmtb-fsec--toggles {
	gap: 12px;
}

.wmtb-ftoggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 600;
}

.wmtb-ftoggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wmtb-ftoggle i {
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: var(--wmtb-border, rgba(16, 20, 40, .2));
	transition: background .2s ease;
}

.wmtb-ftoggle i::after {
	content: "";
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
	transition: transform .2s ease;
}

.wmtb-ftoggle input:checked + i {
	background: var(--wmtb-accent, #6d5efc);
}

.wmtb-ftoggle input:checked + i::after {
	transform: translateX(18px);
}

[dir="rtl"] .wmtb-ftoggle input:checked + i::after {
	transform: translateX(-18px);
}

.wmtb-fprice__inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wmtb-fprice__inputs label {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 7px 10px;
	border-radius: 10px;
	background: var(--wmtb-field, #f2f3f7);
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
	font-size: 11.5px;
	color: var(--wmtb-fg-muted, #71768c);
}

.wmtb-fprice__inputs input {
	width: 100%;
	border: 0 !important;
	background: transparent !important;
	color: var(--wmtb-fg, #14161f) !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	outline: none !important;
	padding: 0 !important;
}

.wmtb-fprice__slider {
	position: relative;
	height: 28px;
	display: flex;
	align-items: center;
}

.wmtb-fprice__track {
	position: absolute;
	inset-inline: 0;
	height: 6px;
	border-radius: 999px;
	background: var(--wmtb-field, #e5e7eb);
}

.wmtb-fprice__slider input[type="range"] {
	position: absolute;
	inset-inline: 0;
	width: 100%;
	margin: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	background: none;
}

.wmtb-fprice__slider input[type="range"]::-webkit-slider-thumb {
	pointer-events: auto;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wmtb-accent, #6d5efc);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
}

.wmtb-fprice__slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--wmtb-accent, #6d5efc);
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
	cursor: pointer;
}

.wmtb-fchips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.wmtb-fcheck {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 11px;
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .12));
	background: var(--wmtb-field, #f2f3f7);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
	transition: all .16s ease;
}

.wmtb-fcheck input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wmtb-fcheck em {
	font-style: normal;
	opacity: .6;
	font-size: 11px;
}

.wmtb-fcheck.is-checked {
	background: var(--wmtb-active-bg, rgba(var(--wmtb-accent-rgb, 109, 94, 252), .15));
	border-color: var(--wmtb-accent, #6d5efc);
	color: var(--wmtb-accent, #6d5efc);
}

.wmtb-fswatch {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, .18);
	display: inline-block;
}

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

.wmtb-frating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px;
	border-radius: 11px;
	border: 1px solid var(--wmtb-border, rgba(16, 20, 40, .12));
	background: var(--wmtb-field, #f2f3f7);
	font-size: 12.5px;
	font-weight: 600;
	cursor: pointer;
}

.wmtb-frating input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wmtb-frating__stars {
	color: #f59e0b;
	letter-spacing: 1px;
}

.wmtb-frating.is-checked {
	border-color: var(--wmtb-accent, #6d5efc);
	background: var(--wmtb-active-bg, rgba(var(--wmtb-accent-rgb, 109, 94, 252), .15));
}

.wmtb-filter-sheet__foot {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--wmtb-border, rgba(16, 20, 40, .1));
	background: var(--wmtb-sheet, #ffffff);
}

.wmtb-filter-sheet__foot button {
	flex: 1;
	padding: 12px 16px;
	border-radius: 14px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	border: 0;
}

.wmtb-filter-fab {
	position: fixed;
	inset-inline-end: 16px;
	bottom: calc(var(--wmtb-height, 62px) + 22px + env(safe-area-inset-bottom, 0px));
	z-index: calc(var(--wmtb-z, 9999) - 2);
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 0;
	background: var(--wmtb-accent, #6d5efc);
	color: #fff;
	font-family: var(--wmtb-font, inherit);
	font-size: 13px;
	font-weight: 700;
	box-shadow: 0 8px 24px rgba(var(--wmtb-accent-rgb, 109, 94, 252), .38);
	cursor: pointer;
}

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

@media (min-width: 783px) {
	.wmtb-filter-fab {
		display: none !important;
	}
}

.wmtb-filtering-busy ul.products,
.wmtb-filtering-busy .products {
	opacity: .42;
	pointer-events: none;
	transition: opacity .2s ease;
}

/* Android: no 300 ms delay, no double-tap zoom, no long-press selection on the
   floating filter button or inside the filter sheet. */
.wmtb-filter-fab,
.wmtb-filter-bar button,
.wmtb-filter-bar a,
.wmtb-filter-sheet__close,
.wmtb-filter-sheet__apply,
.wmtb-filter-chip,
.wmtb-frating label,
.wmtb-fsheet__group summary,
[data-wmtb-filter-open],
[data-wmtb-filter-apply],
[data-wmtb-filter-reset],
[data-wmtb-quick],
[data-wmtb-quick-cat],
[data-wmtb-clear-chip] {
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.wmtb-filter-fab {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}
