/**
 * Cart and checkout pages: cards instead of boxed tables, the same fields
 * and buttons as My Account, brand colour for the main action.
 *
 * Selectors start with "body.woocommerce-cart/-checkout .woocommerce" to win
 * over WooCommerce's and the legacy theme's rules.
 */

body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce {
	--cb-c-ink: #1f2430;
	--cb-c-muted: #64748b;
	--cb-c-line: #e5e7eb;
	--cb-c-field: #d1d5db;
	--cb-c-soft: #f8fafc;
	--cb-c-accent: #a31647;
	--cb-c-accent-dark: #8a1239;
	--cb-c-focus: rgba(14, 88, 135, 0.22);
	--cb-c-head: "Poppins", sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: var(--cb-c-ink);
}

/* Steps ------------------------------------------------------------------ */

body.woocommerce-cart .mfn-checkout-steps,
body.woocommerce-checkout .mfn-checkout-steps {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 0 0 32px;
	padding: 0;
	font-family: var(--cb-c-head, "Poppins", sans-serif);
	list-style: none;
}

body.woocommerce-cart .mfn-checkout-steps li,
body.woocommerce-checkout .mfn-checkout-steps li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	color: #94a3b8;
}

body.woocommerce-cart .mfn-checkout-steps li + li::before,
body.woocommerce-checkout .mfn-checkout-steps li + li::before {
	content: "";
	width: 40px;
	height: 2px;
	margin-right: 2px;
	background: #e5e7eb;
	border-radius: 2px;
}

body.woocommerce-cart .mfn-checkout-steps li::after,
body.woocommerce-checkout .mfn-checkout-steps li::after {
	display: none !important;
}

body.woocommerce-cart .mfn-checkout-steps .mfn-step-number,
body.woocommerce-checkout .mfn-checkout-steps .mfn-step-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #94a3b8;
	background: #fff;
	border: 2px solid #e5e7eb;
	border-radius: 50%;
}

body.woocommerce-cart .mfn-checkout-steps li.active,
body.woocommerce-checkout .mfn-checkout-steps li.active,
body.woocommerce-checkout .mfn-checkout-steps li.done {
	color: #1f2430;
}

body.woocommerce-cart .mfn-checkout-steps li.active .mfn-step-number,
body.woocommerce-checkout .mfn-checkout-steps li.active .mfn-step-number,
body.woocommerce-checkout .mfn-checkout-steps li.done .mfn-step-number {
	color: #fff;
	background: #a31647;
	border-color: #a31647;
}

/* Shared: buttons, fields, notices ---------------------------------------- */

body.woocommerce-cart .woocommerce .button,
body.woocommerce-checkout .woocommerce .button,
body.woocommerce-checkout .woocommerce #place_order {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 20px;
	font-family: var(--cb-c-head);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cb-c-ink);
	background: #fff;
	border: 1px solid var(--cb-c-field);
	border-radius: 10px;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

body.woocommerce-cart .woocommerce .button:hover,
body.woocommerce-checkout .woocommerce .button:hover {
	color: var(--cb-c-ink);
	background: var(--cb-c-soft);
	border-color: #9ca3af;
}

body.woocommerce-cart .woocommerce .checkout-button,
body.woocommerce-checkout .woocommerce #place_order {
	width: 100%;
	min-height: 52px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background: var(--cb-c-accent);
	border-color: var(--cb-c-accent);
}

body.woocommerce-cart .woocommerce .checkout-button:hover,
body.woocommerce-checkout .woocommerce #place_order:hover {
	color: #fff;
	background: var(--cb-c-accent-dark);
	border-color: var(--cb-c-accent-dark);
}

body.woocommerce-cart .woocommerce input.input-text,
body.woocommerce-checkout .woocommerce input.input-text,
body.woocommerce-checkout .woocommerce select,
body.woocommerce-checkout .woocommerce textarea,
body.woocommerce-cart .woocommerce select,
body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 46px;
	margin: 0;
	padding: 11px 14px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: var(--cb-c-ink);
	background: #fff !important;
	border: 1px solid var(--cb-c-field);
	border-radius: 10px;
	box-shadow: none;
}

body.woocommerce-checkout .woocommerce textarea {
	min-height: 96px;
}

