.lxsw-wallet-box {
	--lxsw-radius: 10px;
	display: none;
	margin: 14px 0;
	max-width: 520px;
}

.lxsw-wallet-box.lxsw-ready {
	display: block;
}

.lxsw-wallet-buttons {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	width: 100%;
}

.lxsw-wallet-option,
.lxsw-google-button,
.lxsw-google-button > div,
.lxsw-google-button button {
	width: 100%;
	min-width: 0 !important;
}

.lxsw-wallet-option[hidden] {
	display: none !important;
}

.lxsw-apple-button,
apple-pay-button[data-lxsw-wallet="apple"] {
	--apple-pay-button-width: 100%;
	--apple-pay-button-height: 48px;
	--apple-pay-button-border-radius: var(--lxsw-radius);
	--apple-pay-button-padding: 0;
	--apple-pay-button-box-sizing: border-box;
	display: block;
	width: 100%;
	height: 48px;
	cursor: pointer;
}

.lxsw-google-button,
.lxsw-google-button > div,
.lxsw-google-button button {
	height: 48px !important;
	min-height: 48px !important;
	border-radius: var(--lxsw-radius) !important;
}

.lxsw-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 11px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

.lxsw-terms input {
	flex: 0 0 auto;
	margin-top: 3px;
}

.lxsw-qa-note {
	margin: 9px 0 0;
	padding: 8px 10px;
	border: 1px solid #d8b85a;
	border-radius: 8px;
	background: #fff8dc;
	color: #5e4b10;
	font-size: 12px;
	line-height: 1.4;
}

.lxsw-status {
	min-height: 0;
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

.lxsw-status:empty {
	display: none;
}

.lxsw-status[data-kind="error"] {
	color: #b42318;
}

.lxsw-status[data-kind="success"] {
	color: #067647;
}

.lxsw-status[data-kind="warning"] {
	color: #854d0e;
}

.lxsw-status[data-kind="busy"] {
	color: #475467;
}

.lxsw-wallet-box.is-busy .lxsw-wallet-buttons {
	cursor: wait;
}

/* The wallet's native button is the only confirmation control when this gateway is selected. */
body.lxsw-wallet-gateway-selected #place_order,
body.lxsw-wallet-gateway-selected #cfw-place-order,
body.lxsw-wallet-gateway-selected #cfw-payment-action .cfw-place-order-wrap,
body.lxsw-wallet-gateway-selected .hyped-inline-card-place-order,
body.lxsw-wallet-gateway-selected .sk-inline-card-place-order,
body.lxsw-wallet-gateway-selected .sk-inline-place-order-proxy,
body.lxsw-wallet-gateway-selected .hyped-cro-sticky,
body.lxsw-wallet-gateway-selected .openclaw-checkout-mobile-sticky {
	display: none !important;
}

.lxsw-wallet-box.lxsw-no-wallet {
	display: none;
}

.payment_box .lxsw-wallet-box {
	margin-bottom: 4px;
}

/* Match the former Revolut checkout CTA: compact 228×50px, centred and never clipped. */
#cfw-payment-request-buttons .lxsw-wallet-box[data-context="checkout"] {
	--lxsw-radius: 5px;
	width: 228px !important;
	min-width: 228px !important;
	max-width: 228px !important;
	height: 50px !important;
	min-height: 50px !important;
	max-height: 50px !important;
	margin: 0 auto;
	overflow: visible !important;
}

#cfw-payment-request-buttons .lxsw-wallet-box[data-context="checkout"] .lxsw-wallet-buttons,
#cfw-payment-request-buttons .lxsw-wallet-box[data-context="checkout"] .lxsw-wallet-option {
	grid-template-columns: 1fr;
	width: 228px !important;
	min-width: 228px !important;
	max-width: 228px !important;
	height: 50px !important;
	min-height: 50px !important;
	max-height: 50px !important;
	overflow: visible !important;
}

#cfw-payment-request-buttons .lxsw-wallet-box[data-context="checkout"] .lxsw-apple-button,
#cfw-payment-request-buttons .lxsw-wallet-box[data-context="checkout"] apple-pay-button[data-lxsw-wallet="apple"] {
	--apple-pay-button-width: 228px;
	--apple-pay-button-height: 50px;
	--apple-pay-button-border-radius: 5px;
	width: 228px !important;
	min-width: 228px !important;
	max-width: 228px !important;
	height: 50px !important;
	min-height: 50px !important;
	max-height: 50px !important;
}

#cfw-side-cart .lxsw-wallet-box[data-context="sidecart"] {
	width: 100%;
	max-width: none;
	margin: 12px 0 0;
}

#cfw-side-cart .lxsw-wallet-box[data-context="sidecart"] .lxsw-wallet-buttons {
	grid-template-columns: 1fr;
}

@media (max-width: 480px) {
	.lxsw-wallet-buttons {
		grid-template-columns: 1fr;
	}
}
