/* Estilos básicos para el botón select */
.boton-select-wrapper {
    position: relative;
    display: flex; 
    gap: 10px;    
    width: 100%;
    max-width: 300px;
}

.boton-select-toggle {
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    /* --- AÑADE ESTAS LÍNEAS --- */
    white-space: normal; /* Permite que el texto se divida en varias líneas */
    height: auto;       /* Ajusta la altura del botón automáticamente al contenido */
    line-height: 1.4;   /* (Opcional) Mejora el espaciado entre líneas */
}

.boton-select-toggle:hover,
.boton-select-toggle:focus {
    background-color: #005177;
    outline: none;
}

.boton-select-dropdown {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%; /* Asegura que el menú aparezca debajo del botón */
    left: 0;
    background-color: #f9f9f9;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.boton-select-dropdown li a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

.boton-select-dropdown li a:hover {
    background-color: #ddd;
}

/* --- ESTILOS PARA EL BOTÓN DE LIMPIAR ELIMINADOS --- */

/* ESTILOS PARA EL MENÚ DE SUBCATEGORÍAS DEL SHORTCODE */
.shortcode-sub-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.shortcode-sub-categories-container .sub-category-item {
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.shortcode-sub-categories-container .sub-category-item:hover {
    background-color: #e6e6e6;
}

.loading-message, .no-sub-message, .error-message {
    font-style: italic;
    color: #555;
    padding: 10px;
    text-align: center;
    width: 100%;
}