body.woocommerce-cart .woocommerce input.input-text:focus,
body.woocommerce-checkout .woocommerce input.input-text:focus,
body.woocommerce-checkout .woocommerce select:focus,
body.woocommerce-checkout .woocommerce textarea:focus,
body.woocommerce-checkout .woocommerce .select2-container--open .select2-selection--single {
	border-color: #0e5887;
	outline: 0;
	box-shadow: 0 0 0 3px var(--cb-c-focus);
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	padding: 0 14px;
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection__rendered {
	padding: 0;
	line-height: 1.4;
	color: var(--cb-c-ink);
}

body.woocommerce-checkout .woocommerce .select2-container .select2-selection__arrow {
	top: 50%;
	right: 10px;
	transform: translateY(-50%);
}

body.woocommerce-cart .woocommerce .woocommerce-error,
body.woocommerce-cart .woocommerce .woocommerce-message,
body.woocommerce-cart .woocommerce .woocommerce-info,
body.woocommerce-checkout .woocommerce .woocommerce-error,
body.woocommerce-checkout .woocommerce .woocommerce-message,
body.woocommerce-checkout .woocommerce .woocommerce-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 20px;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.5;
	list-style: none;
	border: 1px solid;
	border-radius: 12px;
	box-shadow: none;
}

body.woocommerce-cart .woocommerce .woocommerce-error,
body.woocommerce-checkout .woocommerce .woocommerce-error {
	display: block;
	color: #991b1b;
	background: #fef2f2;
	border-color: #fecaca;
}

body.woocommerce-cart .woocommerce .woocommerce-message,
body.woocommerce-checkout .woocommerce .woocommerce-message {
	color: #166534;
	background: #f0fdf4;
	border-color: #bbf7d0;
}

body.woocommerce-cart .woocommerce .woocommerce-info,
body.woocommerce-checkout .woocommerce .woocommerce-info {
	color: #334155;
	background: var(--cb-c-soft);
	border-color: var(--cb-c-line);
}

body.woocommerce-cart .woocommerce .woocommerce-error li,
body.woocommerce-checkout .woocommerce .woocommerce-error li {
	margin: 0;
	padding: 0;
}

body.woocommerce-cart .woocommerce .woocommerce-message .button,
body.woocommerce-cart .woocommerce .woocommerce-info .button {
	order: 2;
	min-height: 36px;
	margin-left: auto;
	padding: 6px 14px;
	font-size: 14px;
}

body.woocommerce-cart .woocommerce .amount,
body.woocommerce-checkout .woocommerce .amount {
	color: inherit;
}

/* Cart: items ------------------------------------------------------------ */

body.woocommerce-cart .woocommerce .woocommerce-cart-form {
	min-width: 0;
}

body.woocommerce-cart .woocommerce table.shop_table.cart {
	width: 100%;
	margin: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--cb-c-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 16px;
}

body.woocommerce-cart .woocommerce table.shop_table.cart th,
body.woocommerce-cart .woocommerce table.shop_table.cart td {
	padding: 16px;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	vertical-align: middle;
	background: none;
	border: 0;
	border-top: 1px solid var(--cb-c-line);
}

body.woocommerce-cart .woocommerce table.shop_table.cart thead th {
	padding-top: 12px;
	padding-bottom: 12px;
	font-family: var(--cb-c-head);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cb-c-muted);
	background: var(--cb-c-soft);
	border-top: 0;
}

body.woocommerce-cart .woocommerce table.cart td.product-thumbnail {
	width: 84px;
	padding-right: 0;
}

body.woocommerce-cart .woocommerce table.cart td.product-thumbnail img {
	display: block;
	width: 72px !important;
	height: 72px !important;
	max-width: none;
	object-fit: cover;
	background: #f3f4f6;
	border-radius: 10px;
}

body.woocommerce-cart .woocommerce table.cart td.product-name > a,
body.woocommerce-cart .woocommerce table.cart td.product-name {
	font-family: var(--cb-c-head);
	font-weight: 600;
	color: var(--cb-c-ink);
	text-decoration: none;
}

body.woocommerce-cart .woocommerce table.cart td.product-name > a:hover {
	color: var(--cb-c-accent);
}

