/**
 * Cart order summary — wallet / express payment buttons.
 */

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-quick-checkout--cart,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-quick-checkout--cart {
	display: block;
	margin-top: 12px;
	max-width: 100%;
	overflow: visible;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-quick-checkout__divider,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-quick-checkout__divider {
	margin: 0 0 10px;
	gap: 8px;
	min-width: 0;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-quick-checkout__divider-label,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-quick-checkout__divider-label {
	font-size: 11px;
	font-weight: 600;
	color: #64748b;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	white-space: normal;
	text-align: center;
	flex-shrink: 1;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-quick-checkout .jsm-cro-pay,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-quick-checkout .jsm-cro-pay {
	box-sizing: border-box;
	max-width: 100%;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slots,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slots {
	min-width: 0;
}

body.jsm-cart-page-active .jsm-cart-page__proceed,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed {
	margin: 0;
	padding: 0;
}

body.jsm-cart-page-active .jsm-cart-page__proceed #wc-stripe-express-checkout-element,
body.jsm-cart-page-active .jsm-cart-page__proceed #wcpay-express-checkout-element,
body.jsm-cart-page-active .jsm-cart-page__proceed .wcpay-express-checkout-wrapper,
body.jsm-cart-page-active .jsm-cart-page__proceed .paypal-buttons,
body.jsm-cart-page-active .jsm-cart-page__proceed .payment_request_button,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed #wc-stripe-express-checkout-element,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed #wcpay-express-checkout-element,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed .wcpay-express-checkout-wrapper,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed .paypal-buttons,
body.jsm-cart-mobile-active .jsm-cart-mobile__proceed .payment_request_button {
	display: none !important;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slots,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slots {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slot,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slot {
	min-height: 44px;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slot--empty,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slot--empty {
	display: none;
}

/* No eligibility/status helper copy on cart. */
body.jsm-cart-page-active .jsm-wallet-eligibility-status,
body.jsm-cart-mobile-active .jsm-wallet-eligibility-status {
	display: none !important;
}

/* If no live wallet buttons, hide the whole express block (divider + empty slots). */
body.jsm-cart-page-active .jsm-cro-quick-checkout--cart:not(:has(.jsm-cro-wallet-slot:not(.jsm-cro-wallet-slot--empty))),
body.jsm-cart-mobile-active .jsm-cro-quick-checkout--cart:not(:has(.jsm-cro-wallet-slot:not(.jsm-cro-wallet-slot--empty))) {
	display: none !important;
}

body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slot:not(.jsm-cro-wallet-slot--empty),
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slot:not(.jsm-cro-wallet-slot--empty) {
	display: block;
}

body.jsm-cart-page-active .jsm-cart-page__checkout-btn,
body.jsm-cart-mobile-active .jsm-cart-mobile__checkout-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
}

/* Inert PayPal Apple mount (Stripe Apple Pay is showing instead). */
body.jsm-cart-page-active .jsm-cart-page__summary .jsm-cro-wallet-slot #ppc-button-applepay-container.is-jsm-cro-wallet-mount-inert,
body.jsm-cart-mobile-active .jsm-cart-mobile__summary .jsm-cro-wallet-slot #ppc-button-applepay-container.is-jsm-cro-wallet-mount-inert {
	display: none !important;
	visibility: hidden !important;
	min-height: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}
