/**
 * Cart page — dual warehouse, Flatsome-native (no heavy cards).
 */

/* Narrower gutter between cart + totals */
.woocommerce-cart .cws-cart-layout.row {
	margin-left: -8px;
	margin-right: -8px;
}

.woocommerce-cart .cws-cart-layout > .col,
.woocommerce-cart .cws-cart-layout > .cart-collaterals {
	padding-left: 8px !important;
	padding-right: 8px !important;
}

/* Main cart table: breathing room, no fake “card” chrome */
.woocommerce-cart .cart-wrapper .shop_table.cart {
	border-collapse: collapse;
	width: 100%;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.woocommerce-cart .cart-wrapper .shop_table.cart thead th {
	background: transparent;
	border-bottom: 1px solid #e5e5e5;
	color: #888;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 10px 14px 12px !important;
}

.woocommerce-cart .cart-wrapper .shop_table.cart td,
.woocommerce-cart .cart-wrapper .shop_table.cart th {
	padding-left: 14px !important;
	padding-right: 14px !important;
	vertical-align: middle;
	border-top: 0;
}

.woocommerce-cart .cart-wrapper .shop_table.cart .cart_item td {
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	border-bottom: 1px solid #f0f0f0;
}

.woocommerce-cart .cart-wrapper .shop_table.cart .product-thumbnail img {
	border-radius: 4px;
	max-width: 70px;
}

.woocommerce-cart .cart-wrapper .shop_table.cart .product-name a {
	color: #222;
	font-weight: 600;
	line-height: 1.4;
}

.woocommerce-cart .cart-wrapper .shop_table.cart .product-subtotal {
	font-weight: 600;
	text-align: right;
}

.woocommerce-cart .cart-wrapper .shop_table.cart thead th.product-subtotal {
	text-align: right;
}

/* Warehouse section header — simple bar, not a card */
.cws-warehouse-group-row td.cws-warehouse-group-title {
	padding: 18px 14px 10px !important;
	background: transparent !important;
	border-bottom: 1px solid #ddd !important;
	box-shadow: none !important;
}

.cws-warehouse-group-row + .cart_item td {
	border-top: 0;
}

.cws-warehouse-group-inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cws-warehouse-badge {
	display: inline-block;
	min-width: 28px;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.4;
	color: #fff;
	background: #444;
	text-align: center;
}

.cws-wh-head-cn .cws-warehouse-badge {
	background: #3a4a5c;
}

.cws-wh-head-au .cws-warehouse-badge {
	background: #3d5c48;
}

.cws-warehouse-label {
	font-size: 0.92rem;
	font-weight: 700;
	color: #222;
}

/* Warehouse shipping — sit under Subtotal like Cart Totals (label + amount together, right) */
.cws-warehouse-shipping td.cws-warehouse-shipping-spacer {
	padding-top: 10px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #e8e8e8 !important;
	background: #fafafa;
}

.cws-warehouse-shipping td.cws-warehouse-shipping-amount {
	padding-top: 10px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #e8e8e8 !important;
	background: #fafafa;
	text-align: right !important;
	white-space: nowrap;
	vertical-align: middle;
}

.cws-warehouse-shipping-pair {
	display: inline-flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 18px;
}

.cws-warehouse-shipping-label {
	color: #666;
	font-size: 0.9rem;
	font-weight: 600;
}

.cws-warehouse-shipping-price {
	font-size: 0.95rem;
	font-weight: 700;
	color: #222;
	min-width: 3.5em;
	text-align: right;
}

.cws-warehouse-shipping-price.is-free {
	color: #2e7d4f;
}

.cws-warehouse-shipping-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
}

.cws-warehouse-shipping-methods li {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
	justify-content: flex-end;
}

.cws-warehouse-shipping-empty {
	color: #888;
	font-style: normal;
	font-weight: 500;
}

/* Space between warehouse blocks */
.cws-warehouse-shipping + .cws-warehouse-group-row td.cws-warehouse-group-title {
	padding-top: 28px !important;
}

/* Actions */
.woocommerce-cart .cart-wrapper .shop_table.cart .actions {
	background: transparent;
	border-top: 0;
	padding: 18px 14px !important;
}

/* Sidebar totals — light, aligned, no heavy card */
.woocommerce-cart .cart-sidebar .cart_totals {
	border: 1px solid #e5e5e5;
	border-radius: 0;
	padding: 4px 0 0;
	background: #fff;
	box-shadow: none;
}

.woocommerce-cart .cart-sidebar .cart_totals > h2 {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	padding: 12px 16px 8px;
	margin: 0;
}

/* Flatsome injects a title table before the totals table */
.woocommerce-cart .cart-sidebar .cart_totals > table:first-of-type {
	margin: 0;
	border: 0;
	width: 100%;
}

.woocommerce-cart .cart-sidebar .cart_totals > table:first-of-type thead th.product-name {
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	padding: 12px 16px 8px !important;
	margin: 0;
	border: 0;
	background: transparent;
	text-align: left;
	font-weight: 700;
	text-transform: uppercase;
}

.woocommerce-cart .cart-sidebar .cart_totals > table:first-of-type + h2 {
	display: none;
}

.woocommerce-cart .cart-sidebar .shop_table {
	margin: 0;
}

.woocommerce-cart .cart-sidebar .shop_table th,
.woocommerce-cart .cart-sidebar .shop_table td {
	padding: 12px 16px !important;
	border-top: 1px solid #eee;
	background: transparent;
}

.woocommerce-cart .cart-sidebar .shop_table td {
	text-align: right;
}

.woocommerce-cart .cart-sidebar .order-total th,
.woocommerce-cart .cart-sidebar .order-total td {
	font-size: 1.05rem;
	border-top: 1px solid #ccc !important;
}

