/**
 * VINSMARTHOME - CART PAGE
 * Flatsome + WooCommerce
 */

:root {
	--vsh-cart-border: var(--vsh-border);
	--vsh-cart-bg: var(--vsh-bg);
	--vsh-cart-soft: var(--vsh-bg-soft);
	--vsh-cart-radius: 12px;
	--vsh-cart-shadow: 0 8px 26px rgba(16, 48, 90, .06);
}

body.woocommerce-cart #main {
	background: var(--vsh-bg-soft);
}

body.woocommerce-cart .woocommerce.row.row-large.row-divided {
	align-items: flex-start;
}

body.woocommerce-cart .woocommerce.row.row-divided > .col + .col:not(.large-12) {
	border-left: 0;
}

body.woocommerce-cart .woocommerce-cart-form {
	margin: 0;
}

body.woocommerce-cart .cart-wrapper {
	overflow: hidden;
	background: var(--vsh-cart-bg);
	border: 1px solid var(--vsh-cart-border);
	border-radius: var(--vsh-cart-radius);
	box-shadow: var(--vsh-cart-shadow);
}

body.woocommerce-cart .shop_table.cart {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}

/* Header */
body.woocommerce-cart .shop_table.cart thead th {
	padding: 14px 12px;
	color: var(--vsh-text-muted);
	background: #fbfcfe;
	border: 0;
	border-bottom: 1px solid var(--vsh-border);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .02em;
	text-transform: uppercase;
}

body.woocommerce-cart .shop_table.cart thead .product-name {
	padding-left: 18px;
	text-align: left;
}

body.woocommerce-cart .shop_table.cart thead .product-price,
body.woocommerce-cart .shop_table.cart thead .product-quantity,
body.woocommerce-cart .shop_table.cart thead .product-subtotal {
	text-align: center;
}

/* Rows */
body.woocommerce-cart .shop_table.cart tbody > tr.cart_item > td {
	padding: 16px 10px;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--vsh-border);
}

/* Remove */
body.woocommerce-cart .shop_table.cart .product-remove {
	width: 38px;
	padding-right: 2px;
	padding-left: 14px;
}

body.woocommerce-cart .shop_table.cart .product-remove .remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: #94a3b8;
	background: #f8fafc;
	border: 1px solid #e7edf4;
	border-radius: 50%;
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

body.woocommerce-cart .shop_table.cart .product-remove .remove:hover {
	color: #d64242;
	background: #fff5f5;
	border-color: #f3caca;
	transform: scale(1.05);
}

/* Thumbnail */
body.woocommerce-cart .shop_table.cart .product-thumbnail {
	width: 84px;
	padding-right: 10px;
	padding-left: 8px;
}

body.woocommerce-cart .shop_table.cart .product-thumbnail a {
	display: block;
	width: 68px;
	height: 68px;
	overflow: hidden;
	background: var(--vsh-bg-soft);
	border: 1px solid var(--vsh-border);
	border-radius: 10px;
}

body.woocommerce-cart .shop_table.cart .product-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

/* Product name */
body.woocommerce-cart .shop_table.cart td.product-name {
	padding-right: 16px;
	padding-left: 8px;
}

body.woocommerce-cart .shop_table.cart td.product-name > a {
	display: inline-block;
	color: var(--vsh-heading);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	text-decoration: none;
	transition: color .18s ease;
}

body.woocommerce-cart .shop_table.cart td.product-name > a:hover {
	color: var(--vsh-blue);
}

/* Price */
body.woocommerce-cart .shop_table.cart .product-price,
body.woocommerce-cart .shop_table.cart .product-subtotal {
	color: var(--vsh-text);
	font-size: 12.5px;
	font-weight: 600;
	text-align: center;
	white-space: nowrap;
}

body.woocommerce-cart .shop_table.cart .product-subtotal {
	color: var(--vsh-blue);
	font-weight: 700;
}

/* Quantity */
body.woocommerce-cart .shop_table.cart .product-quantity {
	text-align: center;
}

