.combobox-wrapper {
    position: relative;
}

.combobox-listbox {
    position: absolute;
    z-index: 1000;
    width: 100%;
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem 0;
    list-style: none;
    background-color: #fff;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.combobox-listbox[hidden] {
    display: none;
}

.combobox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.combobox-option:hover {
    background-color: #f8f9fa;
}

.combobox-option--active {
    background-color: #e9ecef;
    border-color: #0d6efd;
    outline: none;
}

.combobox-option--selected {
    font-weight: 600;
}

.combobox-option-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    min-width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #6c757d;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    line-height: 1;
    color: #fff;
    background-color: transparent;
}

.combobox-option--selected .combobox-option-check {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.combobox-clear {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #6c757d;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.combobox-clear:hover,
.combobox-clear:focus {
    background-color: #e9ecef;
    color: #212529;
    outline: 2px solid #0d6efd;
    outline-offset: 1px;
}

.combobox-clear[hidden] {
    display: none;
}
