/*
 * Martfury 2.8.5 cart CSS that Martfury 3.x removed (InstaDelivery v1.0.62.1).
 *
 * Every rule below is copied verbatim from Martfury 2.8.5's style.css: the cart
 * rules that 3.4.4 no longer has. Together with templates/woocommerce/cart/cart.php
 * they bring back the phone cart card that mobile.css was built on. The last
 * block undoes the three cart rules that 3.4.4 added. Loaded only on the cart,
 * only with Martfury 3 or newer, after the theme's style.css.
 */

.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table {
	margin-bottom: 20px;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table th {
	display: none;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity {
	display: flex;
	padding: 20px 0 30px;
	width: 100%;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .decrease,
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .increase {
	display: block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity {
	width: 100%;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .quantity .qty {
	width: 100%;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .product-remove {
	display: block;
	padding-left: 12px;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity .product-remove .mf-remove {
	color: #000;
	font-size: 16px;
	height: 39px;
	line-height: 42px;
	width: 39px;
	background-color: #f0f0f0;
	display: block;
	text-align: center;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name {
	padding: 20px 0 0;
	border-bottom: none;
	display: block;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name .product-item-thumb {
	float: left;
	margin-right: 15px;
	margin-top: 0;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name dl.variation {
	margin-top: 4px;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-name .woocommerce-Price-amount {
	font-size: 16px;
	color: #ff3300;
}
.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table .product-remove {
	display: none;
}

@media (max-width: 991px) {
	.woocommerce-cart table.shop_table tr .product-price,
	.woocommerce-cart table.shop_table tr .product-thumbnail,
	.woocommerce-cart table.shop_table tr .product-subtotal {
		display: none;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name {
		padding-top: 10px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile {
		display: block;
		margin-top: 5px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .woocommerce-Price-amount,
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile label {
		display: inline-block;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item {
		padding: 3px 0;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item label {
		padding-right: 5px;
		font-weight: 400;
		color: #999;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item .quantity {
		display: inline-block;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item-qty {
		margin-bottom: 5px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item-qty .quantity .label {
		display: none;
	}
}

@media (max-width: 767px) {
	.woocommerce-cart .woocommerce table.shop_table td.product-name .product-detail-mobile .product-item .quantity {
		display: block;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name {
		min-width: 185px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name a {
		font-size: 14px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name dl.variation dt {
		float: none;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-thumbnail {
		padding-left: 10px;
		width: 100px;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name dl.variation dd {
		display: inline-block;
	}
}

@media (max-width: 479px) {
	.woocommerce-cart .woocommerce table.shop_table td.product-quantity {
		width: auto;
	}
	.woocommerce-cart .woocommerce table.shop_table td.product-name {
		min-width: auto;
	}
	.woocommerce-cart .woocommerce table.shop_table td .quantity {
		width: 50px;
	}
	.woocommerce-cart .woocommerce table.shop_table td .quantity .qty {
		margin-right: 0;
		margin-left: 0;
	}
	.woocommerce-cart .woocommerce table.shop_table td .quantity .decrease,
	.woocommerce-cart .woocommerce table.shop_table td .quantity .increase {
		display: none;
	}
}

/* Undo what 3.4.4 added for its own phone layout (photo in a separate cell,
   each row padded and ruled). */
@media (max-width: 767px) {
	.woocommerce-cart .woocommerce table.cart tr {
		border-bottom: 0;
		padding-top: 0;
		padding-bottom: 0;
	}
	.woocommerce-cart .woocommerce table.cart tr.cart_item {
		position: static;
		padding-left: 0;
	}
}
@media (max-width: 991px) {
	.woocommerce-cart table.shop_table tr td.product-thumbnail {
		padding-left: 10px !important;
	}
	.mobile-version.woocommerce-cart .woocommerce-cart-form table.shop_table td.product-quantity {
		width: 100% !important;
	}
}
/* 3.4.4 forces "padding-top: 0 !important; padding-bottom: 10px !important" on every
   cart cell below 768px; mobile.css (section 4) gives the actions cell its own. */
@media (max-width: 680px) {
	body.idpr-redesign-cart.woocommerce-cart .woocommerce table.cart td.actions {
		padding: 4px 16px 18px !important;
	}
}
/* 3.4.4 also forces "width: auto !important" on every cart cell below 992px; on a
   tablet that moved the quantity column. 150px and 70px are what the quantity and
   remove columns measured with 2.8.5. */
@media (min-width: 768px) and (max-width: 991px) {
	.woocommerce-cart table.shop_table tr td.product-quantity {
		width: 150px !important;
	}
	.woocommerce-cart table.shop_table tr td.product-remove {
		width: 70px !important;
	}
}
