/* Mobile header: menu, logo, phone, theme, city. */
@media (max-width: 1179.98px) {
	html.m28-mobile-header-order .header-mobile__header > * {
		order: 6;
	}

	html.m28-mobile-header-order .header-mobile__header > .h-m-item-bars {
		order: 1;
	}

	html.m28-mobile-header-order .header-mobile__header > .up-logo-img {
		order: 2;
	}

	html.m28-mobile-header-order .header-mobile__header > .h-m-item-phone {
		order: 3;
	}

	html.m28-mobile-header-order .header-mobile__header > .h-m-item-mode-theme {
		order: 4;
	}

	html.m28-mobile-header-order .header-mobile__header > .h-m-item-location {
		order: 5;
		flex: 0 1 auto;
		min-width: 0;
	}

	html.m28-mobile-header-order .header-mobile__header > .h-m-item-location .location__city {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}

/* Dark mobile logo: keep vertical centering. */
html.m28-mobile-header-order[data-up-theme=dark] header.header-mobile .header-mobile__header > .up-logo-img.dark {
	display: flex;
}

html.m28-mobile-header-order[data-up-theme=dark] .up-mobile .up-logo-img.dark { display: flex; }

/* Mobile drawer header: logo, search, close. */
@media (max-width: 1179.98px) {
	html.m28-mobile-menu-header-search .up-mobile__menu-search {
		--up-btn-color: var(--up-body-color);
		--up-btn-color-hover: var(--up-body-color);
		--up-btn-color-active: var(--up-body-color);
		--up-btn-focus-shadow: rgba(var(--up-scheme-color-rgb), .35);
		align-self: center;
		flex: 0 0 2.75rem;
		width: 2.75rem;
		height: 2.75rem;
		border-radius: 50%;
		transition: background-color .15s ease-out, color .15s ease-out;
	}

	html.m28-mobile-menu-header-search .up-mobile__menu-search:hover,
	html.m28-mobile-menu-header-search .up-mobile__menu-search:active {
		background: var(--up-color-gray-200);
	}

	html.m28-mobile-menu-header-search[data-up-theme=dark] .up-mobile__menu-search:hover,
	html.m28-mobile-menu-header-search[data-up-theme=dark] .up-mobile__menu-search:active {
		background: var(--up-children-ch-bg);
	}
}

/* Mobile drawer primary actions: catalog, configurator, order status. */
@media (max-width: 1179.98px) {
	html.m28-mobile-menu-primary-actions .m28-mobile-menu-primary .mobile-nav-row__wrap {
		gap: .25rem;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-menu-primary .mobile-nav-row__item {
		min-height: 3.5rem;
		padding: .375rem .5rem;
		border-radius: var(--up-border-radius);
		transition: background-color .15s ease-out, color .15s ease-out;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-menu-primary .mobile-nav-row__item:hover,
	html.m28-mobile-menu-primary-actions .m28-mobile-menu-primary .mobile-nav-row__item:active {
		background: var(--up-color-gray-200);
	}

	html.m28-mobile-menu-primary-actions[data-up-theme=dark] .m28-mobile-menu-primary .mobile-nav-row__item:hover,
	html.m28-mobile-menu-primary-actions[data-up-theme=dark] .m28-mobile-menu-primary .mobile-nav-row__item:active {
		background: var(--up-children-ch-bg);
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-menu-primary .mobile-nav-row__name {
		font-weight: var(--up-font-weight);
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus__form {
		border: var(--up-border);
		border-radius: var(--up-border-radius);
		padding: var(--up-rem-l);
	}

	html.m28-mobile-menu-primary-actions[data-up-theme=dark] .m28-mobile-orderstatus__form {
		background: var(--up-children-bg);
		border-color: transparent;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus .s-plugin-orderstatus-container {
		margin: 0;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus .s-plugin-orderstatus-container h5 {
		display: none;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus .s-plugin-orderstatus-container form {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: .625rem;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus .field-label {
		display: block;
		font-weight: var(--up-font-weight);
		width: 100%;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus input.s-plugin-orderstatus-order_id-input {
		flex: 1 1 9rem;
		min-width: 0;
		width: auto;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus input[type="submit"] {
		background: var(--up-scheme-color);
		border: .0625rem solid var(--up-scheme-color);
		border-radius: var(--up-form-radius);
		color: #fff;
		cursor: pointer;
		padding: .55rem 1rem;
	}

	html.m28-mobile-menu-primary-actions .m28-mobile-orderstatus .result {
		line-height: var(--up-line-height-xl);
	}
}

/* Mobile drawer pages section. */
@media (max-width: 1179.98px) {
	html.m28-mobile-menu-pages .m28-mobile-menu-pages .mobile-nav-row__wrap {
		gap: 0;
	}

	html.m28-mobile-menu-pages .m28-mobile-menu-pages .mobile-nav-row__item {
		min-height: 3.125rem;
		padding: .75rem .5rem;
		border-radius: var(--up-border-radius);
		font-size: 1rem;
		font-weight: var(--up-font-weight);
		transition: background-color .15s ease-out, color .15s ease-out;
	}

	html.m28-mobile-menu-pages .m28-mobile-menu-pages .mobile-nav-row__item:hover,
	html.m28-mobile-menu-pages .m28-mobile-menu-pages .mobile-nav-row__item:active {
		background: var(--up-color-gray-200);
	}

	html.m28-mobile-menu-pages[data-up-theme=dark] .m28-mobile-menu-pages .mobile-nav-row__item:hover,
	html.m28-mobile-menu-pages[data-up-theme=dark] .m28-mobile-menu-pages .mobile-nav-row__item:active {
		background: var(--up-children-ch-bg);
	}

	html.m28-mobile-menu-pages .m28-mobile-menu-pages .mobile-nav-row__childs {
		padding: 0 .5rem .75rem;
	}
}

/* Mobile drawer catalog: dividers between category values. */
@media (max-width: 1179.98px) {
	.up-mobile__block[data-block-id="catalog-all"] > .up-mobile__content > .mobile-nav-row__wrap {
		gap: 0;
	}

	.up-mobile__block[data-block-id="catalog-all"] > .up-mobile__content > .mobile-nav-row__wrap > .mobile-nav-row__item {
		min-height: 3.25rem;
		padding: .75rem .25rem;
	}

	.up-mobile__block[data-block-id="catalog-all"] > .up-mobile__content > .mobile-nav-row__wrap > .mobile-nav-row__item:not(:first-child) {
		border-top: var(--up-border);
	}

	.up-mobile__block[data-block-id="catalog-all"] .mobile-nav-row__childs {
		gap: 0;
		padding-bottom: .5rem;
	}

	.up-mobile__block[data-block-id="catalog-all"] .mobile-nav-row__childs-item {
		align-items: center;
		min-height: 2.75rem;
		padding: .625rem .25rem;
	}

	.up-mobile__block[data-block-id="catalog-all"] .mobile-nav-row__childs-item:not(:first-child) {
		border-top: var(--up-border);
	}
}

/* Mobile compact header on scroll. */
@media (max-width: 1179.98px) {
	html.m28-mobile-compact-header .header-mobile.m3-header-compact .header-mobile__header {
		--up-flex-gap: .75rem;
		--up-flex-justify-content: flex-start;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .h-m-item-phone,
	html.m28-mobile-compact-header .header-mobile.m3-header-compact .h-m-item-location {
		display: none;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .h-m-item-bars {
		order: 1;
		flex: none;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .up-logo-img {
		order: 2;
		flex: none;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .search {
		order: 3;
		flex: 1 1 auto;
		min-width: 0;
		width: auto;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .h-m-item-mode-theme {
		order: 4;
		flex: none;
	}

	html.m28-mobile-compact-header .header-mobile-search.m3-search-placeholder {
		height: 4.125rem;
		padding: 0;
	}
}


/* Compact header search dropdown. */
@media (max-width: 1179.98px) {
    html.m28-mobile-compact-header .header-mobile.m3-header-compact .wsearch_dropdown_search_wrapper,
    html.m28-mobile-compact-header .header-mobile.m3-header-compact .search__dropdown {
        position: fixed !important;
        top: 4.125rem !important;
        right: var(--up-wrap-gap) !important;
        left: var(--up-wrap-gap) !important;
        width: auto !important;
        max-height: calc(100dvh - 4.125rem - var(--up-wrap-gap)) !important;
        overflow-y: auto;
        z-index: 82 !important;
    }
}

/* Narrow compact header search. */
@media (max-width: 399.98px) {
	html.m28-mobile-compact-header .header-mobile.m3-header-compact .search__input {
		padding-left: .625rem;
		padding-right: 2rem;
	}

	html.m28-mobile-compact-header .header-mobile.m3-header-compact .search__button {
		--up-btn-padding-x: .375rem;
	}
}