// SPDX-License-Identifier: MIT
// Copyright (c) 2022 The Pybricks Authors

@use '@blueprintjs/core/lib/scss/variables' as bp;

.pb-firmware-installPybricksDialog {
    &-body {
        min-height: bp.$pt-grid-size * 40;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: bp.$pt-grid-size;
    }

    &-selectHub {
        &-advanced {
            margin-top: auto;
            width: 100%;
        }
    }

    &-license {
        &-text {
            flex-grow: 1;
            width: 100%;
            min-height: 0;
            max-height: bp.$pt-grid-size * 35;
            overflow: auto;

            & .#{bp.$ns}-non-ideal-state {
                min-height: bp.$pt-grid-size * 35;
            }

            & pre {
                white-space: pre-wrap;
                word-break: keep-all;
                margin: 0;
            }
        }

        &-checkbox {
            margin-top: auto;
        }
    }
}
