.searchable-select {
    position: relative;
    width: 100%;
    min-width: 0;
}

.searchable-select-auto {
    width: auto;
    min-width: 150px;
}

.searchable-select-native {
    position: absolute !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.searchable-select-input {
    padding-right: 2.2rem;
    background-image: linear-gradient(45deg, transparent 50%, #778096 50%), linear-gradient(135deg, #778096 50%, transparent 50%);
    background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    cursor: text;
}

.searchable-select-input:disabled {
    cursor: not-allowed;
}

.searchable-select-panel {
    position: fixed;
    z-index: 1095;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--gv-border, #dee2e6);
    border-radius: 10px;
    background: var(--gv-card, #fff);
    color: var(--gv-text, #212529);
    box-shadow: 0 14px 38px rgba(25, 31, 48, .16);
}

.searchable-select-panel[hidden] {
    display: none;
}

.searchable-select-option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: inherit;
    font-size: .76rem;
    text-align: left;
}

.searchable-select-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-option small {
    flex: 0 0 auto;
    color: var(--gv-muted, #6c757d);
    font-size: .62rem;
}

.searchable-select-option:hover,
.searchable-select-option.active {
    background: var(--gv-primary-soft, var(--store-primary-soft, rgba(101, 88, 245, .1)));
    color: var(--gv-primary, var(--store-primary, #6558f5));
}

.searchable-select-option.selected {
    font-weight: 700;
}

.searchable-select-option.selected::after {
    content: '\2713';
    margin-left: auto;
    color: var(--gv-primary, var(--store-primary, #6558f5));
    font-weight: 800;
}

.searchable-select-option:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.searchable-select-empty,
.searchable-select-hint {
    padding: 11px 10px;
    color: var(--gv-muted, #6c757d);
    font-size: .69rem;
    text-align: center;
}

.input-group > .searchable-select {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.input-group > .searchable-select:not(:last-child) .searchable-select-input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group > .searchable-select:not(:first-child) .searchable-select-input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
