.element-mobile-shop-toolbar {
	display: contents;
}

.element-mobile-filter-trigger,
.element-mobile-filter-backdrop,
.element-mobile-filter-sheet__header,
.element-mobile-filter-sheet__actions {
	display: none;
}

@media (max-width: 767.98px) {
	.element-mobile-shop-toolbar {
		display: flex;
		align-items: center;
		gap: 10px;
		width: 100%;
		margin: 4px 0 18px;
		padding: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.element-mobile-shop-toolbar::-webkit-scrollbar {
		display: none;
	}

	.element-mobile-shop-toolbar .woocommerce-result-count {
		display: none !important;
	}

	.element-mobile-shop-toolbar .woocommerce-ordering {
		position: relative;
		flex: 1 0 164px;
		float: none !important;
		width: auto;
		max-width: 210px;
		margin: 0 !important;
	}

	.element-mobile-shop-toolbar .woocommerce-ordering::before {
		position: absolute;
		top: 50%;
		left: 15px;
		z-index: 1;
		content: "⇅";
		font-size: 22px;
		font-weight: 700;
		line-height: 1;
		color: #123b4a;
		transform: translateY(-52%);
		pointer-events: none;
	}

	.element-mobile-shop-toolbar .woocommerce-ordering select {
		width: 100%;
		height: 46px;
		margin: 0;
		padding: 0 34px 0 43px;
		border: 1px solid #d7e2e7;
		border-radius: 23px;
		background: #f3f7f9;
		color: #152a32;
		font-size: 14px;
		font-weight: 600;
		line-height: 44px;
		box-shadow: none;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.element-mobile-filter-trigger {
		position: relative;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		gap: 8px;
		height: 46px;
		min-width: 126px;
		margin: 0;
		padding: 0 16px;
		border: 1px solid #d7e2e7;
		border-radius: 23px;
		background: #f3f7f9;
		color: #152a32;
		font-size: 14px;
		font-weight: 700;
		line-height: 1;
		box-shadow: none;
		transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	}

	.element-mobile-filter-trigger:not([hidden]) {
		display: inline-flex;
	}

	.element-mobile-filter-trigger:active {
		transform: translateY(0);
	}

	.element-mobile-filter-trigger:focus-visible,
	.element-mobile-filter-close:focus-visible,
	.element-mobile-filter-reset:focus-visible,
	.element-mobile-filter-apply:focus-visible {
		outline: 3px solid rgba(0, 174, 239, 0.28);
		outline-offset: 2px;
	}

	.element-mobile-filter-trigger svg {
		width: 20px;
		height: 20px;
		flex: 0 0 20px;
	}

	.element-mobile-filter-count {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 20px;
		height: 20px;
		padding: 0 6px;
		border-radius: 10px;
		background: #00aeea;
		color: #fff;
		font-size: 11px;
		font-weight: 800;
	}

	.element-mobile-filter-count[hidden] {
		display: none;
	}

	.button-filter {
		display: none !important;
	}

	body.element-mobile-filter-open {
		overflow: hidden;
		touch-action: none;
	}

	.element-mobile-filter-backdrop {
		position: fixed;
		inset: 0;
		z-index: 10040;
		width: 100%;
		height: 100%;
		margin: 0;
		padding: 0;
		border: 0;
		background: rgba(14, 27, 34, 0.54);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}

	.element-mobile-filter-backdrop.is-visible {
		display: block;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	#secondary .filter-widget {
		position: fixed !important;
		top: max(12px, env(safe-area-inset-top));
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 10050;
		display: block !important;
		width: 100%;
		max-width: none;
		max-height: calc(100dvh - max(12px, env(safe-area-inset-top)));
		margin: 0 !important;
		padding: 0 16px;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		border: 0;
		border-radius: 18px 18px 0 0;
		background: #fff;
		box-shadow: 0 -16px 48px rgba(14, 39, 50, 0.22);
		transform: translateY(105%);
		visibility: hidden;
		pointer-events: none;
		-webkit-overflow-scrolling: touch;
		transition: transform 0.25s ease, visibility 0.25s ease;
	}

	body.element-mobile-filter-open #secondary .filter-widget {
		transform: translateY(0);
		visibility: visible;
		pointer-events: auto;
	}

	.element-mobile-filter-sheet__header {
		position: sticky;
		top: 0;
		z-index: 4;
		align-items: center;
		justify-content: space-between;
		min-height: 64px;
		margin: 0 -16px 8px;
		padding: 10px 16px;
		border-bottom: 1px solid #e4ebee;
		background: rgba(255, 255, 255, 0.98);
	}

	.element-mobile-filter-sheet__header.is-ready {
		display: flex;
	}

	.element-mobile-filter-sheet__title {
		margin: 0;
		font-size: 22px;
		font-weight: 800;
		line-height: 1.2;
		color: #102a35;
	}

	.element-mobile-filter-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #eef4f6;
		color: #173846;
	}

	.element-mobile-filter-close svg {
		width: 22px;
		height: 22px;
	}

	#secondary .filter-widget .berocket_single_filter_widget {
		width: 100% !important;
		min-width: 0 !important;
		margin: 0;
		padding: 15px 0;
		border-bottom: 1px solid #e8edef;
	}

	#secondary .filter-widget .bapf_sfilter,
	#secondary .filter-widget .bapf_body,
	#secondary .filter-widget .bapf_body ul {
		width: 100%;
		max-width: 100%;
	}

	#secondary .filter-widget .bapf_head h3 {
		margin: 0;
		color: #152a32;
		font-size: 17px;
		font-weight: 750;
		line-height: 1.35;
	}

	#secondary .filter-widget .bapf_body {
		padding-top: 10px;
		color: #263b44;
		font-size: 15px;
	}

	#secondary .filter-widget .bapf_body ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	#secondary .filter-widget .bapf_body li {
		min-width: 0;
		margin: 0;
		padding: 5px 0;
	}

	#secondary .filter-widget .bapf_body label {
		max-width: calc(100% - 28px);
		margin: 0;
		line-height: 1.35;
		word-break: break-word;
	}

	#secondary .filter-widget input[type="text"],
	#secondary .filter-widget input[type="number"],
	#secondary .filter-widget select {
		max-width: 100%;
		min-height: 42px;
		border-color: #cbd8dd;
		border-radius: 8px;
	}

	.element-mobile-filter-sheet__actions {
		position: sticky;
		bottom: 0;
		z-index: 4;
		grid-template-columns: minmax(100px, 0.8fr) minmax(170px, 1.4fr);
		gap: 10px;
		margin: 18px -16px 0;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		border-top: 1px solid #e0e8eb;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: 0 -8px 24px rgba(16, 42, 53, 0.08);
	}

	.element-mobile-filter-sheet__actions.is-ready {
		display: grid;
	}

	.element-mobile-filter-reset,
	.element-mobile-filter-apply {
		min-width: 0;
		height: 50px;
		margin: 0;
		padding: 0 14px;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 800;
		line-height: 1.1;
		transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	}

	.element-mobile-filter-reset {
		border: 1px solid #b9ccd4;
		background: #fff;
		color: #173846;
	}

	.element-mobile-filter-apply {
		border: 1px solid #008bc4;
		background: #008bc4;
		color: #fff;
		box-shadow: 0 7px 18px rgba(0, 139, 196, 0.2);
	}

	.element-mobile-filter-reset:active,
	.element-mobile-filter-apply:active {
		transform: translateY(0);
	}

	#secondary .filter-widget.is-loading .element-mobile-filter-apply {
		filter: saturate(0.7);
		opacity: 0.72;
	}
}

@media (max-width: 360px) {
	.element-mobile-shop-toolbar {
		gap: 8px;
	}

	.element-mobile-shop-toolbar .woocommerce-ordering {
		flex-basis: 152px;
	}

	.element-mobile-filter-trigger {
		min-width: 116px;
		padding-right: 13px;
		padding-left: 13px;
	}

	.element-mobile-filter-sheet__actions {
		grid-template-columns: 108px minmax(0, 1fr);
	}
}

@media (hover: hover) and (pointer: fine) and (max-width: 767.98px) {
	.element-mobile-filter-trigger:hover,
	.element-mobile-filter-reset:hover,
	.element-mobile-filter-apply:hover {
		transform: translateY(-2px);
		filter: brightness(1.02);
	}
}

@media (prefers-reduced-motion: reduce) {
	.element-mobile-filter-trigger,
	.element-mobile-filter-backdrop,
	#secondary .filter-widget,
	.element-mobile-filter-reset,
	.element-mobile-filter-apply {
		transition: none;
	}
}
