.woocommerce-cart .woocommerce-cart-form {
	width: auto !important;
	float: none !important;
}

.woocommerce-cart .cart-collaterals {
	width: auto !important;
	float: none !important;
}

.woocommerce-cart .cart_totals > h2 {
	margin: 0 0 16px;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
}

.cpg-cart {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 24px;
	align-items: start;
}

.cpg-cart-item {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: start;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 12px;
}

.cpg-cart-thumb img {
	width: 96px;
	height: 96px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #eee;
	display: block;
}

.cpg-cart-name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 6px;
}

.cpg-cart-name a {
	color: #111;
}

.cpg-cart-meta {
	font-size: 13px;
	color: #777;
	margin-bottom: 8px;
}

.cpg-cart-unit {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 12px;
}

.cpg-cart-qty-row {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cpg-cart-qty .quantity,
.woocommerce-cart .cpg-cart-qty .quantity,
.woocommerce-cart .shop_table .cpg-cart-qty .quantity {
	display: inline-flex !important;
	align-items: center;
	justify-content: stretch;
	width: auto !important;
	max-width: none !important;
	padding: 0 !important;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	overflow: visible;
	margin: 0;
	background: #fff;
}

.woocommerce-cart .shop_table .cpg-cart-qty .quantity:before,
.woocommerce-cart .shop_table .cpg-cart-qty .quantity:after {
	display: none !important;
	content: none !important;
}

.cpg-cart-qty .quantity .cpg-qty-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 36px !important;
	height: 36px !important;
	border: none;
	background: #f3f3f3;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: #111;
	flex: 0 0 36px;
	padding: 0;
	margin: 0;
}

.cpg-cart-qty .quantity .cpg-qty-btn:hover {
	background: #e8e8e8;
}

.cpg-cart-qty .quantity input.qty,
.woocommerce-cart .shop_table .cpg-cart-qty .quantity input {
	width: 44px !important;
	min-width: 44px;
	height: 36px !important;
	min-height: 36px !important;
	border: none !important;
	text-align: center !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none;
	border-radius: 0 !important;
	-moz-appearance: textfield;
}

.cpg-update-cart {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
}

.cpg-cart-remove {
	font-size: 13px;
	font-weight: 600;
	color: #888 !important;
	text-decoration: none;
}

.cpg-cart-remove:hover {
	color: #c62828 !important;
}

.cpg-cart-line {
	font-size: 16px;
	font-weight: 800;
	text-align: right;
	white-space: nowrap;
}

.cpg-cart-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.cpg-cart-coupon label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 6px;
}

.cpg-cart-coupon-row {
	display: flex;
	gap: 8px;
}

.cpg-cart-coupon-row .input-text {
	min-height: 44px;
	border-radius: 8px;
	min-width: 180px;
}

.cpg-cart-coupon-row .button {
	min-height: 44px;
	border-radius: 8px;
	background: #111;
	color: #fff;
	border: none;
	font-weight: 700;
	padding: 0 16px;
}

.cart-collaterals .checkout-button.wc-forward:not(.cpg-place-order) {
	display: none;
}

.woocommerce-cart .cart-collaterals .cpg-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 20px;
	position: sticky;
	top: 24px;
}

.cpg-cart-totals .cpg-totals-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	font-size: 14px;
}

.cpg-cart-totals .cpg-totals-row small {
	display: block;
	color: #888;
	font-weight: 500;
	margin-top: 2px;
}

.cpg-ship-note {
	color: #0a7a32;
	font-weight: 700;
}

.cpg-cart-totals .order-total {
	border-top: 1px solid #eee;
	margin-top: 6px;
	padding-top: 14px;
	font-size: 18px;
	font-weight: 800;
}

.cpg-shipping-methods-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

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

.woocommerce-cart .cpg-place-order,
.cpg-cart-empty .cpg-place-order {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	background: #111;
	color: #fff !important;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 800;
	text-align: center;
}

.woocommerce-cart .cpg-place-order:hover {
	background: #02427a;
}

.cpg-cart-empty {
	max-width: 480px;
	margin: 24px auto;
	text-align: center;
	background: #fff;
	border: 1px solid #ececec;
	border-radius: 12px;
	padding: 40px 24px;
}

.cpg-cart-empty .cart-empty {
	margin-bottom: 20px;
	font-size: 18px;
	font-weight: 700;
}

.woocommerce-cart .shop_table:after,
.woocommerce-cart .shop_table tbody:after {
	display: none !important;
}

@media only screen and (max-width: 991px) {
	.cpg-cart {
		grid-template-columns: 1fr;
	}

	.woocommerce-cart .cart-collaterals .cpg-card {
		position: static;
	}

	.cpg-cart-item {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.cpg-cart-line {
		grid-column: 1 / -1;
		text-align: left;
		padding-top: 8px;
		border-top: 1px solid #f0f0f0;
	}

	.woocommerce-cart .wc-proceed-to-checkout {
		position: sticky;
		bottom: 12px;
		z-index: 40;
		margin-top: 12px;
		padding-top: 8px;
	}
}
