/* Desktop-only classic WooCommerce Cart and Checkout layout. */

body.ironbark-storefront-commerce .site-main {
	padding: 0 2rem 4rem;
}

body.ironbark-storefront-commerce .woocommerce {
	width: 100%;
	max-width: 75rem;
	margin-right: auto;
	margin-left: auto;
	font-size: 0.82rem;
}

body.ironbark-storefront-commerce .ironbark-commerce-flow-header {
	min-height: 4rem;
	margin: 0;
	padding: 0.85rem 0;
	font-size: 0.73rem;
}

body.ironbark-storefront-commerce .ironbark-commerce-intro {
	padding: 2rem 0 1.65rem;
}

body.ironbark-storefront-commerce .ironbark-commerce-intro h1 {
	font-size: clamp(2.35rem, 3.5vw, 3.15rem);
}

body.ironbark-storefront-commerce .ironbark-commerce-intro p {
	margin-top: 0.55rem;
	font-size: 0.72rem;
}

body.ironbark-storefront-commerce .woocommerce-error,
body.ironbark-storefront-commerce .woocommerce-info,
body.ironbark-storefront-commerce .woocommerce-message {
	font-size: 0.75rem;
}

body.ironbark-storefront-commerce .ironbark-commerce-summary--sticky {
	position: sticky;
	top: 1.5rem;
}

/* Shopping Bag: native form at left, native totals at right. */

body.ironbark-storefront-cart .kadence-woo-cart-form-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(21.25rem, 23.75rem);
	grid-template-areas:
		'flow flow'
		'intro summary'
		'items summary';
	column-gap: clamp(2rem, 4vw, 3.5rem);
	row-gap: 0;
	align-items: stretch;
	width: 100%;
	min-width: 0;
	margin: 0;
}

body.ironbark-storefront-cart .ironbark-commerce-flow-header {
	grid-area: flow;
}

body.ironbark-storefront-cart .ironbark-commerce-intro {
	grid-area: intro;
	padding-top: 1.5rem;
	padding-bottom: 1rem;
}

body.ironbark-storefront-cart .woocommerce-cart-form,
body.ironbark-storefront-cart .cart-collaterals {
	box-sizing: border-box;
	min-width: 0;
}

body.ironbark-storefront-cart .woocommerce-cart-form {
	grid-area: items;
}

body.ironbark-storefront-cart .cart-collaterals {
	grid-area: summary;
	padding-top: 1.65rem;
}