body.woocommerce-cart .shop_table.cart .quantity.buttons_added {
	display: inline-flex;
	align-items: stretch;
	height: 38px;
	margin: 0;
	overflow: hidden;
	background: var(--vsh-bg);
	border: 1px solid var(--vsh-border);
	border-radius: 4px;
}

body.woocommerce-cart .shop_table.cart .quantity .ux-quantity__button,
body.woocommerce-cart .shop_table.cart .quantity .qty {
	height: 36px;
	min-height: 36px;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

body.woocommerce-cart .shop_table.cart .quantity .ux-quantity__button {
	width: 36px;
	padding: 0;
	color: var(--vsh-text-muted);
	background: var(--vsh-bg-soft);
	font-size: 18px;
	font-weight: 500;
	line-height: 36px;
}

body.woocommerce-cart .shop_table.cart .quantity .ux-quantity__button:hover {
	color: var(--vsh-blue);
	background: var(--vsh-blue-soft);
}

body.woocommerce-cart .shop_table.cart .quantity .qty {
	width: 38px;
	min-width: 38px;
	padding: 0;
	color: var(--vsh-text);
	background: #fff;
	border-right: 1px solid var(--vsh-border);
	border-left: 1px solid var(--vsh-border);
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

body.woocommerce-cart .shop_table.cart .quantity .qty::-webkit-inner-spin-button,
body.woocommerce-cart .shop_table.cart .quantity .qty::-webkit-outer-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Actions */
body.woocommerce-cart .shop_table.cart td.actions {
	padding: 14px 16px;
	background: #fbfcfe;
	border-bottom: 0;
}

body.woocommerce-cart .continue-shopping {
	margin: 0 8px 0 0;
	display: none !important;
}

body.woocommerce-cart .button-continue-shopping,
body.woocommerce-cart button[name="update_cart"] {
	min-height: 38px;
	margin: 0 !important;
	padding: 0 14px;
	border-radius: 8px;
	font-size: 11.5px;
	font-weight: 600;
	line-height: 36px;
	letter-spacing: 0;
	text-transform: none;
	box-shadow: none;
}

body.woocommerce-cart .button-continue-shopping {
	color: var(--vsh-blue);
	background: #fff;
	border: 1px solid var(--vsh-border-hover);
}

body.woocommerce-cart .button-continue-shopping:hover {
	color: var(--vsh-blue-hover);
	background: var(--vsh-blue-soft);
	border-color: var(--vsh-blue);
}

body.woocommerce-cart button[name="update_cart"] {
	color: #fff;
	background: var(--vsh-blue);
	border-color: var(--vsh-blue);
}

body.woocommerce-cart button[name="update_cart"]:hover {
	background: var(--vsh-blue-hover);
	border-color: var(--vsh-blue-hover);
}

/* Totals */
body.woocommerce-cart .cart-collaterals {
	padding-left: 0;
}

body.woocommerce-cart .cart-sidebar {
	padding: 0;
}

/*body.woocommerce-cart .cart_totals {
	overflow: hidden;
	background: var(--vsh-cart-bg);
	border: 1px solid var(--vsh-cart-border);
	border-radius: var(--vsh-cart-radius);
	box-shadow: var(--vsh-cart-shadow);
}*/

body.woocommerce-cart .cart_totals .shop_table.shop_table_responsive {
	overflow: hidden;
	background: var(--vsh-cart-bg);
	border: 1px solid var(--vsh-cart-border);
	border-radius: var(--vsh-cart-radius);
	box-shadow: var(--vsh-cart-shadow);
}

body.woocommerce-cart .cart_totals > table:first-child {
	display: none;
}

body.woocommerce-cart .cart_totals > h2 {
	margin: 0;
	padding: 15px 18px;
	color: var(--vsh-heading);
	background: #fbfcfe;
	border-bottom: 1px solid var(--vsh-border);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}

body.woocommerce-cart .cart_totals > .shop_table {
	width: 100%;
	margin: 0;
	border: 0;
}

body.woocommerce-cart .cart_totals .shop_table th,
body.woocommerce-cart .cart_totals .shop_table td {
	padding: 13px 18px;
	border: 0;
	border-bottom: 1px solid var(--vsh-border);
	font-size: 12.5px;
	line-height: 1.4;
}

body.woocommerce-cart .cart_totals .shop_table th {
	color: var(--vsh-text-muted);
	font-weight: 500;
	text-align: left;
}

body.woocommerce-cart .cart_totals .shop_table td {
	color: var(--vsh-text);
	font-weight: 600;
	text-align: right;
}

body.woocommerce-cart .cart_totals .order-total th,
body.woocommerce-cart .cart_totals .order-total td {
	padding-top: 16px;
	padding-bottom: 16px;
	background: var(--vsh-blue-soft);
}

body.woocommerce-cart .cart_totals .order-total th {
	color: var(--vsh-heading);
	font-size: 13px;
	font-weight: 700;
}

body.woocommerce-cart .cart_totals .order-total .amount {
	color: var(--vsh-blue);
	font-size: 18px;
	font-weight: 700;
}

/* Checkout */
body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 30px 0 0;

}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 0 18px;
	color: #fff;
	background: var(--vsh-blue);
	border: 1px solid var(--vsh-blue);
	border-radius: 12px;
	box-shadow: none;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
	text-transform: uppercase;
}

