/*
 * Estilos para los botones de exportación e importación del carrito
 * y el modal de avisos. Los botones se posicionan de forma absoluta
 * en la esquina inferior izquierda de la página. El modal cubre
 * toda la pantalla con un fondo semitransparente cuando hay avisos.
 */

#cie-cart-buttons {
    /* Usar posición fija para que los botones estén siempre visibles en la pantalla. */
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
}

#cie-cart-buttons .button {
    margin-right: 8px;
}

#cie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

/* Estilos para el modal de confirmación de importación. */
#cie-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#cie-confirm-modal .cie-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#cie-confirm-modal .cie-modal-content h2 {
    margin-top: 0;
    font-size: 1.2em;
}

#cie-confirm-modal .cie-confirm-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1em;
}

#cie-confirm-modal .cie-confirm-actions .button {
    margin-right: 8px;
    flex: 1;
    text-align: center;
}

#cie-modal .cie-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#cie-modal .cie-modal-content h2 {
    margin-top: 0;
    font-size: 1.2em;
}

#cie-modal .cie-modal-content ul {
    margin: 1em 0;
    padding-left: 1.2em;
    max-height: 200px;
    overflow-y: auto;
    list-style-type: disc;
}

#cie-modal .cie-modal-content button {
    display: inline-block;
    margin-top: 1em;
}