.br-category-select {
    position: relative;
    width: 100%;
}

.br-category-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.br-category-select-toggle {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: calc(1.5em + .75rem + 2px);
    text-align: left;
    cursor: pointer;
}

.br-category-select-toggle:disabled {
    cursor: not-allowed;
}

.br-category-select-toggle.is-invalid {
    border-color: var(--bs-form-invalid-border-color);
    padding-right: calc(1.5em + .75rem);
}

.br-category-select-current {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.br-category-select-current i {
    width: 1.15rem;
    flex: 0 0 1.15rem;
    text-align: center;
}

.br-category-select-current-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.br-category-select-menu {
    width: 100%;
    min-width: 100%;
    max-height: min(24rem, 60vh);
    overflow-y: auto;
    padding: .4rem;
}

.br-category-select-option {
    display: flex;
    align-items: center;
    gap: .65rem;
    border-radius: .5rem;
}

.br-category-select-option > i:first-child {
    width: 1.2rem;
    flex: 0 0 1.2rem;
    text-align: center;
}

.br-category-select-check {
    margin-left: auto;
    opacity: 0;
}

.br-category-select-option.is-selected {
    font-weight: 600;
}

.br-category-select-option.is-selected .br-category-select-check {
    opacity: 1;
}

.br-category-select-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
