/*
 * 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 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#cie-cart-buttons.cie-floating {
    position: fixed;
    bottom: 10px;
    left: 10px;
    z-index: 1000;
}

#cie-cart-buttons .cie-btn {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#cie-cart-buttons .cie-btn-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.cie-export-dropdown {
    position: relative;
    display: inline-block;
}

.cie-export-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #396ab1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 180px;
    z-index: 1001;
}

.cie-export-dropdown:hover .cie-export-menu,
.cie-export-dropdown:focus-within .cie-export-menu,
.cie-export-dropdown.cie-open .cie-export-menu,
.cie-export-dropdown.cie-hover .cie-export-menu {
    display: flex;
}

.cie-export-dropdown.cie-single-template .cie-export-menu {
    display: none !important;
}

.cie-export-menu .cie-export-option {
    justify-content: flex-start;
    background: white;
    color: #396ab1;
    border: none;
    border-radius: 0;
    padding: 8px 12px;
    width: 100%;
    text-align: left;
    box-shadow: none;
}

.cie-export-menu .cie-export-option:hover,
.cie-export-menu .cie-export-option:focus {
    background: #396ab1;
    color: #fff;
}

#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;
}
