/**
 * Lafka cart line-item — mobile-first list-row layout.
 *
 * Pairs with the lafka-cart-item markup emitted by lafka-theme >= 5.19.0
 * (woocommerce/cart/cart.php). Replaces WC's table-based row layout.
 *
 * Mobile + desktop: single-column list of cards (cart already feels
 * cramped at desktop — list-row is right at any width).
 *
 * @package Lafka
 * @since   5.19.0
 */

.lafka-cart {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
}

.lafka-cart-item {
	display: grid;
	grid-template-columns: 80px 1fr;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	margin: 0;
}

.lafka-cart-item__img-wrap {
	width: 80px;
	height: 80px;
	background: #f5f5f5;
	overflow: hidden;
}

.lafka-cart-item__img-wrap img,
.lafka-cart-item__img-wrap a img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	display: block;
}

.lafka-cart-item__body {
	padding: 8px 10px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.lafka-cart-item__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lafka-cart-item__title a {
	color: inherit;
	text-decoration: none;
}

.lafka-cart-item__meta {
	font-size: 12px;
	line-height: 1.3;
	color: #6a6a6a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.lafka-cart-item__meta dl,
.lafka-cart-item__meta p {
	margin: 0;
	display: inline;
}

.lafka-cart-item__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: auto;
}

.lafka-cart-item__price {
	font-size: 14px;
	font-weight: 700;
	color: var(--lafka-primary, currentColor);
	white-space: nowrap;
}

.lafka-cart-item__qty input {
	width: 56px;
	padding: 4px 6px;
	font-size: 14px;
	text-align: center;
}

.lafka-cart-item__remove {
	color: #999;
	font-size: 18px;
	line-height: 1;
	text-decoration: none;
	padding: 4px 8px;
	border-radius: 4px;
}

.lafka-cart-item__remove:hover,
.lafka-cart-item__remove:focus {
	color: #c62828;
	background: rgba(198, 40, 40, 0.06);
}

/* Cart actions row (coupon + update). */
.lafka-cart__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 0 0 24px;
}

.lafka-cart__actions .coupon {
	display: flex;
	gap: 8px;
	flex: 1 1 220px;
}

.lafka-cart__actions .coupon input {
	flex: 1;
	min-width: 0;
}
