/* START! Sorting */
@media (max-width: 1179.98px) {
    html .up-mobile.js-mobile-filter.active {
        z-index: 101;
    }

    /* Keep unavailable smart-filter values below selected and available values. */
    html .up-mobile.js-mobile-filter .filters.value-top .filters-left__value.disabled,
    html .up-mobile.js-mobile-filter .filters.value-top .filters__value.disabled {
        order: 3;
    }

    html.m28-catalog-sticky-sorting .c-sorting {
        margin: var(--up-wrap-gap) 0;
        position: sticky;
        top: calc(4.125rem + var(--up-wrap-gap));
        z-index: 11;
    }

    html.m28-catalog-sticky-sorting .c-sorting > .c-sorting_filter {
        order: 1;
    }

    html.m28-catalog-sticky-sorting .c-sorting > .c-sorting_first {
        order: 2;
    }

    html.m28-catalog-sticky-sorting .c-sorting > .c-sorting_switch {
        order: 3;
    }
    html.m28-catalog-sticky-sorting .c-sorting:before {
        background: var(--up-color-gray-100);
        content: '';
        position:absolute;
        left: calc(-1*var(--up-wrap-gap));
        right: calc(-1*var(--up-wrap-gap));
        top: calc(-1*var(--up-wrap-gap));
        bottom: calc(-1*var(--up-wrap-gap));
    }
    html.m28-catalog-sticky-sorting[data-up-theme=dark] .c-sorting:before {
        background-color: var(--up-theme-blocks-bg);
    }
}
/* EDN! Sorting */

/* M28 catalog sorting toolbar card. */
@media (min-width: 768px) {
	html.m28-catalog-sorting-surface .c-sorting {
		box-sizing: border-box;
		padding: var(--up-rem-s, .625rem);
		border: var(--up-border, 1px solid #ededed);
		border-radius: var(--up-border-radius, 1rem);
		background: #fff;
	}

	html.m28-catalog-sorting-surface[data-up-theme=light] .c-sorting {
		background: #fff;
	}

	html.m28-catalog-sorting-surface[data-up-theme=dark] .c-sorting,
	html.m28-catalog-sorting-surface.dark .c-sorting {
		border: 0;
		background: var(--up-theme-blocks-bg, #272727);
	}
}