/* Item details (child, registration, add-ons) */
body.woocommerce-cart .woocommerce table.cart dl.variation,
body.woocommerce-checkout .woocommerce dl.variation {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 10px;
	margin: 8px 0 0;
	padding: 0;
	font-family: "Roboto", sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
	color: var(--cb-c-muted);
	border: 0;
}

body.woocommerce-cart .woocommerce table.cart dl.variation dt,
body.woocommerce-cart .woocommerce table.cart dl.variation dd,
body.woocommerce-checkout .woocommerce dl.variation dt,
body.woocommerce-checkout .woocommerce dl.variation dd {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	font-weight: 400;
	background: none;
	border: 0;
}

body.woocommerce-cart .woocommerce table.cart dl.variation dt,
body.woocommerce-checkout .woocommerce dl.variation dt {
	color: #8a909c;
}

body.woocommerce-cart .woocommerce table.cart dl.variation dd p,
body.woocommerce-checkout .woocommerce dl.variation dd p {
	margin: 0;
	color: var(--cb-c-ink);
}

body.woocommerce-cart .woocommerce table.cart td.product-price,
body.woocommerce-cart .woocommerce table.cart td.product-subtotal {
	white-space: nowrap;
}

body.woocommerce-cart .woocommerce table.cart td.product-subtotal {
	font-weight: 600;
}

/* Quantity stepper */
body.woocommerce-cart .woocommerce table.cart .quantity {
	display: inline-flex;
	align-items: center;
	width: auto;
	height: 40px;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--cb-c-field);
	border-radius: 999px;
}

body.woocommerce-cart .woocommerce table.cart .quantity .quantity-change {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 38px;
	margin: 0;
	font-size: 12px;
	color: var(--cb-c-ink);
	text-decoration: none;
	background: none;
	border: 0;
	border-radius: 50%;
}

body.woocommerce-cart .woocommerce table.cart .quantity .quantity-change:hover {
	background: var(--cb-c-soft);
}

body.woocommerce-cart .woocommerce table.cart .quantity input.qty {
	width: 36px;
	min-height: 0;
	height: 38px;
	padding: 0;
	font-weight: 600;
	text-align: center;
	background: transparent !important;
	border: 0;
	box-shadow: none;
	-moz-appearance: textfield;
}

body.woocommerce-cart .woocommerce table.cart .quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart .woocommerce table.cart .quantity input.qty::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/* Remove */
body.woocommerce-cart .woocommerce table.cart td.product-remove {
	width: 44px;
	padding-left: 0;
	text-align: right;
}

body.woocommerce-cart .woocommerce table.cart a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	font-size: 14px;
	line-height: 1;
	color: #94a3b8 !important;
	background: none;
	border-radius: 50%;
}

body.woocommerce-cart .woocommerce table.cart a.remove .icon {
	font-size: 14px;
}

body.woocommerce-cart .woocommerce table.cart a.remove:hover {
	color: #b91c1c !important;
	background: #fef2f2;
}

/* Coupon row */
body.woocommerce-cart .woocommerce table.cart td.actions {
	padding: 14px 16px;
	background: var(--cb-c-soft);
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon {
	display: flex;
	float: none;
	align-items: center;
	gap: 8px;
	max-width: 380px;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon label {
	display: none;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
	flex: 1 1 auto;
	width: auto;
	min-height: 42px;
	padding: 8px 12px;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .button {
	flex-shrink: 0;
	min-height: 42px;
}

/* The cart updates on its own when a quantity changes. */
body.woocommerce-cart.cb-js .woocommerce table.cart td.actions > button[name="update_cart"] {
	display: none;
}

body.woocommerce-cart .woocommerce .woocommerce-cart-form.processing,
body.woocommerce-cart .woocommerce .cart_totals.processing {
	opacity: 0.6;
}

/* Cart: totals ----------------------------------------------------------- */

body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals,
body.woocommerce-checkout .woocommerce #order_review {
	box-sizing: border-box;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--cb-c-line);
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

body.woocommerce-cart .woocommerce .cart_totals .title,
body.woocommerce-cart .woocommerce .cart_totals h2,
body.woocommerce-checkout .woocommerce #order_review_heading,
body.woocommerce-checkout .woocommerce h3 {
	margin: 0 0 16px;
	font-family: var(--cb-c-head);
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.3;
	text-align: left;
	color: var(--cb-c-ink);
}

body.woocommerce-cart .woocommerce .cart_totals table.shop_table,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0 0 18px;
	background: none;
	border: 0;
	border-collapse: collapse;
}

body.woocommerce-cart .woocommerce .cart_totals table th,
body.woocommerce-cart .woocommerce .cart_totals table td,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table td {
	padding: 12px 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
	text-align: left;
	vertical-align: top;
	background: none !important;
	border: 0;
	border-bottom: 1px solid var(--cb-c-line);
}

body.woocommerce-cart .woocommerce .cart_totals table td,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table td:last-child,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table th:last-child,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
}

