@namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

:root {
    --toolbarbutton-inner-padding: 5px !important;
}

#navigator-toolbox {
    --nav-bar-height: 52px;
    background-color: var(--window-bg) !important;
}

#nav-bar {
    order: -1;
    height: var(--nav-bar-height);

    padding-left: 84px !important;/* reserved space for traffic light */

    /* remove reserved space for traffic light if in fullscreen or have separate titlebar */
    :root:not([chromemargin]) & ,
    :root:is([inFullscreen]) & {
        padding-left: 0 !important;
    }
}

.titlebar-spacer {
    display: none;
}

.titlebar-buttonbox-container {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--nav-bar-height);
}

.browser-toolbar {
   background-color: var(--toolbar-bgcolor) !important;
}

.titlebar-buttonbox {
  &:-moz-locale-dir(ltr) {
    margin-inline: 20px 0 !important;
  }
}

#PanelUI-button {
    margin-inline-end: 10px;
}

/* buttons in toolbar */
.chromeclass-toolbar-additional {
    margin: auto 6px !important;
    padding: 0 !important;
}

.unified-extensions-item {
    margin-left: 0 !important;
}
/* end button in toolbar */

