/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

button.browser-toolbar-button {
    display: flex;

    align-self: stretch;
    justify-content: center;

    min-height: auto;
    min-width: auto;

    padding: 0;

    -moz-window-dragging: no-drag;

    margin-block: calc(var(--toolbar-height) * 0.1);

    --button-default-color: transparent;
}

button.browser-toolbar-button .browser-button-container {
    display: flex;

    align-items: center;
    justify-content: center;
    align-self: stretch;

    max-width: max-content;
    max-height: max-content;
}

button.browser-toolbar-button .browser-button-label {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 100px;
}

button.browser-toolbar-button .browser-button-icon {
    background-size: var(--button-icon-size, cover);
}

button.browser-toolbar-button[menuactive] {
    --button-background: var(--button-active-color) !important;
}