body.ironbark-storefront-cart table.shop_table.cart tr.cart_item {
	grid-template-columns: 7.5rem 5.25rem 8.5rem minmax(0, 1fr) 6.25rem 2rem;
	grid-template-rows: auto auto;
	column-gap: 0.8rem;
	row-gap: 0.8rem;
	min-height: 9rem;
	padding: 1rem 0 1.2rem;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-thumbnail {
	grid-column: 1;
	grid-row: 1 / span 2;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-thumbnail a,
body.ironbark-storefront-cart table.shop_table.cart td.product-thumbnail img {
	width: 7.5rem;
	height: 5.75rem;
	object-fit: contain;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-name {
	grid-column: 2 / 6;
	grid-row: 1;
	align-self: start;
	padding-right: 0.5rem;
	font-size: 0.94rem;
}

body.ironbark-storefront-cart table.shop_table.cart dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.4rem;
	margin-top: 0.45rem;
	font-size: 0.62rem;
}

body.ironbark-storefront-cart table.shop_table.cart dl.variation dd {
	margin-right: 0.8rem;
}

body.ironbark-storefront-cart table.shop_table.cart dl.variation > .ironbark-cart-meta-pair,
body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table dl.variation > .ironbark-cart-meta-pair {
	display: inline-flex;
	flex: 0 1 auto;
	align-items: baseline;
	max-width: 100%;
	margin-right: 0.8rem;
}

body.ironbark-storefront-cart table.shop_table.cart dl.variation > .ironbark-cart-meta-pair > dd,
body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table dl.variation > .ironbark-cart-meta-pair > dd {
	margin-right: 0;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-remove {
	grid-column: 6;
	grid-row: 1;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-price,
body.ironbark-storefront-cart table.shop_table.cart td.product-quantity,
body.ironbark-storefront-cart table.shop_table.cart td.product-subtotal {
	display: block;
	align-self: start;
	min-height: 0;
	font-size: 0.74rem;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-price::before,
body.ironbark-storefront-cart table.shop_table.cart td.product-quantity::before,
body.ironbark-storefront-cart table.shop_table.cart td.product-subtotal::before {
	margin-bottom: 0.3rem;
	font-size: 0.58rem;
	line-height: 1.2;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-price {
	grid-column: 2;
	grid-row: 2;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-quantity {
	grid-column: 3;
	grid-row: 2;
}

body.ironbark-storefront-cart table.shop_table.cart td.product-subtotal {
	grid-column: 5;
	grid-row: 2;
	justify-self: end;
	text-align: right !important;
}

body.ironbark-storefront-cart .product-quantity .quantity {
	display: inline-flex;
	justify-self: auto;
	margin: 0;
}

body.ironbark-storefront-cart table.shop_table.cart tr:not(.cart_item) td.actions {
	padding: 1rem 0 0;
}

body.ironbark-storefront-cart .actions .coupon {
	grid-template-columns: minmax(12rem, 1fr) 8.75rem;
	max-width: 32rem;
	margin: 0;
}

body.ironbark-storefront-cart .cart-collaterals {
	display: block;
	height: 100%;
}

body.ironbark-storefront-cart .cart-collaterals .cart_totals {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 1.5rem 1.55rem 1.25rem;
	border: 1px solid var(--ironbark-commerce-border-strong);
	border-radius: 0.25rem;
	background: var(--ironbark-commerce-panel);
}

body.ironbark-storefront-cart .cart-collaterals .cart_totals > .ironbark-commerce-order-summary-title {
	display: block;
	margin: 0 0 0.75rem;
	color: var(--ironbark-commerce-text);
	font-family: Montserrat, var(--global-body-font-family, sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: normal;
	text-transform: none;
}

body.ironbark-storefront-cart .cart_totals table.shop_table tr {
	min-height: 2.6rem;
}

body.ironbark-storefront-cart .cart_totals table.shop_table th,
body.ironbark-storefront-cart .cart_totals table.shop_table td {
	font-size: 0.73rem;
}

body.ironbark-storefront-cart .cart_totals .ironbark-commerce-estimated-total {
	min-height: 4.4rem;
	margin-top: 0.55rem;
}

body.ironbark-storefront-cart .cart_totals .ironbark-commerce-estimated-total th {
	font-size: 0.84rem;
}

body.ironbark-storefront-cart .cart_totals .ironbark-commerce-estimated-total td {
	font-size: 1.55rem;
}

body.ironbark-storefront-cart .wc-proceed-to-checkout a.checkout-button {
	min-height: 3.2rem;
	font-size: 0.77rem;
	letter-spacing: normal;
}

body.ironbark-storefront-cart .ironbark-commerce-secure-note {
	font-size: 0.61rem;
}

body.ironbark-storefront-cart .kadence-woo-cart-form-wrap + .cross-sells,
body.ironbark-storefront-cart .woocommerce > .cross-sells {
	box-sizing: border-box;
	width: 100%;
	margin: 3rem 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--ironbark-commerce-border);
}

/* Checkout: customer fields at left, order review and payment at right. */

body.ironbark-storefront-checkout .ironbark-commerce-intro {
	padding-right: 0;
	padding-left: 0;
}

body.ironbark-storefront-checkout form.checkout.woocommerce-checkout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(22.5rem, 0.78fr);
	grid-template-areas: 'customer review';
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

body.ironbark-storefront-checkout #customer_details {
	grid-area: customer;
}

body.ironbark-storefront-checkout .ironbark-commerce-checkout-sidebar {
	grid-area: review;
	box-sizing: border-box;
	align-self: start;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 1.5rem 1.55rem 1.25rem;
	border: 1px solid var(--ironbark-commerce-border-strong);
	border-radius: 0.25rem;
	background: var(--ironbark-commerce-panel);
}

body.ironbark-storefront-checkout .woocommerce-billing-fields__field-wrapper,
body.ironbark-storefront-checkout .woocommerce-shipping-fields__field-wrapper {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 1rem;
	row-gap: 0.8rem;
}

body.ironbark-storefront-checkout .woocommerce-billing-fields__field-wrapper > .form-row-wide,
body.ironbark-storefront-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-wide,
body.ironbark-storefront-checkout #billing_email_field,
body.ironbark-storefront-checkout #billing_company_field,
body.ironbark-storefront-checkout #billing_country_field,
body.ironbark-storefront-checkout #billing_address_1_field,
body.ironbark-storefront-checkout #billing_address_2_field,
body.ironbark-storefront-checkout #shipping_company_field,
body.ironbark-storefront-checkout #shipping_country_field,
body.ironbark-storefront-checkout #shipping_address_1_field,
body.ironbark-storefront-checkout #shipping_address_2_field,
body.ironbark-storefront-checkout #kl_newsletter_checkbox_field,
body.ironbark-storefront-checkout #kl_sms_consent_checkbox_field {
	grid-column: 1 / -1;
}

body.ironbark-storefront-checkout #billing_city_field,
body.ironbark-storefront-checkout #billing_state_field,
body.ironbark-storefront-checkout #billing_postcode_field,
body.ironbark-storefront-checkout #billing_phone_field,
body.ironbark-storefront-checkout #shipping_city_field,
body.ironbark-storefront-checkout #shipping_state_field,
body.ironbark-storefront-checkout #shipping_postcode_field {
	grid-column: auto;
}

body.ironbark-storefront-checkout .woocommerce-additional-fields__field-wrapper {
	grid-template-columns: minmax(0, 1fr);
}

body.ironbark-storefront-checkout .woocommerce-billing-fields > h3,
body.ironbark-storefront-checkout .woocommerce-additional-fields > h3,
body.ironbark-storefront-checkout .woocommerce-shipping-fields > h3 {
	font-size: 1.35rem;
}

body.ironbark-storefront-checkout #order_review_heading {
	margin: 0 0 0.8rem;
	padding: 0;
	border: 0;
	font-family: Montserrat, var(--global-body-font-family, sans-serif);
	font-size: 0.95rem;
	font-weight: 600;
}

body.ironbark-storefront-checkout .form-row label {
	font-size: 0.66rem;
}

body.ironbark-storefront-checkout .input-text,
body.ironbark-storefront-checkout select,
body.ironbark-storefront-checkout .select2-container .select2-selection--single,
body.ironbark-storefront-checkout textarea {
	font-size: 0.75rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table tbody tr.cart_item {
	padding: 0.85rem 0;
}

body.ironbark-storefront-checkout .ironbark-checkout-product-image {
	flex-basis: 4.5rem;
	width: 4.5rem;
	height: 3.75rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table td.product-name,
body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table td.product-total {
	font-size: 0.76rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table dl.variation {
	display: flex;
	flex-wrap: wrap;
	gap: 0.2rem 0.35rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table dl.variation dd {
	margin-right: 0.65rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table tfoot th,
body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table tfoot td {
	font-size: 0.72rem;
}

body.ironbark-storefront-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
	font-size: 1.45rem;
}

body.ironbark-storefront-checkout form.woocommerce-form-login,
body.ironbark-storefront-checkout form.checkout_coupon {
	max-width: 42rem;
}

body.ironbark-storefront-checkout #payment {
	margin-top: 1.25rem;
}

body.ironbark-storefront-checkout #payment .place-order {
	padding: 1rem;
}

body.ironbark-storefront-checkout #place_order {
	min-height: 3.2rem;
}

@media screen and (min-width: 1025px) and (max-width: 1120px) {
	body.ironbark-storefront-commerce .site-main {
		padding-right: 1.25rem;
		padding-left: 1.25rem;
	}

	body.ironbark-storefront-cart .kadence-woo-cart-form-wrap,
	body.ironbark-storefront-checkout form.checkout.woocommerce-checkout {
		gap: 1.5rem;
	}

	body.ironbark-storefront-cart table.shop_table.cart tr.cart_item {
		grid-template-columns: 6rem 4.5rem 8rem minmax(0, 1fr) 5.5rem 1.75rem;
		column-gap: 0.55rem;
	}

	body.ironbark-storefront-cart table.shop_table.cart td.product-thumbnail a,
	body.ironbark-storefront-cart table.shop_table.cart td.product-thumbnail img {
		width: 6rem;
		height: 4.75rem;
	}
}
