﻿.combobox-field {
    position: relative;
}

.combobox-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .combobox-wrap input[type="text"] {
        width: 100%;
        height: 46px;
        border: 1px solid #d5d9de;
        border-radius: 8px;
        padding: 0 36px 0 14px;
        font-size: 14px;
        font-family: inherit;
        color: #1a1a1a;
        background-color: #fff;
        outline: none;
        cursor: pointer;
        box-sizing: border-box;
    }

        .combobox-wrap input[type="text"]:focus {
            border-color: #0d6dbf;
        }

    .combobox-wrap.is-disabled input[type="text"] {
        background-color: #f1f2f4;
        cursor: not-allowed;
        color: #99a0a8;
    }

    .combobox-wrap.has-error input[type="text"] {
        border-color: #d93025;
    }

.combobox-arrow {
    position: absolute;
    right: 12px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    transition: transform 0.15s ease;
}

    .combobox-arrow.is-open {
        transform: rotate(180deg);
    }

.combobox-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    max-height: 170px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #d5d9de;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.combobox-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
}

    .combobox-option:hover {
        background-color: #f1f6fb;
    }

    .combobox-option.is-selected {
        background-color: #e8f1fb;
        font-weight: 600;
        color: #0d6dbf;
    }

.combobox-empty {
    padding: 10px 14px;
    font-size: 14px;
    color: #99a0a8;
}

.combobox-error-text {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    font-size: 12px;
    color: #d93025;
    font-weight: 500;
    white-space: normal;
}
