body.woocommerce-cart {
	background: #f7f6fb;
}

body.woocommerce-cart .main,
body.woocommerce-cart main,
body.woocommerce-cart .woocommerce {
	direction: rtl;
}

body.woocommerce-cart .woocommerce {
	margin: 0 auto;
	max-width: 1080px;
	padding: 18px 16px 110px;
}

body.woocommerce-cart h1,
body.woocommerce-cart .page-title,
body.woocommerce-cart .entry-title {
	color: #171321;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.35;
	margin: 0 0 16px;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
	margin-bottom: 14px;
}

.ye-cart-form {
	margin: 0;
}

.ye-cart-table {
	background: transparent;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	overflow: visible;
	width: 100%;
}

.ye-cart-table thead {
	display: none;
}

body.woocommerce-cart .ye-cart-table tbody,
body.woocommerce-cart .ye-cart-table tr,
body.woocommerce-cart .ye-cart-table td {
	display: block;
	width: 100%;
}

body.woocommerce-cart .ye-cart-table .ye-cart-item {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(23, 19, 33, 0.06);
	margin: 0 0 14px;
	overflow: hidden;
	padding: 16px;
	position: relative;
}

body.woocommerce-cart .ye-cart-table .ye-cart-item td {
	background: transparent;
	border: 0;
	padding: 0;
	text-align: right;
}

body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td::before {
	content: none;
	display: none;
}

.ye-cart-table .product-remove {
	left: 12px;
	position: absolute;
	top: 12px;
	width: auto;
	z-index: 2;
}

.ye-cart-table .product-remove a.remove {
	align-items: center;
	background: rgba(239, 68, 68, 0.09);
	border-radius: 999px;
	color: #dc2626 !important;
	display: inline-flex;
	font-size: 18px;
	font-weight: 700;
	height: 28px;
	justify-content: center;
	line-height: 1;
	text-decoration: none;
	width: 28px;
}

body.woocommerce-cart .ye-cart-table .product-thumbnail {
	border-bottom: 1px solid rgba(23, 19, 33, 0.06);
	margin: 0;
	max-width: none;
	padding: 0 0 12px;
}

.ye-cart-table .product-thumbnail a,
.ye-cart-table .product-thumbnail img {
	display: block;
}

body.woocommerce-cart .ye-cart-table .product-thumbnail img {
	background: #f3f0f8;
	border-radius: 14px;
	height: 84px;
	object-fit: cover;
	width: 84px;
}

body.woocommerce-cart .ye-cart-table .product-name,
body.woocommerce-cart .ye-cart-table .product-price,
body.woocommerce-cart .ye-cart-table .product-quantity,
body.woocommerce-cart .ye-cart-table .product-subtotal {
	align-items: center;
	border-bottom: 1px solid rgba(23, 19, 33, 0.06);
	color: #171321;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	min-width: 0;
	padding: 10px 0;
}

body.woocommerce-cart .ye-cart-table .product-name {
	align-items: flex-start;
	padding-left: 38px;
}

body.woocommerce-cart .ye-cart-table .product-name::before,
body.woocommerce-cart .ye-cart-table .product-price::before,
body.woocommerce-cart .ye-cart-table .product-quantity::before,
body.woocommerce-cart .ye-cart-table .product-subtotal::before {
	color: rgba(23, 19, 33, 0.58);
	content: attr(data-title);
	display: block;
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.5;
	margin: 0;
	padding-left: 10px;
	text-align: right;
}

