.flux-checkout__steps .wc-stripe-banner-checkout,
.flux-checkout__steps .wc-stripe-banner-checkout fieldset,
.flux-checkout__steps .wc-stripe-banner-checkout .wc_stripe_checkout_banner_gateways,
.flux-checkout__steps .wc-stripe-banner-checkout .wc-stripe-checkout-banner-gateway {
	box-sizing: border-box !important;
	max-width: none !important;
	min-width: 0 !important;
	width: 100% !important;
}

.flux-checkout__steps .wc-stripe-banner-checkout fieldset {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.flux-checkout__steps .wc-stripe-banner-checkout .wc_stripe_checkout_banner_gateways {
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.flux-checkout__steps .wc-stripe-banner-checkout button.apple-pay-button {
	box-sizing: border-box !important;
	display: block !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	max-width: none !important;
	min-height: 52px !important;
	width: 100% !important;
}

/*
 * Stripe inserts its Apple Pay action immediately after Flux's normal
 * #place_order button. Keep only the action for the selected gateway visible.
 */
html[data-staging-apple-pay-selected="false"] .flux-checkout .place-order > .flux-footer #place_order + button.apple-pay-button {
	display: none !important;
}

html[data-staging-apple-pay-selected="true"] .flux-checkout .place-order > .flux-footer #place_order {
	display: none !important;
}

@media (max-width: 767px) {
	.flux-checkout__sidebar-header {
		box-sizing: border-box !important;
		min-height: 58px !important;
		padding: 12px 14px !important;
	}

	.flux-checkout__sidebar-header-inner {
		align-items: center !important;
		min-height: 34px !important;
		width: 100% !important;
	}

	.flux-checkout__sidebar-header-link,
	.flux-checkout__sidebar-header-total {
		font-size: 16px !important;
		line-height: 24px !important;
	}
}

@media (min-width: 768px) {
	.flux-checkout .place-order > .flux-footer #place_order + button.apple-pay-button {
		box-sizing: border-box !important;
		flex: 0 0 360px !important;
		font-size: 18px !important;
		height: 52px !important;
		line-height: 22px !important;
		margin-left: auto !important;
		max-width: 360px !important;
		min-height: 52px !important;
		padding: 14px 24px !important;
		width: 360px !important;
	}

	.flux-checkout .place-order > .flux-footer #place_order {
		flex: 0 0 50% !important;
		margin-left: 24px !important;
		margin-right: auto !important;
		max-width: 50% !important;
		width: 50% !important;
	}

	.flux-checkout .place-order > .flux-footer #place_order + button.apple-pay-button {
		display: block !important;
		margin-right: 0 !important;
	}

	html[data-staging-apple-pay-selected="false"] .flux-checkout .place-order > .flux-footer #place_order + button.apple-pay-button {
		display: none !important;
	}
}

@media (min-width: 1024px) {
	.flux-checkout__shipping-table tr.woocommerce-shipping-totals.shipping,
	.flux-checkout__shipping-table tr.woocommerce-shipping-totals.shipping > th,
	.flux-checkout__shipping-table tr.woocommerce-shipping-totals.shipping > td {
		box-sizing: border-box !important;
		display: block !important;
		width: 100% !important;
	}

	.flux-checkout__shipping-table tr.woocommerce-shipping-totals.shipping > th {
		padding: 12px 0 8px 32px !important;
	}

	.flux-checkout__shipping-table tr.woocommerce-shipping-totals.shipping > td {
		padding: 0 0 12px !important;
		text-align: left !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods {
		box-sizing: border-box !important;
		margin: 0 !important;
		padding: 0 !important;
		text-align: left !important;
		width: 100% !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods > li {
		align-items: start !important;
		box-sizing: border-box !important;
		column-gap: 14px !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 18px !important;
		margin: 0 !important;
		padding: 14px 0 !important;
		row-gap: 4px !important;
		text-align: left !important;
		width: 100% !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods > li + li {
		border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods > li > label {
		align-items: baseline !important;
		display: flex !important;
		gap: 16px !important;
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-content: space-between !important;
		margin: 0 !important;
		text-align: left !important;
		width: 100% !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods > li > input.shipping_method {
		align-self: center !important;
		grid-column: 2 !important;
		grid-row: 1 !important;
		margin: 0 !important;
	}

	.flux-checkout__shipping-table .woocommerce-shipping-methods > li > .betrs_option_desc {
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		line-height: 1.5 !important;
		margin: 0 !important;
		text-align: left !important;
	}
}
