@use "../../../1-helpers/functions";

// general styles
.cart_totals {

	// .wc-proceed-to-checkout {

	// 	a {
	// 		width: 100%;
	// 	}
	// }

	// misc
	// .shipping-calculator-button {
	// 	display: block;
	// 	margin: 10px 0;
	// }
}


// theme styles
.ct-woocommerce-cart-form .cart_totals {
	align-self: flex-start;
	position: sticky;
	top: calc(50px + var(--admin-bar, 0px) + var(--header-sticky-height, 0px) * (var(--sticky-shrink, 100) / 100));
	padding: var(--cart-totals-padding);
	border: var(--cart-totals-border);
	border-radius: var(--cart-totals-border-radius);

	h2 {
		font-size: 15px;
	}

	table {
		table-layout: fixed;

		td {
			text-align: var(--theme-table-text-align, end);

			@include functions.media-breakpoint-down(sm) {
				padding-inline-start: 0;
			}
		}
	}

	.wc-proceed-to-checkout {
		margin-top: 30px;
	}

	.checkout-button {
		width: 100%;
	}

	// misc
	.shipping-calculator-button {
		display: block;
		margin: 10px 0;
	}
}