.finance-category-widget {
    position: relative;
    width: 100%;
}

.form-row.field-category {
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

.finance-category-native {
    display: none !important;
}

.finance-category-trigger {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #c8cdd2;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.finance-category-trigger::after {
    content: "+";
    float: right;
    color: #66717b;
}

.finance-category-trigger[aria-expanded="true"]::after {
    content: "-";
}

.finance-category-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 3px);
    left: 0;
    width: 100%;
    min-width: 220px;
    max-height: 360px;
    display: flex;
    flex-direction: column;
    border: 1px solid #aeb7bf;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 12px rgb(0 0 0 / 14%);
}

.finance-category-menu[hidden] {
    display: none;
}

.finance-category-search {
    flex: 0 0 auto;
    width: auto;
    margin: 8px;
    padding: 7px 9px;
    border: 1px solid #aeb7bf;
    border-radius: 3px;
    font: inherit;
}

.finance-category-list {
    min-height: 0;
    overflow-y: auto;
    padding: 0 4px 5px;
}

.finance-category-row {
    display: flex;
    align-items: stretch;
    min-height: 34px;
    padding-right: 3px;
}

.finance-category-option,
.finance-category-toggle {
    border: 0;
    background: transparent;
    color: #24303b;
    font: inherit;
    cursor: pointer;
}

.finance-category-option {
    flex: 1 1 auto;
    min-width: 0;
    padding: 6px 8px;
    text-align: left;
}

.finance-category-option:hover,
.finance-category-option[aria-selected="true"] {
    background: #edf4f1;
    color: #155c46;
}

.finance-category-toggle {
    flex: 0 0 32px;
    width: 32px;
    border-radius: 3px;
    color: #58636d;
    font-weight: 600;
}

.finance-category-toggle:hover {
    background: #edf0f2;
}

.finance-category-empty {
    margin: 8px;
    color: #66717b;
    font-size: 13px;
}