.rg-checkout-wallets:not([hidden]) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 10px;
	margin: 0 0 14px;
}
.rg-checkout-wallets[hidden] { display: none; }
.rg-checkout-wallets__button {
	height: 44px;
	min-width: 0;
}
.rg-checkout-wallets__button apple-pay-button {
	display: block;
	--apple-pay-button-width: 100%;
	--apple-pay-button-height: 44px;
	--apple-pay-button-border-radius: 4px;
}

/* Keep the chosen plan and price beside the first checkout step on small screens. */
@media (max-width: 768px) {
	.esim-checkout.rgc-with-trust .esim-checkout__layout {
		row-gap: 14px !important;
		padding-top: 0 !important;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__layout > .esim-checkout__sidebar {
		display: contents !important;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__sidebar > * {
		order: 2;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__sidebar > .esim-checkout__card--summary {
		order: 0 !important;
		position: static;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__layout > .esim-checkout__main {
		order: 1 !important;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__card--summary:has(> .rgc-mobile-details[aria-expanded="false"]) .rgp-allowances {
		display: none !important;
	}
}

@media (max-width: 768px), (max-width: 960px) and (max-height: 500px) {
	.esim-checkout.rgc-with-trust .rgc-mobile-details,
	.esim-checkout.rgc-with-trust details.rgc-promo > summary {
		min-height: 44px !important;
		box-sizing: border-box;
	}
	.esim-checkout.rgc-with-trust details.rgc-promo > summary {
		align-content: center;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__field .esim-checkout__checkbox-label {
		display: flex !important;
		align-items: center !important;
		min-height: 44px !important;
		box-sizing: border-box;
		gap: 8px;
		font-size: 14px !important;
		line-height: 1.4;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__checkbox-label input[type="checkbox"] {
		align-self: center;
		margin-block: 0;
	}
	.esim-checkout.rgc-with-trust .esim-checkout__field input[type="email"],
	.esim-checkout.rgc-with-trust .esim-checkout__field input[type="text"] {
		font-size: 16px !important;
	}
}

.esim-checkout.rgc-with-trust .esim-checkout__field:has(#esim-paypal-name-field) > label .esim-checkout__required {
	display: none;
}
