.fontAwesomeBbcodePicker {
    min-height: 24rem;
}

.fontAwesomeBbcodePicker__toolbar {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fontAwesomeBbcodePicker__search {
    width: 100%;
}

.fontAwesomeBbcodePicker__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.fontAwesomeBbcodePicker__tabs .active {
    background-color: var(--wcfButtonPrimaryBackground, var(--wcfButtonBackground));
    color: var(--wcfButtonPrimaryText, var(--wcfButtonText));
}

.fontAwesomeBbcodePicker__status {
    margin: 1rem 0;
    text-align: center;
}

.fontAwesomeBbcodePicker__icons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
    gap: .5rem;
    list-style: none;
    margin: 0;
    max-height: min(60vh, 42rem);
    overflow: auto;
    padding: .25rem;
}

.fontAwesomeBbcodePicker__icon {
    align-items: center;
    border: 1px solid var(--wcfContentBorderInner, currentColor);
    border-radius: var(--wcfBorderRadius, 4px);
    display: flex;
    flex-direction: column;
    gap: .45rem;
    height: 100%;
    justify-content: center;
    min-height: 5.75rem;
    padding: .75rem .5rem;
    text-align: center;
    width: 100%;
}

.fontAwesomeBbcodePicker__icon:hover,
.fontAwesomeBbcodePicker__icon:focus-visible {
    background: var(--wcfContentBackgroundActive, var(--wcfContentBackground));
    border-color: var(--wcfContentBorder, currentColor);
}

.fontAwesomeBbcodePicker__icon small {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.fontAwesomeBbcodePicker__variant {
    color: var(--wcfContentDimmedText, inherit);
    font-size: .75rem;
}

@media (max-width: 544px) {
    .fontAwesomeBbcodePicker__icons {
        grid-template-columns: repeat(auto-fill, minmax(6.25rem, 1fr));
        max-height: 55vh;
    }
}
