.instselect {
    width: 100%;
    max-width: 560px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.instselect_search {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: inherit;
    border: 1px solid #CCD6D6;
    border-radius: 10px;
    background: #EEF2F1;
}

.instselect_search:focus {
    outline-offset: 1px;
    background: #FFFFFF;
}

.instselect_options {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 12px;
    max-height: 240px;
    overflow-y: auto;
    padding: 4px;
    margin: 0;
    border: 0;
}

.instselect .opt {
    flex: 1 1 160px;          
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid #CCD6D6;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.instselect .opt[hidden] {
    display: none;
}

.instselect .opt:hover {
    border-color: #56afea;
}

.instselect .opt input {             
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.instselect .opt_code {
    font-size: .8rem;
    color: #5F7178;
    font-variant-numeric: tabular-nums;
}

.instselect .opt_name {
    font-weight: 500;
    line-height: 1.1em;
}

.instselect .opt:has(input:checked) {
    border-color: #56afea;
    background: #E1EFEF;
    box-shadow: inset 0 0 0 1px #56afea;
}

.instselect .opt:has(input:focus-visible) {
    outline: 2px solid #56afea;
    outline-offset: 2px;
}

.instselect_empty {
    width: 100%;
    margin: 0;
    padding: 20px 0;
    text-align: center;
    color: #5F7178;
}

.instselect_remember {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #CCD6D6;
    cursor: pointer;
    user-select: none;
}

.instselect_remember input {
    width: 18px;
    height: 18px;
    accent-color: #56afea;
}