/* v1.1.47.45 — checkout bottom spacing only.
 *
 * (a) Leave a clear 16px gap between the package-pricing note and
 *     Place Order so they no longer touch or overlap.
 * (b) Restyle "Or pay with" as a left-aligned label with the rule
 *     starting after the text (vertically centered), no strike-through.
 * (c) Hide the Express Checkout fieldset legend (it was a second,
 *     misaligned top rule) and give the button box one clean border
 *     with the same 18px radius as the payment card. Buttons keep
 *     the same left/right inset as .44.
 * Cart and the rest of checkout are unchanged.
 */

/* (a) The note sits in flex order 1, Place Order in order 4, so they
 *     meet visually with no gap (margin-bottom was 0). */
body.woocommerce-checkout .wc-block-checkout__form > .pc34-note {
	margin-bottom: 16px;
}

/* (b) Turn the express wrapper into a 2-column grid: label | line,
 *     then the payment box on the next row. */
body.woocommerce-checkout .wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block,
body.woocommerce-checkout .wc-block-checkout__form > div:has(> .wc-block-components-express-payment) {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 12px;
}

body.woocommerce-checkout .wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block::before,
body.woocommerce-checkout .wc-block-checkout__form > div:has(> .wc-block-components-express-payment)::before {
	content: "Or pay with";
	grid-column: 1;
	grid-row: 1;
	display: block;
	background: none !important;
	margin: 0 0 16px;
	padding: 0;
	white-space: nowrap;
	font-size: 13px;
	color: var(--pc-mute, #6b5f57);
	text-transform: uppercase;
	letter-spacing: .08em;
	line-height: 1.3;
}

body.woocommerce-checkout .wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block::after,
body.woocommerce-checkout .wc-block-checkout__form > div:has(> .wc-block-components-express-payment)::after {
	content: "";
	grid-column: 2;
	grid-row: 1;
	height: 1px;
	background: var(--pc-line, rgba(31, 26, 23, 0.1));
	margin: 0 0 16px;
	padding: 0;
	align-self: center;
}

body.woocommerce-checkout .wc-block-checkout__form > .wp-block-woocommerce-checkout-express-payment-block > *,
body.woocommerce-checkout .wc-block-checkout__form > div:has(> .wc-block-components-express-payment) > * {
	grid-column: 1 / -1;
	grid-row: 2;
	justify-self: stretch;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

/* (c) Drop the legend that was cutting the top border, and draw one
 *     tidy box around the buttons. */
body.woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container,
body.woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title {
	display: none !important;
}

body.woocommerce-checkout .wc-block-components-express-payment--checkout {
	border: 1px solid var(--pc-line, rgba(31, 26, 23, 0.1));
	border-radius: 18px;
	padding: 16px;
	background: transparent;
	margin-top: 0;
	margin-left: 0;
	margin-right: 0;
	box-shadow: none;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	justify-self: stretch;
}

body.woocommerce-checkout .wc-block-components-express-payment--checkout .wc-block-components-express-payment__content {
	border: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
}