body.woocommerce-cart .ye-cart-table .product-name a {
	color: #171321;
	display: -webkit-box;
	flex: 1 1 auto;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.55;
	max-width: 72%;
	min-width: 0;
	overflow: hidden;
	text-align: left;
	text-decoration: none;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

body.woocommerce-cart .ye-cart-table .product-subtotal {
	border-bottom: 0;
	padding-bottom: 0;
}

body.woocommerce-cart .ye-cart-table .product-price > *,
body.woocommerce-cart .ye-cart-table .product-subtotal > * {
	flex: 1 1 auto;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.5;
	text-align: left;
}

body.woocommerce-cart .ye-cart-table .product-quantity > .quantity {
	flex: 0 0 auto;
}

body.woocommerce-cart .ye-cart-table .quantity {
	margin: 0;
	padding: 0;
}

body.woocommerce-cart .ye-cart-table .quantity input[type="number"],
body.woocommerce-cart .woocommerce .quantity input[type="number"] {
	background: #faf9fc;
	border: 1px solid rgba(23, 19, 33, 0.12);
	border-radius: 12px;
	color: #171321;
	font-size: 14px;
	font-weight: 800;
	height: 40px;
	margin: 0;
	min-width: 0;
	padding: 0 8px;
	text-align: center;
	width: 64px;
}

body.woocommerce-cart .quantity .qty-plus,
body.woocommerce-cart .quantity .qty-minus,
body.woocommerce-cart .quantity .plus,
body.woocommerce-cart .quantity .minus,
body.woocommerce-cart .quantity button,
body.woocommerce-cart .quantity .woocommerce-quantity-button,
body.woocommerce-cart .ye-cart-qty-btn {
	display: none !important;
}

body.woocommerce-cart .ye-cart-qty-static {
	align-items: center;
	background: #fbfafc;
	border: 1px solid rgba(23, 19, 33, 0.1);
	border-radius: 12px;
	color: #171321;
	display: inline-flex;
	font-size: 14px;
	font-weight: 900;
	height: 38px;
	justify-content: center;
	min-width: 64px;
	padding: 0 14px;
}

.ye-cart-table .ye-cart-actions-row,
.ye-cart-table .ye-cart-actions-row td {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}

.ye-cart-table td.actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 2px;
	padding: 0;
}

.ye-cart-coupon {
	align-items: stretch;
	display: flex;
	gap: 10px;
	width: 100%;
}

.ye-cart-coupon .input-text {
	background: #fff;
	border: 1px solid rgba(23, 19, 33, 0.1);
	border-radius: 12px;
	box-shadow: none;
	color: #171321;
	flex: 1 1 auto;
	font-size: 13px;
	height: 46px;
	min-width: 0;
	min-height: 44px;
	padding: 0 12px;
}

.ye-cart-table td.actions .button,
.ye-cart-coupon .button {
	align-items: center;
	background: #f0ebf8;
	border: 0;
	border-radius: 12px;
	box-shadow: none;
	color: #5b21b6;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	height: 46px;
	justify-content: center;
	line-height: 1.4;
	padding: 0 14px;
	white-space: nowrap;
}

.ye-cart-table td.actions > .button[name="update_cart"] {
	background: #fff;
	border: 1px solid rgba(23, 19, 33, 0.08);
	color: rgba(23, 19, 33, 0.68);
	width: 100%;
}

.ye-cart-table td.actions > .button:disabled,
.ye-cart-table td.actions > .button[disabled] {
	background: rgba(255, 255, 255, 0.72);
	color: rgba(23, 19, 33, 0.32);
	cursor: not-allowed;
	opacity: 1;
}

.ye-cart-collaterals {
	margin-top: 16px;
}

body.woocommerce-cart .cart-collaterals .cart_totals,
body.woocommerce-cart.woocommerce-page .cart-collaterals .cart_totals {
	background: #fff;
	border: 1px solid rgba(23, 19, 33, 0.06);
	border-radius: 18px;
	box-shadow: 0 12px 30px rgba(23, 19, 33, 0.06);
	float: none;
	padding: 16px;
	width: 100%;
}

body.woocommerce-cart .cart_totals h2 {
	color: #171321;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.45;
	margin: 0 0 12px;
}

body.woocommerce-cart .cart_totals table {
	border: 0;
	border-collapse: collapse;
	display: block;
	margin: 0;
	width: 100%;
}

body.woocommerce-cart .cart_totals table tr {
	border-bottom: 1px solid rgba(23, 19, 33, 0.06);
	display: flex;
	gap: 12px;
	justify-content: space-between;
	width: 100%;
}

body.woocommerce-cart .cart_totals table tr:last-child {
	border-bottom: 0;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	background: transparent;
	border: 0;
	color: rgba(23, 19, 33, 0.72);
	display: block;
	font-size: 13px;
	line-height: 1.6;
	padding: 12px 0;
	text-align: right;
	width: auto;
}