body.woocommerce-cart .woocommerce .cart_totals table th,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table tfoot th {
	color: var(--cb-c-muted);
}

body.woocommerce-cart .woocommerce .cart_totals .order-total th,
body.woocommerce-cart .woocommerce .cart_totals .order-total td,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table .order-total th,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table .order-total td {
	padding-top: 16px;
	font-family: var(--cb-c-head);
	font-size: 18px;
	font-weight: 600;
	color: var(--cb-c-ink);
	border-bottom: 0;
}

body.woocommerce-cart .woocommerce .cart_totals .order-total strong,
body.woocommerce-checkout .woocommerce .order-total strong {
	font-weight: 600;
}

body.woocommerce-cart .woocommerce .woocommerce-shipping-methods,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.woocommerce-cart .woocommerce .woocommerce-shipping-methods li,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-methods li {
	margin: 0;
	padding: 0;
}

body.woocommerce-cart .woocommerce .woocommerce-shipping-destination {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--cb-c-muted);
}

body.woocommerce-cart .woocommerce .shipping-calculator-button {
	font-size: 13px;
	color: var(--cb-c-accent);
}

body.woocommerce-cart .woocommerce .shipping-calculator-button::after {
	display: none;
}

body.woocommerce-cart .woocommerce .wc-proceed-to-checkout {
	padding: 0;
}

/* Checkout --------------------------------------------------------------- */

body.woocommerce-checkout .woocommerce .woocommerce-form-login-toggle .woocommerce-info,
body.woocommerce-checkout .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info {
	justify-content: flex-start;
	margin-bottom: 12px;
}

body.woocommerce-checkout .woocommerce .woocommerce-form-login-toggle .woocommerce-info a,
body.woocommerce-checkout .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info a {
	font-weight: 600;
	color: var(--cb-c-accent);
}

body.woocommerce-checkout .woocommerce form.checkout_coupon,
body.woocommerce-checkout .woocommerce form.woocommerce-form-login {
	margin: 0 0 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--cb-c-line);
	border-radius: 14px;
}

body.woocommerce-checkout .woocommerce form.checkout {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	grid-template-areas: "details heading" "details review";
	grid-template-rows: auto 1fr;
	gap: 0 40px;
	align-items: start;
}

body.woocommerce-checkout .woocommerce form.checkout > .woocommerce-notices-wrapper,
body.woocommerce-checkout .woocommerce form.checkout > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
}

body.woocommerce-checkout .woocommerce form.checkout #customer_details {
	grid-area: details;
	float: none;
	width: auto;
}

body.woocommerce-checkout .woocommerce form.checkout #order_review_heading {
	grid-area: heading;
	display: none;
}

body.woocommerce-checkout .woocommerce form.checkout #order_review {
	grid-area: review;
	position: sticky;
	top: 100px;
	float: none;
	width: auto;
}

body.woocommerce-checkout .woocommerce #customer_details .col-1,
body.woocommerce-checkout .woocommerce #customer_details .col-2 {
	float: none;
	width: auto;
	max-width: none;
}

body.woocommerce-checkout .woocommerce #customer_details .col-2 {
	margin-top: 24px;
}

body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper .form-row,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper .form-row {
	grid-column: 1 / -1;
	float: none;
	width: auto;
}

body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper .form-row-first,
body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper .form-row-last,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper .form-row-first,
body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper .form-row-last {
	grid-column: auto;
}

body.woocommerce-checkout .woocommerce form .form-row {
	margin: 0 0 16px;
	padding: 0;
}

body.woocommerce-checkout .woocommerce form .form-row label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	color: var(--cb-c-ink);
}

