.combobox {
    position: relative;
}

.combobox__native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
}

.combobox__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    height: 46px;
    border: 1px solid #E5E7EB;
    background: #f2f5f9;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 14px;
    font-family: inherit;
    color: #0D1E3B;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: var(--transition-fast, all .15s ease);
}

.combobox__control:hover {
    background: #eaeff6;
}

.combobox--empty .combobox__value {
    color: #9aa3b2;
}

.combobox__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.combobox__arrow {
    flex: none;
    width: 12px;
    height: 8px;
    background: currentColor;
    color: #6b7280;
    transition: transform .2s ease;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M6 8 0 2l1.4-1.4L6 5.2 10.6.6 12 2z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.combobox--open .combobox__control {
    background: #e9edf3;
    border-color: #0074FE;
    box-shadow: 0 0 0 3px rgba(0, 116, 254, .12);
}

.combobox--open .combobox__arrow {
    transform: rotate(180deg);
}

.combobox--disabled {
    opacity: .55;
    pointer-events: none;
}

.combobox--open {
    z-index: 10000;
}

.combobox__panel {
    display: none;
    position: absolute;
    z-index: 10000;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(13, 30, 59, .16);
    overflow: hidden;
}

.combobox--open .combobox__panel {
    display: block;
}

.combobox--up .combobox__panel {
    top: auto;
    bottom: calc(100% + 6px);
}

.combobox__search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #EEF1F5;
}

.combobox__clear {
    flex: none;
    width: 20px;
    height: 20px;
    border: 0;
    padding: 0;
    background: currentColor;
    color: #6b7280;
    cursor: pointer;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M13.3 2.7 8 8l5.3 5.3-1.4 1.4L6.6 9.4 1.3 14.7-.1 13.3 5.2 8-.1 2.7 1.3 1.3l5.3 5.3L11.9 1.3z'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M13.3 2.7 8 8l5.3 5.3-1.4 1.4L6.6 9.4 1.3 14.7-.1 13.3 5.2 8-.1 2.7 1.3 1.3l5.3 5.3L11.9 1.3z'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}

.combobox__clear:hover {
    color: #0D1E3B;
}

.combobox__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #0D1E3B;
}

.combobox__input::placeholder {
    color: #9aa3b2;
}

.combobox__list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
    overscroll-behavior: contain;
}

.combobox__option {
    padding: 10px 16px;
    font-size: 15px;
    color: #0D1E3B;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.combobox__option.is-active {
    background: #f2f5f9;
}

.combobox__option.is-selected {
    color: #0074FE;
    font-weight: 600;
}

.combobox__empty {
    padding: 16px;
    font-size: 14px;
    color: #9aa3b2;
    text-align: center;
}