body.woocommerce-cart .cart_totals table td {
	color: #171321;
	font-weight: 800;
	text-align: left;
}

body.woocommerce-cart .cart_totals table td::before,
body.woocommerce-cart .cart_totals table td::after {
	content: none !important;
	display: none !important;
}

body.woocommerce-cart .cart_totals table .order-total th,
body.woocommerce-cart .cart_totals table .order-total td {
	color: #171321;
	font-size: 15px;
	font-weight: 900;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 14px 0 0;
	padding: 0;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	align-items: center;
	background: linear-gradient(135deg, #16a34a, #22c55e);
	border: 0;
	border-radius: 14px;
	box-shadow: 0 14px 28px rgba(34, 197, 94, 0.22);
	color: #fff;
	display: flex;
	font-size: 18px;
	font-weight: 900;
	height: 52px;
	justify-content: center;
	line-height: 1.3;
	margin: 0;
	padding: 0 16px;
	text-decoration: none;
	width: 100%;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	box-shadow: 0 16px 34px rgba(34, 197, 94, 0.28);
	color: #fff;
	filter: saturate(1.04);
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:active {
	transform: translateY(1px);
}

@media (max-width: 380px) {
	.ye-cart-coupon {
		flex-direction: column;
	}

	.ye-cart-coupon .button {
		width: 100%;
	}
}

@media (max-width: 767px) {
	body.woocommerce-cart .ye-cart-table,
	body.woocommerce-cart .ye-cart-table tbody,
	body.woocommerce-cart .ye-cart-table tr,
	body.woocommerce-cart .ye-cart-table td {
		background: transparent;
		border: 0;
		box-shadow: none;
		display: block;
		margin: 0;
		padding: 0;
		width: 100%;
	}

	body.woocommerce-cart .ye-cart-table thead,
	body.woocommerce-cart .ye-cart-table .product-thumbnail {
		display: none;
	}

	body.woocommerce-cart .ye-cart-table .ye-cart-item {
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.06);
		border-radius: 20px;
		box-shadow: 0 12px 28px rgba(23, 19, 33, 0.055);
		margin: 0 0 14px;
		overflow: visible;
		padding: 16px;
		position: relative;
	}

	body.woocommerce-cart .ye-cart-table .product-remove {
		left: 12px;
		position: absolute;
		top: 12px;
		width: auto;
		z-index: 2;
	}

	body.woocommerce-cart .ye-cart-table .product-remove a.remove {
		background: rgba(239, 68, 68, 0.08);
		border-radius: 999px;
		color: #ef4444 !important;
		font-size: 16px;
		height: 26px;
		width: 26px;
	}

	body.woocommerce-cart .ye-cart-table .product-name {
		border-bottom: 0;
		display: block;
		margin: 0 0 8px;
		min-height: 26px;
		padding: 2px 4px 0 42px;
	}

	body.woocommerce-cart .ye-cart-table .product-name::before {
		content: none !important;
		display: none !important;
	}

	body.woocommerce-cart .ye-cart-table .product-name a {
		color: #171321;
		display: -webkit-box;
		font-size: 15px;
		font-weight: 900;
		line-height: 1.55;
		max-width: 100%;
		overflow: hidden;
		text-align: right;
		text-decoration: none;
		text-overflow: ellipsis;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	body.woocommerce-cart .ye-cart-table .product-quantity.ye-cart-quantity--static {
		display: none !important;
	}

	body.woocommerce-cart .ye-cart-table .product-price,
	body.woocommerce-cart .ye-cart-table .product-quantity,
	body.woocommerce-cart .ye-cart-table .product-subtotal {
		align-items: center;
		border-bottom: 1px solid rgba(23, 19, 33, 0.06);
		display: grid;
		gap: 8px;
		grid-template-columns: 90px minmax(0, 1fr);
		justify-content: initial;
		min-height: 46px;
		padding: 10px 0;
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table .product-price {
		min-height: 34px;
		padding-top: 0;
	}

	body.woocommerce-cart .ye-cart-table .product-subtotal {
		border-bottom: 0;
		padding-bottom: 0;
	}

	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-price::before,
	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-quantity::before,
	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-subtotal::before {
		color: rgba(23, 19, 33, 0.62);
		display: block !important;
		font-size: 12px;
		font-weight: 900;
		line-height: 1.5;
		margin: 0;
		padding: 0;
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-price::before {
		content: "قیمت:";
	}

	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-quantity::before {
		content: "تعداد:";
	}

	body.woocommerce-cart .ye-cart-table.shop_table_responsive tr td.product-subtotal::before {
		content: "جمع جزء:";
	}

	body.woocommerce-cart .ye-cart-table .product-price,
	body.woocommerce-cart .ye-cart-table .product-subtotal,
	body.woocommerce-cart .ye-cart-table .product-price .amount,
	body.woocommerce-cart .ye-cart-table .product-subtotal .amount {
		color: #171321;
		font-size: 13px;
		font-weight: 900;
		line-height: 1.6;
	}

	body.woocommerce-cart .ye-cart-table .product-price,
	body.woocommerce-cart .ye-cart-table .product-subtotal {
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table .product-price > *,
	body.woocommerce-cart .ye-cart-table .product-subtotal > * {
		min-width: 0;
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table .product-quantity .quantity {
		margin: 0;
		padding: 0;
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table .product-quantity input[type="number"] {
		background: #fbfafc;
		border: 1px solid rgba(23, 19, 33, 0.12);
		border-radius: 12px;
		box-shadow: none;
		color: #171321;
		font-size: 14px;
		font-weight: 900;
		height: 40px;
		line-height: 40px;
		margin: 0;
		padding: 0 8px;
		text-align: center;
		width: 64px;
	}

	body.woocommerce-cart .ye-cart-actions-row,
	body.woocommerce-cart .ye-cart-actions-row td.actions {
		background: transparent;
		border: 0;
		display: block;
		margin: 0;
		padding: 0;
	}

	body.woocommerce-cart .ye-cart-coupon {
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.06);
		border-radius: 16px;
		box-shadow: 0 10px 24px rgba(23, 19, 33, 0.045);
		display: flex;
		gap: 10px;
		margin: 2px 0 10px;
		padding: 12px;
	}

	body.woocommerce-cart .ye-cart-coupon .input-text {
		border-radius: 12px;
		height: 44px;
	}

	body.woocommerce-cart .ye-cart-coupon .button {
		border-radius: 12px;
		height: 44px;
	}

	body.woocommerce-cart .ye-cart-table td.actions > .button[name="update_cart"] {
		border-radius: 14px;
		height: 46px;
		margin: 0;
		width: 100%;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals,
	body.woocommerce-cart.woocommerce-page .cart-collaterals .cart_totals {
		background: #fff;
		border: 1px solid rgba(0, 0, 0, 0.06);
		border-radius: 20px;
		box-shadow: 0 12px 28px rgba(23, 19, 33, 0.055);
		padding: 16px;
	}

	body.woocommerce-cart .cart_totals h2 {
		font-size: 17px;
		margin-bottom: 12px;
		text-align: right;
	}

	body.woocommerce-cart .cart_totals table,
	body.woocommerce-cart .cart_totals table tbody,
	body.woocommerce-cart .cart_totals table tr {
		display: block;
		width: 100%;
	}

	body.woocommerce-cart .cart_totals table tr {
		align-items: center;
		border-bottom: 1px solid rgba(23, 19, 33, 0.06);
		display: grid;
		gap: 8px;
		grid-template-columns: 90px minmax(0, 1fr);
		padding: 11px 0;
	}

	body.woocommerce-cart .cart_totals table tr:last-child {
		border-bottom: 0;
	}

	body.woocommerce-cart .cart_totals table th,
	body.woocommerce-cart .cart_totals table td {
		background: transparent !important;
		border: 0;
		display: block;
		padding: 10px 0px;
		width: auto;
	}

	body.woocommerce-cart .cart_totals table td::before,
	body.woocommerce-cart .cart_totals table td::after {
		content: none !important;
		display: none !important;
	}

	body.woocommerce-cart .cart_totals table th {
		color: rgba(23, 19, 33, 0.64);
		font-size: 13px;
		font-weight: 900;
		text-align: right;
	}

	body.woocommerce-cart .cart_totals table td {
		color: #171321;
		font-size: 13px;
		font-weight: 900;
		text-align: right;
	}

	body.woocommerce-cart .cart_totals table .order-total th,
	body.woocommerce-cart .cart_totals table .order-total td,
	body.woocommerce-cart .cart_totals table .order-total .amount {
		color: #171321;
		font-size: 15px;
		font-weight: 950;
	}

	body.woocommerce-cart .wc-proceed-to-checkout {
		margin-top: 16px;
	}

	body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
		border-radius: 16px;
		font-size: 18px;
		height: 54px;
	}
}

@media (min-width: 768px) {
	body.woocommerce-cart .woocommerce {
		padding: 34px 24px 90px;
	}

	body.woocommerce-cart h1,
	body.woocommerce-cart .page-title,
	body.woocommerce-cart .entry-title {
		font-size: 30px;
		margin-bottom: 22px;
	}

	body.woocommerce-cart .ye-cart-table thead {
		display: table-header-group;
	}

	body.woocommerce-cart .ye-cart-table {
		background: #fff;
		border: 1px solid rgba(23, 19, 33, 0.06);
		border-radius: 18px;
		box-shadow: 0 12px 30px rgba(23, 19, 33, 0.05);
		border-spacing: 0;
		overflow: hidden;
	}

	body.woocommerce-cart .ye-cart-table tbody {
		display: table-row-group;
	}

	body.woocommerce-cart .ye-cart-table tr {
		display: table-row;
	}

	body.woocommerce-cart .ye-cart-table td,
	body.woocommerce-cart .ye-cart-table th {
		display: table-cell;
		width: auto;
	}

	body.woocommerce-cart .ye-cart-table .ye-cart-item {
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		margin: 0;
		padding: 0;
		position: static;
	}

	body.woocommerce-cart .ye-cart-table th,
	body.woocommerce-cart .ye-cart-table .ye-cart-item td {
		border-bottom: 1px solid rgba(23, 19, 33, 0.06);
		padding: 16px 12px;
		vertical-align: middle;
	}

	body.woocommerce-cart .ye-cart-table .product-remove {
		position: static;
		width: 44px;
	}

	body.woocommerce-cart .ye-cart-table .product-thumbnail {
		margin: 0;
		max-width: none;
		padding: 16px 12px;
		width: 82px;
	}

	body.woocommerce-cart .ye-cart-table .product-thumbnail img {
		height: 64px;
		width: 64px;
	}

	body.woocommerce-cart .ye-cart-table .product-name {
		display: table-cell;
		margin: 0;
		padding-left: 12px;
	}

	body.woocommerce-cart .ye-cart-table .product-name::before,
	body.woocommerce-cart .ye-cart-table .product-price::before,
	body.woocommerce-cart .ye-cart-table .product-quantity::before,
	body.woocommerce-cart .ye-cart-table .product-subtotal::before {
		content: none;
	}

	body.woocommerce-cart .ye-cart-table .product-name a {
		display: inline-block;
		max-width: none;
		text-align: right;
	}

	body.woocommerce-cart .ye-cart-table .product-price,
	body.woocommerce-cart .ye-cart-table .product-quantity,
	body.woocommerce-cart .ye-cart-table .product-subtotal {
		display: table-cell;
	}

	.ye-cart-table td.actions {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: space-between;
		padding: 16px;
	}

	.ye-cart-coupon {
		flex: 1 1 auto;
		max-width: 560px;
	}

	.ye-cart-coupon .input-text {
		max-width: 360px;
	}

	.ye-cart-table td.actions > .button[name="update_cart"] {
		margin-right: auto;
		width: auto;
	}

	body.woocommerce-cart .cart-collaterals .cart_totals,
	body.woocommerce-cart.woocommerce-page .cart-collaterals .cart_totals {
		margin-right: auto;
		max-width: 420px;
	}

	body.woocommerce-cart .cart_totals table {
		display: table;
	}

	body.woocommerce-cart .cart_totals table tr {
		display: table-row;
	}

	body.woocommerce-cart .cart_totals table th,
	body.woocommerce-cart .cart_totals table td {
		display: table-cell;
	}
}