body.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
	color: #fff;
	background: var(--vsh-blue-hover);
	border-color: var(--vsh-blue-hover);
	box-shadow: 0 8px 20px rgba(25, 85, 181, .18);
	transform: translateY(-1px);
}

/* Coupon */
body.woocommerce-cart .ux-cart-coupon {
	margin-top: 14px !important;
	padding: 16px;
	background: var(--vsh-bg);
	border: 1px solid var(--vsh-border);
	border-radius: var(--vsh-cart-radius);
	box-shadow: var(--vsh-shadow-sm);
}


body.woocommerce-cart .ux-cart-coupon .coupon {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px;
}
.woocommerce-cart-form .coupon .widget-title,
body.woocommerce-cart .ux-cart-coupon .widget-title {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 4px;
	color: var(--vsh-heading);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
}
.woocommerce-cart-form .coupon i,
body.woocommerce-cart .ux-cart-coupon .widget-title i {
	color: var(--vsh-blue);
}

.woocommerce-cart-form .coupon #coupon_code,
body.woocommerce-cart .ux-cart-coupon #coupon_code {
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 12px;
	color: var(--vsh-text);
	background: var(--vsh-bg);
	border: 1px solid var(--vsh-border);
	border-radius: 8px;
	box-shadow: none;
	font-size: 12px;
}

body.woocommerce-cart .ux-cart-coupon #coupon_code:focus {
	border-color: var(--vsh-blue);
	box-shadow: var(--vsh-focus-ring);
}

body.woocommerce-cart .ux-cart-coupon button[name="apply_coupon"] {
	height: 40px;
	min-height: 40px;
	padding: 0 14px;
	color: var(--vsh-blue);
	background: var(--vsh-blue-soft);
	border: 1px solid var(--vsh-border-hover);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 400;
	line-height: 38px;
	text-transform: none;
	box-shadow: none;
}

body.woocommerce-cart .ux-cart-coupon button[name="apply_coupon"]:hover {
	color: #fff;
	background: var(--vsh-blue);
	border-color: var(--vsh-blue);
}

@media (max-width: 849px) {
	body.woocommerce-cart #main {
		padding-top: 20px;
		padding-bottom: 44px;
	}

	body.woocommerce-cart .cart-collaterals {
		margin-top: 18px;
		padding-left: 15px;
	}

	body.woocommerce-cart .cart-wrapper,
	body.woocommerce-cart .cart_totals,
	body.woocommerce-cart .ux-cart-coupon {
		border-radius: 10px;
		box-shadow: var(--vsh-shadow-sm);
	}

	body.woocommerce-cart .shop_table.cart .product-thumbnail a {
		width: 60px;
		height: 60px;
	}

}

