/**
 * Estilos para el carrito lateral de Creative Elements
 * Estilo "bundle" para calendarios agrupados
 */

/* Contenedor principal del producto */
.elementor-cart__product--calendar-bundle,
.elementor-cart__product--calendar-personalized {
    position: relative !important;
    background: transparent;
    padding: 8px 8px 8px 0 !important;
    margin-bottom: 8px;
}

/* Imagen del producto */
.elementor-cart__product--calendar-bundle .elementor-cart__product-image,
.elementor-cart__product--calendar-personalized .elementor-cart__product-image {
    width: 60px;
    flex-shrink: 0;
}

.elementor-cart__product--calendar-bundle .elementor-cart__product-image img,
.elementor-cart__product--calendar-personalized .elementor-cart__product-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* Imagen subida por el usuario */
.elementor-cart__product-image img.uploaded-image {
    border: 2px solid #6f42c1;
}

/* Nombre del producto */
.elementor-cart__product--calendar-bundle .elementor-cart__product-name,
.elementor-cart__product--calendar-personalized .elementor-cart__product-name {
    flex: 1;
    min-width: 0;
}

.elementor-cart__product--calendar-bundle .elementor-cart__product-name a,
.elementor-cart__product--calendar-personalized .elementor-cart__product-name a {
    font-weight: 600;
    color: #333;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

/* Precio */
.elementor-cart__product--calendar-bundle .elementor-cart__product-price,
.elementor-cart__product--calendar-personalized .elementor-cart__product-price {
    width: 100%;
    text-align: right;
    font-size: 12px;
    color: #333;
    padding-right: 25px;
}

/* Contenedor de items del bundle */
.elementor-cart__bundle-items {
    margin-top: 6px;
    padding-left: 0;
    padding-right: 20px;
}

.elementor-cart__bundle-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

.elementor-cart__bundle-item-img {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.elementor-cart__bundle-item-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elementor-cart__bundle-item small {
    color: #999;
    font-size: 10px;
}

/* Badges para tipos de items */
.bundle-item-badge {
    display: inline-block;
    font-size: 10px;
    margin-right: 2px;
}

/* Tipos de items */
.elementor-cart__bundle-item--design .elementor-cart__bundle-item-text {
    color: #0d6efd;
}

.elementor-cart__bundle-item--extra .elementor-cart__bundle-item-text {
    color: #198754;
}

/* Nota de observaciones */
.elementor-cart__bundle-item--note {
    font-style: italic;
    color: #6c757d;
    border-top: 1px dashed #dee2e6;
    margin-top: 4px;
    padding-top: 4px;
}

.elementor-cart__bundle-item--note em {
    font-style: italic;
}

/* Archivo adjunto */
.elementor-cart__bundle-item--file .elementor-cart__bundle-item-text {
    color: #6f42c1;
}

.elementor-cart__bundle-item--file a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #6f42c1;
}

.elementor-cart__bundle-item--file a:hover {
    text-decoration: underline;
}

/* Miniatura de imagen subida en bundle */
.elementor-cart__bundle-item--file .uploaded-thumb {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
    border: 1px solid #6f42c1;
    border-radius: 4px;
}

/* Extras personalizados */
.elementor-cart__bundle-item--extra_custom .elementor-cart__bundle-item-text {
    color: #198754;
}

/* Responsive: En pantallas pequeñas */
@media (max-width: 480px) {
    .elementor-cart__bundle-item {
        font-size: 10px;
    }
    
    .elementor-cart__bundle-item-img {
        width: 16px;
        height: 16px;
    }
    
    .elementor-cart__product--calendar-bundle .elementor-cart__product-image,
    .elementor-cart__product--calendar-personalized .elementor-cart__product-image {
        width: 50px;
    }
    
    .elementor-cart__product--calendar-bundle .elementor-cart__product-image img,
    .elementor-cart__product--calendar-personalized .elementor-cart__product-image img {
        width: 50px;
        height: 50px;
    }
}
