/* Compact product rows on the full WooCommerce cart page. */
@media only screen and (max-width: 768px) {
	.woocommerce-cart table.shop_table.cart tbody tr.cart_item {
		display: grid !important;
		grid-template-columns: 68px minmax(0, 1fr) max-content;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb quantity subtotal";
			align-items: center;
			column-gap: 12px;
			row-gap: 4px;
			margin: 0 !important;
			padding: 14px 0 !important;
			border-width: 0 0 1px !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item > td {
		box-sizing: border-box;
		min-width: 0;
		width: auto !important;
		max-width: none;
		padding: 0 !important;
		border: 0 !important;
		text-align: left;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item > td::before {
		display: none !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-remove {
		position: static !important;
		grid-area: remove;
		justify-self: end;
		align-self: start;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail {
		grid-area: thumb;
		align-self: center;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-thumbnail img {
		display: block;
		width: 68px;
		max-width: 68px;
		max-height: 76px;
		margin: 0 auto;
		object-fit: contain;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name {
		grid-area: name;
		text-align: left !important;
		font-size: 16px !important;
		font-weight: 600;
		line-height: 1.25;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name a {
		display: block !important;
		overflow: visible;
		text-align: left !important;
		max-width: none;
		margin: 0;
		font-size: 15px !important;
		font-weight: 500 !important;
		line-height: 1.25 !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name dl.variation {
		display: block !important;
		visibility: visible !important;
		overflow: visible !important;
		width: 100%;
		margin: 4px 0 0;
		font-size: 12px;
		font-weight: 400 !important;
		line-height: 1.35;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name dl.variation dt,
	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name dl.variation dd,
	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-name dl.variation p {
		font-size: inherit !important;
		font-weight: 400 !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-price {
		grid-area: price;
		text-align: left !important;
		font-size: 13px;
		line-height: 1.3;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity {
		grid-area: quantity;
		min-width: 0;
		justify-self: start;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity {
		margin: 0 !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity .minus,
	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity .plus {
		box-sizing: border-box;
		width: 32px !important;
		height: 38px !important;
		margin: 0 !important;
		padding: 0 !important;
		background-size: 16px;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-quantity .quantity input.qty {
		box-sizing: border-box;
		width: 38px !important;
		height: 38px !important;
		font-size: 15px !important;
	}

	.woocommerce-cart table.shop_table.cart tbody tr.cart_item td.product-subtotal {
		grid-area: subtotal;
		justify-self: end;
		padding-right: 0;
		font-size: 18px !important;
		font-weight: 600;
		text-align: right;
		white-space: nowrap;
	}
}
