@import "./menus_aero.css";
:root {
    --item_y_padding: 3px;
    --y_padding_before_label: 28px !important;
    --y_padding_before_label_bm: calc(var(--y_padding_before_label) - 2px) !important;
    --panel-padding: 0px !important;
    --arrowpanel-menuitem-margin: 0px !important;
    --arrowpanel-menuitem-padding: calc(var(--item_y_padding) + 1px) 2px !important;
    --panel-subview-body-padding: 0px !important;
}

.subview-subheader,
panelview .toolbarbutton-1,
.widget-overflow-list .toolbarbutton-1 {
    margin: 0 !important;
    min-height: 0 !important;
    padding: calc(var(--item_y_padding) + 1px) 2px !important;
}

.subviewbutton:not(#appMenu-fxa-status2) {
    margin: 0 !important;
    min-height: 0 !important;
    padding: calc(var(--item_y_padding) + 1px) 2px !important;
    padding-left: 5px !important;

}

.widget-overflow-list .toolbarbutton-1 {
    padding: var(--item_y_padding) 2px !important;
}

#appMenu-popup .PanelUI-subView .subviewbutton:not(#appMenu-fxa-status2) {
    padding: calc(var(--item_y_padding) + 1px) 4px !important;
}

menupopup[type=arrow] > menuitem,
menupopup[type=arrow] > menu {
    padding-block: 0 !important;
    padding: 0 !important;
    padding-inline-start: 4px !important;
}

#downloadsPanel .panel-subview-body, #unified-extensions-panel .panel-subview-body {
    padding: 0px !important;
    margin-bottom:10px !important;
}

* menupopup[type=arrow],
:is(menupopup, panel)[type=arrow] {
    --panel-padding: 0px !important;
}

#context-navigation :is(#context-back,#context-forward,#context-reload,#context-stop,#context-bookmarkpage) {
    padding: var(--item_y_padding) 2px !important;
    margin-inline-start: -6px !important;
}


:is(menupopup, panel)[type=arrow] :is(.menu-accel,.menu-iconic-accel) {
    margin-inline-end: 8px !important;
}

:is(menupopup, panel)[type=arrow] .menu-right {
    margin-inline-end: 4px !important;
}

.menu-iconic-icon {
    margin-inline-start: 2px !important;
    margin-inline-end: -2px !important;
}

@media (-moz-platform: windows) {

    menupopup > menuitem,
    menupopup > menu {
        padding-block: 0 !important;
        padding: 0 !important;
        padding-inline-start: 4px !important;
    }
    #ublock0_raymondhill_net-menuitem-_uBlock0-blockElement {
        padding-inline-start: 0!important;
        margin-inline-start:-3px !important;

    }
    #ublock0_raymondhill_net-menuitem-_uBlock0-blockElement .menu-iconic-icon{
        margin-bottom: -1px !important;
    }
    * menupopup {
        --panel-padding: 0px !important;
    }

    :is(menupopup, panel) :is(.menu-accel,.menu-iconic-accel) {
        margin-inline-end: 8px !important;
    }

    :is(menupopup, panel) .menu-right {
        margin-inline-end: 4px !important;
    }


    menugroup#context-navigation > menuitem.menuitem-iconic > hbox.menu-iconic-left > .menu-iconic-icon {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
        margin-inline-start: 10px !important;
        margin-inline-end: 6px !important;
    }

}

@media (-moz-platform: windows-win8), (-moz-platform: windows-win7), (-moz-os-version: windows-win8),(-moz-os-version: windows-win7) {

    #context-navigation :is(#context-back,#context-forward,#context-reload,#context-stop,#context-bookmarkpage) {
        padding: var(--item_y_padding) 2px !important;
        margin-inline-start: 0px !important;
        padding-inline-start: 15px !important;
    }

}

#customizationui-widget-multiview #appMenu-libraryView,
#pageActionPanel panelview,
#widget-overflow panelview {
    min-width: 0 !important;
    padding: var(--item_y_padding) 0 !important;
}

#unified-extensions-panel .unified-extensions-item {
    padding-block: 0 !important;
    padding: 0 !important;
    padding-right:5px !important;
}

.unified-extensions-item-name,
.unified-extensions-item-message {
    padding-inline-start: 0 !important;
    width: 28em !important;
}

:root {
    --arrowpanel-border-radius: 3px !important;
    --panel-border-radius: 3px !important;
}

* menupopup,
:is(menupopup, panel)[type=arrow] {
    --arrowpanel-border-radius: 3px !important;
    --panel-border-radius: 3px !important;
    border-radius: 3px !important;
}
#editBMPanel_tagsSelectorExpander, #editBMPanel_foldersExpander, #editBMPanel_folderMenuList{
    list-style-image: none !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMCUiIHkxPSIwJSIgeDI9IjEwMCUiIHkyPSIwJSI+PHN0b3Agb2Zmc2V0PSIwJSIgc3R5bGU9InN0b3AtY29sb3I6IzMzMztzdG9wLW9wYWNpdHk6MSIvPjxzdG9wIG9mZnNldD0iMTAwJSIgc3R5bGU9InN0b3AtY29sb3I6I2FhYTtzdG9wLW9wYWNpdHk6MSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Ik0xMSA2SDR2MWgxdjFoMXYxaDF2MWgxVjloMVY4aDFWN2gxVjZaIiBmaWxsPSJ1cmwoI2EpIi8+PC9zdmc+"), linear-gradient(180deg, #f2f2f2 45%, #ebebeb 0, #cfcfcf) !important;
    background-position:100% !important;
    background-repeat: no-repeat !important;
    border: var(--btn-border) !important;
    border-radius: 3px !important;
    box-shadow: var(--btn-box-shadow) !important;
    box-sizing: border-box !important;
    color: #222 !important;
    font: 9pt Segoe UI, SegoeUI, Noto Sans, sans-serif !important;
    padding: 0 !important;
    position: relative !important;
    min-width: 15px !important;
    min-height: 15px !important;

    height: 15px !important;
}
#editBMPanel_tagsSelectorExpander, #editBMPanel_foldersExpander{
    margin-top: 5px !important;
    background-position: center !important;
}
#editBMPanel_folderMenuList{
    min-height: 25px !important;
}
#editBookmarkPanel input:focus-visible{
    border: 1px solid #8e8f8f !important;
}
#editBookmarkPanel input{
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    height: 20px !important;
    min-height: 20px !important;
}