/* Contenedor principal */
.native-select-search-wrapper {
    position: relative;
    width: 100%;
    font-family: inherit; /* Heredar fuente para consistencia */
}

/* Contenedor del input y botón de limpiar */
.native-select-search-input-container {
    position: relative;
}

/* Campo de entrada de búsqueda */
.native-select-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: inherit; /* Heredar tamaño de fuente */
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding-right: 30px; /* Espacio para el botón de limpiar */
}

/* Estilo cuando el input tiene foco */
.native-select-search-input:focus {
    outline: none;
    border-color: #66afe9;
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* Botón para limpiar selección */
.native-select-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 0 5px;
    display: none; /* Oculto por defecto */
}

.native-select-search-clear:hover {
    color: #555;
}

/* Contenedor del dropdown */
.native-select-search-dropdown {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: -1px; /* Para solapar con el borde del input */
}

/* Opciones individuales */
.native-select-search-option {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: inherit;
    line-height: 1.5;
}

/* Efecto hover para las opciones */
.native-select-search-option:hover {
    background-color: #f5f5f5;
}

/* Estilo para opción seleccionada (puedes añadir esta clase dinámicamente) */
.native-select-search-option.selected {
    background-color: #e6f2ff;
}

/* Mensaje cuando no hay resultados */
.native-select-search-no-results {
    padding: 8px 12px;
    color: #999;
    font-style: italic;
    font-size: inherit;
}

@media (max-width: 768px) {
    .native-select-search-dropdown {
        max-height: 150px;
    }
}