/* Estilos para la X de deselección (escritorio) */
.variations_form .attribute-pa_capacidad li.active a {
    position: relative;
    padding-right: 10px;
    overflow: visible;
}

.variations_form .attribute-pa_capacidad li.active a .deselect-variant {
    position: absolute;
    top: -8px;
    right: -8px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    font-size: 1em;
    line-height: 1;
    text-decoration: none;
    background-color: #333;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
    z-index: 10;
}

.variations_form .attribute-pa_capacidad li.active a .deselect-variant:hover {
    background-color: #e00;
}

/* ------------------------------------------- */
/* Estilos Específicos para Mobile */
/* Define un breakpoint, por ejemplo, 767px o 991px, dependiendo de tu tema WoodMart. */
/* WoodMart a menudo usa breakpoints como 768px, 992px, 1200px. Revisa la documentación de tu tema o inspecciona el CSS de WoodMart. */
@media (max-width: 767px) { /* Ejemplo de breakpoint para móviles */

    /* Ocultar la 'X' en móviles */
    .variations_form .attribute-pa_capacidad li.active a .deselect-variant {
        display: none !important; /* Asegura que la 'X' esté oculta */
    }

    /* Mostrar y estilizar el nuevo botón de eliminar selección */
    .variations_form .attribute-pa_capacidad li.active .woodmart-deselect-button {
        display: block; /* O flex, dependiendo del diseño */
        margin-top: 5px; /* Espacio entre el botón de variante y el de eliminar */
        width: 100%; /* Ocupa todo el ancho */
        padding: 8px 15px; /* Espaciado interno */
        background-color: #f0f0f0; /* Fondo gris claro */
        color: #333; /* Texto oscuro */
        border: 1px solid #ddd;
        border-radius: 3px;
        text-align: center;
        cursor: pointer;
        font-size: 0.9em;
        text-transform: uppercase;
        font-weight: bold;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .variations_form .attribute-pa_capacidad li.active .woodmart-deselect-button:hover,
    .variations_form .attribute-pa_capacidad li.active .woodmart-deselect-button:active {
        background-color: #e00; /* Fondo rojo al pasar el ratón/tocar */
        color: #fff; /* Texto blanco */
        border-color: #e00;
    }
}