.v2-searchable-select {
    margin: 0 0 1.25rem;
    position: relative;
}

.v2-searchable-select__field-label {
    display: block;
    font-family: var(--v2-font-sans);
    font-size: var(--v2-text-base);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.v2-searchable-select__control {
    align-items: stretch;
    display: flex;
    gap: 0;
    position: relative;
}

.v2-searchable-select__trigger {
    align-items: center;
    background-color: var(--v2-paper);
    border: 1px solid var(--v2-input);
    border-radius: 0;
    color: var(--v2-foreground);
    cursor: pointer;
    display: flex;
    flex: 1 1 auto;
    font-family: var(--v2-font-sans);
    font-size: var(--v2-text-base);
    gap: 0.5rem;
    justify-content: space-between;
    line-height: 1.5;
    min-width: 0;
    padding: 0.5rem 0.75rem;
    text-align: left;
    width: 100%;
}

.v2-searchable-select__trigger:focus {
    border-color: var(--v2-foreground);
    outline: none;
}

.v2-searchable-select__trigger-label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v2-searchable-select__trigger-label--placeholder {
    color: var(--v2-muted, #6b6b6b);
}

.v2-searchable-select__caret {
    flex: 0 0 auto;
}

.v2-searchable-select__clear {
    align-items: center;
    background: transparent;
    border: 1px solid var(--v2-input);
    border-left: none;
    color: var(--v2-foreground);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-family: var(--v2-font-sans);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0 0.65rem;
}

.v2-searchable-select__control:has(.v2-searchable-select__clear:not([hidden])) .v2-searchable-select__trigger {
    border-right-color: transparent;
}

.v2-searchable-select__clear:hover {
    background-color: var(--v2-paper);
}

.v2-searchable-select__clear--hidden,
.v2-searchable-select__clear[hidden] {
    display: none;
}

.v2-searchable-select__panel {
    background-color: var(--v2-paper);
    border: 1px solid var(--v2-input);
    border-top: none;
    display: flex;
    flex-direction: column;
    left: 0;
    position: absolute;
    right: 0;
    z-index: 20;
}

.v2-searchable-select__panel[hidden] {
    display: none;
}

.v2-searchable-select__filter-wrap {
    border-bottom: 1px solid var(--v2-border, var(--v2-input));
    padding: 0.5rem;
}

.v2-searchable-select__filter-wrap[hidden] {
    display: none;
}

.v2-searchable-select__filter {
    background-color: var(--v2-paper);
    border: 1px solid var(--v2-input);
    border-radius: 0;
    color: var(--v2-foreground);
    font-family: var(--v2-font-sans);
    font-size: var(--v2-text-base);
    line-height: 1.5;
    padding: 0.375rem 0.5rem;
    width: 100%;
}

.v2-searchable-select__filter:focus {
    border-color: var(--v2-foreground);
    outline: none;
}

.v2-searchable-select__list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.5rem;
}

.v2-searchable-select__option {
    background: transparent;
    border: 1px solid transparent;
    color: var(--v2-foreground);
    cursor: pointer;
    font-family: var(--v2-font-sans);
    font-size: var(--v2-text-base);
    line-height: 1.5;
    padding: 0.375rem 0.5rem;
    text-align: left;
    width: 100%;
}

.v2-searchable-select__option:hover,
.v2-searchable-select__option:focus {
    border-color: var(--v2-border, var(--v2-input));
    outline: none;
}

.v2-searchable-select__option--selected {
    border-color: var(--v2-foreground);
    font-weight: 600;
}

.v2-searchable-select__empty {
    color: var(--v2-muted, #6b6b6b);
    font-family: var(--v2-font-sans);
    font-size: var(--v2-text-base);
    padding: 0.375rem 0.5rem;
}
