/* Product rows stay compact independently of the older cart table breakpoints. */
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .cart-table .basket-item-card {
  grid-template-columns: 72px minmax(0, 1fr) 142px 100px;
  grid-template-areas: "image info quantity total" "image unit quantity remove";
  gap: 6px 20px;
  padding: 20px;
  align-items: center;
  background: #fff;
}
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-image { grid-area: image; align-self: start; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-info { grid-area: info; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-unit { grid-area: unit; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-quantity { grid-area: quantity; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-total { grid-area: total; text-align: right; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-remove { grid-area: remove; text-align: right; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card img,
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-image-placeholder { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: #f1f6f9; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-image-placeholder { display: grid; place-items: center; color: #6b8a9f; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card h4 { font-size: 1rem; line-height: 1.45; margin: 0; overflow-wrap: anywhere; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card h4 a { color: #183653; font-weight: 600; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card p { margin: 5px 0 0; font-size: .85rem; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-unit::before { display: none; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-unit .price { font-size: .9rem !important; color: #526776; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-unit::after { content: " / unité"; font-size: .8rem; color: #526776; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .shopping-cart__subtotal { font-size: 1.05rem; font-weight: 700; color: #183653; white-space: nowrap; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card small { font-size: .75rem; font-weight: 400; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-remove { font-size: .8rem; color: #526776; min-height: 36px; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-details summary { padding: 4px 0; font-size: .8rem; color: #526776; }
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card td[data-label]::before { font-size: .75rem; }
@media(max-width:1199.98px) {
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .cart-table .basket-item-card {
    grid-template-columns: 64px minmax(0,1fr) auto;
    grid-template-areas: "image info info" "unit quantity total" "remove remove remove";
    gap: 12px;
    padding: 16px;
  }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-unit { align-self: end; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-unit::after { display: block; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .basket-item-remove { text-align: left; border-top: 1px solid #e5edf2 !important; padding-top: 2px !important; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .qty-control { grid-template-columns: 36px 40px 36px; width: 112px !important; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .qty-control input { width: 40px !important; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card .qty-control button { width: 36px; }
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-item-card img,
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .basket-image-placeholder { width: 64px; height: 64px; }
}
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .shopping-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .cart-table__wrapper,
.frontend-theme .shop-checkout.insieme-checkout.basket-workspace .shopping-cart__totals-wrapper {
  width: 100%; max-width: 100%; min-width: 0; padding: 0;
}
@media(max-width:991.98px) {
  .frontend-theme .shop-checkout.insieme-checkout.basket-workspace .shopping-cart { grid-template-columns: minmax(0,1fr); gap: 20px; }
}