body.woocommerce-checkout .woocommerce form .form-row label.checkbox,
body.woocommerce-checkout .woocommerce form .form-row .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

body.woocommerce-checkout .woocommerce form .form-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--cb-c-accent);
}

body.woocommerce-checkout .woocommerce form .form-row .required {
	color: #b91c1c;
	text-decoration: none;
}

body.woocommerce-checkout .woocommerce .woocommerce-account-fields,
body.woocommerce-checkout .woocommerce #ship-to-different-address {
	margin: 4px 0 16px;
	padding: 16px 18px;
	font-size: 15px;
	background: var(--cb-c-soft);
	border: 1px solid var(--cb-c-line);
	border-radius: 12px;
}

body.woocommerce-checkout .woocommerce #ship-to-different-address label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
}

body.woocommerce-checkout .woocommerce .woocommerce-account-fields .form-row:last-child {
	margin-bottom: 0;
}

/* Order review */
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table thead th {
	padding-top: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--cb-c-muted);
}

body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table td.product-name {
	font-weight: 500;
}

body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table .product-quantity {
	font-weight: 400;
	color: var(--cb-c-muted);
	background: none;
}

/* Payment */
body.woocommerce-checkout .woocommerce #payment {
	padding: 0;
	background: none;
	border-radius: 0;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods > li {
	margin: 0 0 8px;
	padding: 14px 16px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--cb-c-line);
	border-radius: 12px;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods > li:has(input:checked) {
	border-color: var(--cb-c-accent);
	box-shadow: 0 0 0 1px var(--cb-c-accent);
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods > li:has(.woocommerce-info) {
	padding: 0;
	border: 0;
}

body.woocommerce-checkout .woocommerce #payment ul.payment_methods > li .woocommerce-info {
	margin: 0;
	font-size: 14px;
}

body.woocommerce-checkout .woocommerce #payment div.payment_box {
	margin: 10px 0 0;
	padding: 12px 14px;
	font-size: 14px;
	background: var(--cb-c-soft);
	border-radius: 10px;
}

body.woocommerce-checkout .woocommerce #payment div.payment_box::before {
	display: none;
}

body.woocommerce-checkout .woocommerce #payment .place-order {
	margin: 0;
	padding: 0;
}

body.woocommerce-checkout .woocommerce .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 14px;
	font-size: 14px;
}

body.woocommerce-checkout .woocommerce .woocommerce-privacy-policy-text p {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--cb-c-muted);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 959px) {
	body.woocommerce-checkout .woocommerce form.checkout {
		grid-template-columns: 1fr;
		grid-template-areas: "details" "heading" "review";
	}

	body.woocommerce-checkout .woocommerce form.checkout #order_review {
		position: static;
		margin-top: 24px;
	}
}

@media (max-width: 767px) {
	body.woocommerce-cart .mfn-checkout-steps li + li::before,
	body.woocommerce-checkout .mfn-checkout-steps li + li::before {
		width: 16px;
	}

	body.woocommerce-cart .woocommerce table.shop_table.cart thead {
		display: none;
	}

	body.woocommerce-cart .woocommerce table.shop_table.cart,
	body.woocommerce-cart .woocommerce table.shop_table.cart tbody {
		display: block;
	}

	/* Each item becomes a card: image, name and details, then price row. */
	body.woocommerce-cart .woocommerce table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 72px 1fr auto;
		grid-template-areas: "thumb name remove" "thumb qty subtotal";
		gap: 8px 14px;
		padding: 16px;
		border-top: 1px solid var(--cb-c-line);
	}

	body.woocommerce-cart .woocommerce table.cart tr.cart_item:first-child {
		border-top: 0;
	}

	body.woocommerce-cart .woocommerce table.cart tr.cart_item td {
		display: block;
		padding: 0;
		text-align: left !important;
		border: 0;
	}

	body.woocommerce-cart .woocommerce table.cart tr.cart_item td::before {
		display: none;
	}

	body.woocommerce-cart .woocommerce table.cart td.product-thumbnail { grid-area: thumb; width: auto; }
	body.woocommerce-cart .woocommerce table.cart td.product-name { grid-area: name; }
	body.woocommerce-cart .woocommerce table.cart td.product-price { display: none !important; }
	body.woocommerce-cart .woocommerce table.cart td.product-quantity { grid-area: qty; }
	body.woocommerce-cart .woocommerce table.cart td.product-subtotal { grid-area: subtotal; align-self: center; text-align: right !important; }
	body.woocommerce-cart .woocommerce table.cart td.product-remove { grid-area: remove; width: auto; }

	body.woocommerce-cart .woocommerce table.cart tr:not(.cart_item) {
		display: block;
	}

	body.woocommerce-cart .woocommerce table.cart td.actions {
		display: block;
		border-top: 1px solid var(--cb-c-line);
	}

	body.woocommerce-cart .woocommerce table.cart td.actions .coupon {
		max-width: none;
	}

	body.woocommerce-cart .woocommerce .cart-collaterals .cart_totals {
		margin-top: 20px;
	}

	body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper,
	body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper {
		grid-template-columns: 1fr;
	}

	body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper .form-row-first,
	body.woocommerce-checkout .woocommerce .woocommerce-billing-fields__field-wrapper .form-row-last,
	body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper .form-row-first,
	body.woocommerce-checkout .woocommerce .woocommerce-shipping-fields__field-wrapper .form-row-last {
		grid-column: 1 / -1;
	}
}

