.select-search {
    position: relative;
    display: block;
    min-width: 0;
}

.select-search .is-native {
    display: none;
}

.select-search .select-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.select-search .select-trigger .trigger-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.select-search .select-trigger .trigger-label.is-empty {
    color: var(--text-muted);
}

.select-search .select-trigger .trigger-caret {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    transition: transform 0.15s ease;
}

.select-search .select-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.select-search.is-open .select-trigger .trigger-caret {
    transform: rotate(180deg);
}

.select-search .select-panel {
    position: fixed;
    z-index: 80;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: var(--rd-md);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.select-search .select-panel .select-find {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 0 10px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: var(--rd-sm);
}

.select-search .select-panel .select-find i {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

.select-search .select-panel .select-find .find-input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: var(--fs-md);
    outline: none;
}

.select-search .select-panel .select-list {
    max-height: 260px;
    overflow-y: auto;
}

.select-search .select-panel .select-list .select-group {
    display: block;
    padding: 8px 10px 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-lg);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.select-search .select-panel .select-list .select-option {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--rd-sm);
    background: transparent;
    color: var(--text-color);
    font-family: inherit;
    font-size: var(--fs-md);
    text-align: left;
    cursor: pointer;
}

.select-search .select-panel .select-list .select-option:hover,
.select-search .select-panel .select-list .select-option:focus-visible {
    background: var(--bg-color);
    outline: none;
}

.select-search .select-panel .select-list .select-option.is-active {
    background: var(--theme-color);
    color: var(--white);
    font-weight: var(--fw-lg);
}

.select-search .select-panel .select-list .select-option:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.select-search .select-panel .select-list .select-option:disabled:hover {
    background: transparent;
}

.select-search .select-panel .select-list .select-empty {
    margin: 0;
    padding: 12px 10px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
}

@media (max-width: 576px) {
    .select-search .select-panel {
        max-width: none;
    }

    .select-search .select-panel .select-list {
        max-height: 46vh;
    }

    .select-search .select-panel .select-option {
        padding: 11px 10px;
    }
}
