/* Cart sticky bar + checkout button (no Vite needed). Desktop two-col from 1480px. */

.woocommerce-cart .cart-totals-sticky__checkout .wc-proceed-to-checkout,
.woocommerce-page--cart .cart-totals-sticky__checkout .wc-proceed-to-checkout {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-cart .cart-totals-sticky__checkout a.checkout-button,
.woocommerce-page--cart .cart-totals-sticky__checkout a.checkout-button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 0.85rem 1.5rem;
	border: 2px solid #3d281c;
	border-radius: 999px;
	background: #f5c4a1;
	color: #3d281c !important;
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-align: center;
	text-decoration: none !important;
	text-transform: uppercase;
	box-sizing: border-box;
}

.woocommerce-cart .cart-totals-sticky__checkout a.checkout-button:hover,
.woocommerce-page--cart .cart-totals-sticky__checkout a.checkout-button:hover {
	background: #f2b68a;
	color: #3d281c !important;
}

@media (max-width: 1479px) {
	.woocommerce-cart .entry__content > .woocommerce,
	.woocommerce-page--cart .entry__content > .woocommerce {
		padding-bottom: calc(var(--cart-totals-offset, 8.5rem) + env(safe-area-inset-bottom, 0px));
	}

	.woocommerce-cart .entry__content > .woocommerce,
	.woocommerce-page--cart .entry__content > .woocommerce {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	.woocommerce-cart .entry__content > .woocommerce > .cart-collaterals-shell,
	.woocommerce-page--cart .entry__content > .woocommerce > .cart-collaterals-shell,
	.woocommerce-cart .entry__content > .woocommerce > .woocommerce-cart-form,
	.woocommerce-page--cart .entry__content > .woocommerce > .woocommerce-cart-form,
	.woocommerce-cart .entry__content > .woocommerce > .cart-related-products,
	.woocommerce-page--cart .entry__content > .woocommerce > .cart-related-products {
		grid-column: 1 / -1 !important;
		grid-row: auto !important;
	}

	.woocommerce-cart .cart-collaterals,
	.woocommerce-page--cart .cart-collaterals {
		position: relative !important;
		right: auto !important;
		bottom: auto !important;
		left: auto !important;
		z-index: 1 !important;
		margin-top: 0.75rem;
		padding: 1rem;
		border-radius: 12px;
		box-shadow: 0 8px 24px rgba(61, 40, 28, 0.1);
		overflow: visible !important;
	}

	.woocommerce-cart .cart-totals-sticky,
	.woocommerce-page--cart .cart-totals-sticky {
		display: grid !important;
		gap: 0.75rem;
		position: fixed !important;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 40;
		margin: 0;
		padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
		border-radius: 12px 12px 0 0;
		background: #fff;
		box-shadow: 0 -10px 28px rgba(61, 40, 28, 0.16);
	}

	.woocommerce-cart .cart-totals-sticky__summary,
	.woocommerce-page--cart .cart-totals-sticky__summary {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
	}

	.woocommerce-cart .cart-totals-sticky__label,
	.woocommerce-page--cart .cart-totals-sticky__label {
		font-size: 1rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		color: #3d281c;
	}

	.woocommerce-cart .cart-totals-sticky__amount,
	.woocommerce-page--cart .cart-totals-sticky__amount {
		margin-left: auto;
		font-size: 1.15rem;
		font-weight: 800;
		color: #3d281c;
	}

	.woocommerce-cart .cart-totals-drawer__handle,
	.woocommerce-page--cart .cart-totals-drawer__handle,
	.woocommerce-cart .cart-totals-drawer__chevron,
	.woocommerce-page--cart .cart-totals-drawer__chevron {
		display: none !important;
	}
}

@media (min-width: 1480px) {
	.woocommerce-cart .entry__content > .woocommerce,
	.woocommerce-page--cart .entry__content > .woocommerce {
		grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
		gap: 3rem;
	}

	.woocommerce-cart .entry__content > .woocommerce > .cart-collaterals-shell,
	.woocommerce-page--cart .entry__content > .woocommerce > .cart-collaterals-shell {
		grid-column: 2;
		grid-row: 3;
	}

	.woocommerce-cart .entry__content > .woocommerce > .woocommerce-cart-form,
	.woocommerce-page--cart .entry__content > .woocommerce > .woocommerce-cart-form {
		grid-column: 1;
		grid-row: 3;
	}

	.woocommerce-cart .entry__content > .woocommerce > .cart-related-products,
	.woocommerce-page--cart .entry__content > .woocommerce > .cart-related-products {
		grid-column: 1 / -1;
		grid-row: 4;
	}

	.woocommerce-cart .cart-totals-sticky,
	.woocommerce-page--cart .cart-totals-sticky {
		position: static !important;
		display: block !important;
		box-shadow: none !important;
		padding: 0 !important;
		background: transparent !important;
		border-radius: 0;
	}

	.woocommerce-cart .cart-totals-sticky__summary,
	.woocommerce-page--cart .cart-totals-sticky__summary {
		display: none !important;
	}
}

/* Keep cart totals as a normal table — full-width borders, aligned Total. */
.woocommerce-cart .cart_totals table.shop_table,
.woocommerce-page--cart .cart_totals table.shop_table {
	display: table !important;
	width: 100% !important;
	table-layout: fixed;
}

.woocommerce-cart .cart_totals table.shop_table tbody,
.woocommerce-page--cart .cart_totals table.shop_table tbody {
	display: table-row-group !important;
}

.woocommerce-cart .cart_totals table.shop_table tr,
.woocommerce-page--cart .cart_totals table.shop_table tr {
	display: table-row !important;
	width: auto;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-page--cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td,
.woocommerce-page--cart .cart_totals table.shop_table td {
	display: table-cell !important;
	vertical-align: middle;
	border-bottom: 1px solid #d9c9b0;
}

.woocommerce-cart .cart_totals tr.cart-savings-row td,
.woocommerce-page--cart .cart_totals tr.cart-savings-row td {
	width: 100%;
	border-bottom: 1px solid #d9c9b0;
}

.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-page--cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td,
.woocommerce-page--cart .cart_totals tr.order-total td {
	border-bottom: 0 !important;
	vertical-align: middle;
	padding-top: 1rem !important;
	padding-bottom: 0 !important;
}

.woocommerce-cart .cart_totals tr.order-total td[colspan],
.woocommerce-page--cart .cart_totals tr.order-total td[colspan] {
	display: table-cell !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	text-align: left !important;
}

.woocommerce-cart .cart_totals tr.order-total td::before,
.woocommerce-page--cart .cart_totals tr.order-total td::before {
	display: none !important;
	content: none !important;
}

.woocommerce-cart .cart-totals-order-total,
.woocommerce-page--cart .cart-totals-order-total {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
}

.woocommerce-cart .cart-totals-order-total__label,
.woocommerce-page--cart .cart-totals-order-total__label {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	color: #3d281c;
}

.woocommerce-cart .cart-totals-order-total__value,
.woocommerce-page--cart .cart-totals-order-total__value {
	flex: 0 0 auto;
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	white-space: nowrap;
	color: #3d281c;
}

.woocommerce-cart .cart-totals-order-total__value strong,
.woocommerce-page--cart .cart-totals-order-total__value strong {
	font-weight: 700;
}

.woocommerce-cart .cart-totals-order-total__value .includes_tax,
.woocommerce-page--cart .cart-totals-order-total__value .includes_tax,
.woocommerce-cart .cart-totals-order-total__value small,
.woocommerce-page--cart .cart-totals-order-total__value small {
	display: none !important;
}

