.mds-mobile-action-label { display: none; }

@media (max-width: 1279px) {
    .header {
        position: sticky;
        top: 0;
        z-index: 10;
        flex-shrink: 0;
        background: #fff;
        box-shadow: 0 1px 0 #eee8e6;
    }
    .header .header-all { padding: 12px 16px 8px; }
    .header .header__bot,
    .header .header__line { display: none; }
    .header .header__top {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 8px 0;
    }
    .header .header__top > .header__bot-logo-dop-mobile {
        display: flex;
        grid-column: 1 / 3;
        grid-row: 1;
        justify-self: start;
        margin: 0;
    }
    .header .header__top > .header__bot-logo-dop-mobile .header-logo-mobile {
        max-width: 160px;
    }
    .header .header__top-right,
    .header .header__top-lk,
    .header .header__top-cart { display: contents; }
    .header .header__top-address,
    .header .header__top-phone-mobile { display: none; }
    .header .header__new-top-menu {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin: 0;
    }
    .header .header__new-top-burger-checkbox-box > label {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    .header .header__top-search,
    .header .header__top-person,
    .header .header__top-check {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        grid-row: 2;
        gap: 3px;
        width: 100%;
        min-width: 0;
        min-height: 48px;
        box-sizing: border-box;
        padding: 5px 4px;
        margin: 0;
        border: 0;
        border-top: 1px solid #eee8e6;
        color: #242020;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .header .header__top-search { grid-column: 1; }
    .header .header__top-person { grid-column: 2; }
    .header .header__top-check { grid-column: 3; }
    .header .header__top-search > svg,
    .header .header__top-person > svg,
    .header .header__top-check > svg {
        width: 22px;
        height: 22px;
        flex: 0 0 22px;
    }
    .header .mds-mobile-action-label,
    .header .header__top-check-url {
        display: block;
        margin: 0;
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
        white-space: nowrap;
    }
    .header .header__top-check .cart-count { font-size: inherit; }
    .header .header__top-search:hover,
    .header .header__top-person:hover,
    .header .header__top-check:hover,
    .header .header__top-search[aria-expanded="true"] {
        background: #fff7f6;
        color: #870200;
    }
    .header .header__top-search:focus-visible,
    .header .header__top-person:focus-visible,
    .header .header__top-check:focus-visible {
        outline: 2px solid #870200;
        outline-offset: -2px;
    }
    .header .search__form-header {
        grid-column: 1 / -1;
        grid-row: 3;
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: none;
        margin: 0;
        padding: 4px 0;
    }
    .header .search__form-header .search__form {
        width: 100%;
        margin: 0;
        bottom: 0;
    }
    .header .search__form-header .search__form-label {
        box-sizing: border-box;
        width: 100%;
        min-height: 48px;
        padding: 4px 8px 4px 14px;
    }
    .header .search__form-header .search__form-input {
        min-width: 0;
        font-size: 16px;
    }
    .header .search__form-header button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        flex: 0 0 40px !important;
    }
}

/* Tablets and compact laptops have room for actions beside the burger. */
@media (min-width: 768px) and (max-width: 1279px) {
    .header .header__top {
        grid-template-columns: minmax(0, 1fr) 44px 44px max-content 44px;
        gap: 0 12px;
    }
    .header .header__top > .header__bot-logo-dop-mobile {
        grid-column: 1;
    }
    .header .header__top-search,
    .header .header__top-person,
    .header .header__top-check {
        grid-row: 1;
        flex-direction: row;
        gap: 8px;
        width: auto;
        min-height: 44px;
        padding: 0;
        border-top: 0;
    }
    .header .header__top-search { grid-column: 2; }
    .header .header__top-person { grid-column: 3; }
    .header .header__top-check { grid-column: 4; }
    .header .header__new-top-menu { grid-column: 5; }
    .header .mds-mobile-action-label { display: none; }
    .header .header__top-check-url { font-size: 14px; }
    .header .header__top .search__form-header { grid-row: 2; }
}
