// losely based on firefox 56's browser.css

@-moz-document url("chrome://browser/content/browser.xhtml") {
    @media (-moz-platform: windows) and (not (-moz-windows-classic)) and (-moz-windows-compositor) {
        & {
            appearance: -moz-win-borderless-glass !important; // hack to show white border windows 10 does on dwm extended windows
        }

        #browser {
            appearance: -moz-win-exclude-glass !important;
        }

        &:not([sizemode=maximized]) {
            #navigator-toolbox {
                margin-top: 1px !important; // show top white border
            }
        }

        #navigator-toolbox {
            border: 0 !important; // remove fake borders

            &::after {
                background-color: #c2c2c2 !important;
            }
        }

        &:not([lwtheme]) {
            #navigator-toolbox {
                background-color: hsl(0, 0%, 78%) !important;
            }
        }

        #titlebar {
            appearance: none !important;
        }

        #TabsToolbar .toolbar-items {
            padding-top: 0 !important;
        }

        #titlebar-buttonbox,
        .titlebar-button {
            appearance: none !important;
        }
    }
}