@media (max-width: 549px) {
	body.woocommerce-cart #main {
		padding-top: 12px;
		padding-bottom: 36px;
	}

	body.woocommerce-cart .cart-wrapper {
		overflow: visible;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	body.woocommerce-cart .shop_table.cart thead {
		display: none;
	}

	body.woocommerce-cart .shop_table.cart,
	body.woocommerce-cart .shop_table.cart tbody {
		display: block;
	}

	body.woocommerce-cart .shop_table.cart tbody > tr.cart_item {
		position: relative;
		display: grid;
		grid-template-columns: 60px minmax(0, 1fr);
		grid-template-areas:
			"thumb name"
			"thumb qty"
			"subtotal subtotal";
		gap: 8px 12px;
		margin-bottom: 10px;
		padding: 13px;
		background: var(--vsh-bg);
		border: 1px solid var(--vsh-border);
		border-radius: 10px;
		box-shadow: var(--vsh-shadow-sm);
	}

	body.woocommerce-cart .shop_table.cart tbody > tr.cart_item > td {
		padding: 0;
		border: 0;
		text-align: left;
	}

	body.woocommerce-cart .shop_table.cart .product-remove {
		position: absolute;
		top: 0;
		right: 0;
		z-index: 2;
	}

	body.woocommerce-cart .shop_table.cart .product-remove .remove {
		width: 26px;
		height: 26px;
		background: rgba(255,255,255,.96);
		font-size: 17px;
	}

	body.woocommerce-cart .shop_table.cart .product-thumbnail {
		grid-area: thumb;
	}

	body.woocommerce-cart .shop_table.cart td.product-name {
		grid-area: name;
		padding-right: 28px;
	}

	body.woocommerce-cart .shop_table.cart td.product-name > a {
		font-size: 13px;
		font-weight: 400;
		line-height: 1.4;
		padding-right: 30px;
	}

	body.woocommerce-cart .shop_table.cart .mobile-product-price {
		margin-top: 5px;
		color: var(--vsh-blue);
		font-size: 12px;
		font-weight: 700;
	}

	body.woocommerce-cart .shop_table.cart .product-price {
		display: none;
	}

	body.woocommerce-cart .shop_table.cart .product-quantity {
		grid-area: qty;
		align-self: end;
		text-align: left;
	}

	body.woocommerce-cart .shop_table.cart .product-subtotal {
		grid-area: subtotal;
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin-top: 2px;
		padding-top: 10px;
		border-top: 1px solid var(--vsh-border);
		font-size: 13px;
		text-align: right;
	}

	body.woocommerce-cart .shop_table.cart .product-subtotal::before {
		content: "Tạm tính";
		color: var(--vsh-text-muted);
		font-size: 12px;
		font-weight: 500;
	}

	body.woocommerce-cart .shop_table.cart tbody > tr:last-child:not(.cart_item) {
		display: block;
	}

	body.woocommerce-cart .shop_table.cart td.actions {
		display: grid;
		padding: 10px 0 0;
		background: transparent;
	}

	body.woocommerce-cart .continue-shopping {
		width: 100%;
		margin: 0 0 8px;
	}

	body.woocommerce-cart .button-continue-shopping,
	body.woocommerce-cart button[name="update_cart"] {
		width: 100%;
		min-height: 40px;
		float: none !important;
		text-align: center;
	}

	body.woocommerce-cart .cart-collaterals {
		margin-top: 14px;
		padding-left: 15px;
	}

	body.woocommerce-cart .cart_totals > h2 {
		padding: 14px 15px;
		font-size: 14px;
	}

	body.woocommerce-cart .cart_totals .shop_table th,
	body.woocommerce-cart .cart_totals .shop_table td {
		padding: 12px 15px;
	}

	body.woocommerce-cart .cart_totals .order-total .amount {
		font-size: 17px;
	}


	body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
		min-height: 44px;
		font-size: 13px;
	}

	body.woocommerce-cart .ux-cart-coupon {
		padding: 14px;
	}

	body.woocommerce-cart .ux-cart-coupon .coupon {
		grid-template-columns: 1fr;
	}

	body.woocommerce-cart .ux-cart-coupon .widget-title {
		grid-column: 1;
	}

	body.woocommerce-cart .ux-cart-coupon button[name="apply_coupon"] {
		width: 100%;
	}
}