/* Legacy overrides that need !important ---------------------------------- */

/* The legacy theme lays the checkout form out as flex and boxes every cell. */
body.woocommerce-checkout .woocommerce form.checkout {
	display: grid !important;
}

body.woocommerce-cart .woocommerce table.shop_table th,
body.woocommerce-cart .woocommerce table.shop_table td,
body.woocommerce-checkout .woocommerce table.shop_table th,
body.woocommerce-checkout .woocommerce table.shop_table td {
	border-right: 0 !important;
	border-left: 0 !important;
}

body.woocommerce-cart .woocommerce .cart_totals table.shop_table,
body.woocommerce-checkout .woocommerce table.woocommerce-checkout-review-order-table {
	border: 0 !important;
}

body.woocommerce-cart .woocommerce .cart_totals table tr:first-child th,
body.woocommerce-cart .woocommerce .cart_totals table tr:first-child td {
	border-top: 0 !important;
}

/* Quantity: the legacy field reserves room for its own buttons. */
body.woocommerce-cart .woocommerce table.cart .quantity input.qty {
	width: 36px !important;
	padding: 0 !important;
	color: var(--cb-c-ink) !important;
}

body.woocommerce-cart .woocommerce table.cart .quantity .quantity-change {
	position: static !important;
}

/* Coupon field: plain text, no legacy capitals. */
body.woocommerce-cart .woocommerce #coupon_code,
body.woocommerce-checkout .woocommerce #coupon_code {
	letter-spacing: 0 !important;
	text-transform: none !important;
}

/* The totals card is enough; no grey box around it. */
body.woocommerce-cart .woocommerce .cart-collaterals {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}

@media (max-width: 767px) {
	body.woocommerce-cart .woocommerce table.cart tr.cart_item td,
	body.woocommerce-cart .woocommerce table.cart td.actions {
		border: 0 !important;
	}

	body.woocommerce-cart .woocommerce table.cart td.actions {
		border-top: 1px solid var(--cb-c-line) !important;
	}

	/* Only the current step keeps its label on small screens. */
	body.woocommerce-cart .mfn-checkout-steps li:not(.active),
	body.woocommerce-checkout .mfn-checkout-steps li:not(.active) {
		font-size: 0;
	}

	body.woocommerce-cart .mfn-checkout-steps li .mfn-step-number,
	body.woocommerce-checkout .mfn-checkout-steps li .mfn-step-number {
		font-size: 13px;
	}

	body.woocommerce-cart .mfn-checkout-steps li,
	body.woocommerce-checkout .mfn-checkout-steps li {
		flex-direction: row;
	}
}

/* WooCommerce sizes both checkout columns in %, which halves them in the grid. */
body.woocommerce-checkout .woocommerce form.checkout #customer_details,
body.woocommerce-checkout .woocommerce form.checkout #order_review {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin-right: 0 !important;
	margin-left: 0 !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon {
	flex-wrap: nowrap !important;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .button {
	width: auto !important;
	white-space: nowrap;
}

body.woocommerce-cart .woocommerce table.cart td.actions .coupon .input-text {
	min-width: 0;
	margin: 0 !important;
}