.woocommerce-cart .cart-sidebar .wc-proceed-to-checkout {
	padding: 12px 16px 16px;
}

.woocommerce-cart .cart-sidebar .checkout-button {
	border-radius: 3px !important;
	box-shadow: none !important;
}

.woocommerce-cart .cart-sidebar .coupon {
	margin-top: 14px;
	padding: 14px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	background: #fff;
}

.woocommerce-cart .cart-sidebar .coupon .widget-title {
	margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 849px) {
	.woocommerce-cart .cws-cart-layout.row {
		margin-left: -15px;
		margin-right: -15px;
	}

	.woocommerce-cart .cws-cart-layout > .col,
	.woocommerce-cart .cws-cart-layout > .cart-collaterals {
		padding-left: 15px;
		padding-right: 15px;
	}

	.cws-warehouse-group-row td.cws-warehouse-group-title::before,
	.woocommerce-cart .cart-wrapper .shop_table.cart .cws-warehouse-shipping th::before,
	.woocommerce-cart .cart-wrapper .shop_table.cart .cws-warehouse-shipping td::before {
		content: none !important;
		display: none !important;
	}

	.cws-warehouse-shipping td.cws-warehouse-shipping-spacer {
		display: none !important;
	}

	.cws-warehouse-shipping td.cws-warehouse-shipping-amount {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		width: 100% !important;
		text-align: right !important;
		padding: 12px 16px !important;
	}

	.cws-warehouse-shipping-pair {
		display: flex !important;
		flex: 1 1 auto;
		width: 100% !important;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
	}

	.cws-warehouse-shipping-label {
		flex: 0 1 auto;
		text-align: left;
	}

	.cws-warehouse-shipping-price,
	.cws-warehouse-shipping-empty {
		flex: 0 0 auto;
		margin-left: auto;
		text-align: right !important;
	}

	.cws-warehouse-shipping-methods {
		flex: 0 0 auto;
		margin-left: auto;
		align-items: flex-end;
	}

	.woocommerce-cart .cart-sidebar .cart_totals > table:first-of-type thead th.product-name,
	.woocommerce-cart .cart-sidebar .cart_totals > h2 {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	.woocommerce-cart #yith-par-message-reward-cart form.ywpar_apply_discounts {
		line-height: 1.85;
	}

	.woocommerce-cart #yith-par-message-reward-cart #ywpar_apply_discounts.button {
		margin-top: 8px !important;
		margin-left: 0 !important;
	}
}

/* —— YITH points (earn + redeem) on cart —— */
.woocommerce-cart #yith-par-message-cart,
.woocommerce-cart #yith-par-message-reward-cart {
	border: 1px solid #e5e5e5 !important;
	background: #fafafa !important;
	color: #333 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 14px 16px !important;
	margin: 0 0 0 !important;
	line-height: 1.5;
	font-size: 0.95rem;
}

.woocommerce-cart #yith-par-message-cart {
	border-bottom: 0 !important;
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 10px !important;
}

.woocommerce-cart #yith-par-message-cart::before {
	content: none !important;
}

.woocommerce-cart #yith-par-message-cart img,
.woocommerce-cart #yith-par-message-cart svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	padding: 0 !important;
	opacity: 0.85;
}

.woocommerce-cart #yith-par-message-reward-cart {
	margin-bottom: 22px !important;
	padding-top: 10px !important;
}

.woocommerce-cart #yith-par-message-reward-cart::before {
	content: none !important;
}

.woocommerce-cart #yith-par-message-reward-cart strong,
.woocommerce-cart #yith-par-message-cart strong {
	color: #111;
	font-weight: 700;
}

.woocommerce-cart #yith-par-message-reward-cart form.ywpar_apply_discounts {
	display: block;
	margin: 0;
	line-height: 1.7;
}

.woocommerce-cart #yith-par-message-reward-cart #ywpar-points-max {
	display: inline-block;
	width: 72px;
	max-width: 72px;
	min-width: 56px;
	height: 36px;
	margin: 0 6px;
	padding: 0 8px !important;
	border: 1px solid #ccc !important;
	border-radius: 3px;
	background: #fff !important;
	text-align: center;
	font-weight: 600;
	font-size: 0.95rem;
	vertical-align: middle;
	box-shadow: none !important;
}

.woocommerce-cart #yith-par-message-reward-cart #ywpar_apply_discounts.button,
.woocommerce-cart #yith-par-message-reward-cart button.button.ywpar_apply_discounts,
.woocommerce-cart #yith-par-message-reward-cart .button.ywpar_apply_discounts.ywpar-fixed-discount {
	display: inline-block !important;
	margin: 0 0 0 8px !important;
	padding: 0 18px !important;
	height: 36px !important;
	min-height: 36px !important;
	line-height: 36px !important;
	border: 0 !important;
	border-radius: 3px !important;
	background: #c8102e !important;
	background-color: #c8102e !important;
	color: #fff !important;
	font-size: 0.78rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none !important;
	white-space: nowrap;
	vertical-align: middle;
}

.woocommerce-cart #yith-par-message-reward-cart #ywpar_apply_discounts.button:hover,
.woocommerce-cart #yith-par-message-reward-cart button.button.ywpar_apply_discounts:hover {
	background: #a80d26 !important;
	background-color: #a80d26 !important;
	color: #fff !important;
}

.woocommerce-cart .cnvapes-ywpar-ttl {
	margin: 0 0 16px !important;
	padding: 12px 16px !important;
	border: 1px solid #e5e5e5 !important;
	border-radius: 0 !important;
	background: #fff8e8 !important;
}
