/* ========================================================================== */
/* CART SUMMARIZER                                                        */
/* ========================================================================== */

.cart-summarizer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0; /* Removing padding to align with checkout layout */
}

.cart-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05); /* Assuming dark mode or keep transparent if light */
    /* Adjusting based on checkout-page context, maybe white background? 
       checkout-page uses white cards. Let's stick to simple layout styles. */
    border-radius: 12px;
    padding: 0.75rem 0; /* minimalist */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* If inside checkout-left, we want it to look integrated */
.checkout-left .cart-item {
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 0;
}

.cart-item img.cart-item-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    color: #032f4f; /* Matching checkout headers */
}

.cart-item-spec {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: #48687f;
}

.cart-item-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #48687f;
    align-items: center;
}

.cart-item-details .price {
    font-weight: bold;
    color: #032f4f;
    font-size: 1.1rem;
}

/* Ensure remove button is tappable */
.cart-item-details .mud-button-root {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 575.98px) {
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cart-item img.cart-item-image {
        width: 100%;
        height: auto;
        max-width: 100px; /* Limit size */
        margin-right: 0;
    }
    
    .cart-item-info {
        width: 100%;
    }

    .cart-item-details {
        width: 100%;
        margin-top: 8px;
        justify-content: space-between;
    }
}

