/*  Clean and tight extensions menu */
#unified-extensions-view{
    --uei-icon-size: 20px; /*  Change icon size */
}

#unified-extensions-panel #unified-extensions-view {
    width: 100% !important;  /*  For firefox v115.x */
}

#unified-extensions-view:is(panelview, #widget-overflow-fixed-list) .toolbaritem-combined-buttons {
    margin: 2px 4px !important;  /*  For firefox v115.x / Makes more compact */
}

.unified-extensions-item-menu-button.subviewbutton {
    padding: 2px !important;  /*  For firefox v115.x / Fix icon margins */
}

#unified-extensions-view .panel-header,
#unified-extensions-view .panel-header + toolbarseparator,
#unified-extensions-view .panel-subview-body + toolbarseparator,
#unified-extensions-view #unified-extensions-manage-extensions {
    display:none !important;
}

#unified-extensions-view .unified-extensions-item-menu-button.subviewbutton{
    visibility: hidden !important;
    transition: 300ms !important;
    -moz-margin-end: -3.6em !important;
}

#unified-extensions-view .panel-subview-body {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

#unified-extensions-view:hover 
.unified-extensions-item-menu-button.subviewbutton{ 
    visibility: visible !important;
    transition: 300ms !important;
    -moz-margin-end: initial !important;
}

#unified-extensions-view .unified-extensions-item .unified-extensions-item-icon,
#unified-extensions-view .unified-extensions-item .toolbarbutton-badge-stack {
     margin-inline-end: 2px !important;
}

#unified-extensions-view .unified-extensions-item-name, 
#unified-extensions-view .unified-extensions-item-message {
    padding-inline-start: 0.5em !important;
    width: 21em !important;
}

/* Apply width in the Firefox extension manager on Linux */
@media (-moz-platform: linux) {

    #unified-extensions-view .unified-extensions-item-name,
    #unified-extensions-view .unified-extensions-item-message {
        padding-inline-start: 0.5em !important;
        width: 22em !important;
    }
}

#unified-extensions-view .unified-extensions-item-action-button.subviewbutton {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}
