.so-custom-select {
    width: 100%;
    position: relative;
    user-select: none;
    font-size: 14px;
}

.so-cs-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #000;
    border-radius: 3px;
    cursor: pointer;
    min-width: 400px;
}

.so-cs-display:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.so-cs-value {
    min-height:18px;
}

.so-cs-placeholder {
    color: #6b7280;
}

.so-cs-icons {
    display:flex;
    align-items:center;
    gap:8px;
}

.so-cs-clear {
    background:transparent;
    border:0;
    padding:4px;
    cursor:pointer;
    font-size:14px;
    color: #000;
}

.so-cs-caret {
    width:18px;
    height:18px;
    transform-origin:center;
    transition:transform .18s ease;
}

.so-cs-open .so-cs-caret {
    transform:rotate(180deg);
}

.so-cs-panel {
    position: absolute;
    left:0;
    right:0;
    margin-top:8px;
    background-color: #fff;
    border:1px solid #d0d7de;
    border-radius:3px;
    box-shadow: 0 12px 30px rgba(16,24,40,0.12);
    z-index: 1000;
    overflow: hidden;
}

.so-cs-search {
    display:flex;
    align-items:center;
    gap:8px;
    padding:8px;
    border-bottom:1px solid rgba(0,0,0,0.07);
}

.so-cs-search input {
    flex:1;
    border:0;
    outline:0;
    font-size:14px;
    padding:8px;
}

.so-cs-list {
    max-height: 220px;
    overflow:auto;
    list-style:none;
    margin:0;
    padding:6px;
    display:block;
}

.so-cs-option {
    padding:9px 10px;
    border-radius:8px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:10px;
}

.so-cs-option:hover, .so-cs-option[aria-selected="true"], .so-cs-option .so-cs-highlight {
    background:rgba(37,99,235,0.06);
}

.so-cs-option .so-meta {
    font-size:12px;
    color:var(--muted);
    margin-left:auto;
}

.so-match {
    font-weight:600;
    text-decoration:underline;
}

.so-cs-empty {
    padding:12px;
    color:var(--muted);
    text-align:center;
    font-size:13px;
}

@media only screen and (max-width: 600px) {
    .so-custom-select {
        width:100%;
    }
    .so-cs-display {
        min-width: 300px;
    }
}