/* Copyright 2022 Oliver Smith
 * SPDX-License-Identifier: MPL-2.0 */

@namespace url("http://www.w3.org/1999/xhtml");

@-moz-document url-prefix("about:home"), url-prefix("about:blank"), url-prefix("about:newtab") {
    @media (max-width: 700px) {

        .outer-wrapper.only-search {
            padding-top: 50px !important;
        }

        .customize-menu {
            width: 100% !important;
        }

        main {
            margin: 0 !important;
            width: 100% !important;
        }

        main > div {
            padding: 0 !important;
        }

        section.collapsible-section.top-sites {
            padding: 0 !important;
        }

        main .search-inner-wrapper {
            width: 100% !important;
            padding: 0 18px !important;
            min-height: 52px !important;
        }

        ul.top-sites-list {
            width: unset !important;
            text-align: center !important;
        }

        div.ds-top-sites {
            overflow-x: hidden !important;
        }

        main {
            padding-top: 0 !important;
        }

        .search-wrapper {
            position: initial !important;
            padding: 16px 0 !important;
            padding-bottom: 0 !important;
            border: none !important;
        }

        .non-collapsible-section {
            position: sticky !important;
            top: -110px !important;
            z-index: 1000 !important;
        }

        body:not(.inline-onboarding) .fixed-search .search-wrapper .logo-and-wordmark {
            display: flex !important;
        }
    }
}
