/*
 * Express checkout buttons (#291). Apple's button is drawn by Safari itself
 * (-apple-pay-button); Google's by pay.js. Both fill their container.
 */
.gr4vy-express {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.gr4vy-express-wrap {
	margin: 0 0 12px;
}

.gr4vy-express-wrap--plain {
	margin: 0 0 20px;
}

/* Placeholder while the wallets are checked (replaced by the first button). */
.gr4vy-express-shimmer {
	width: 100%;
	height: 44px;
	border-radius: 6px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.06) 75%);
	background-size: 200% 100%;
	animation: gr4vy-express-shimmer 1.2s ease-in-out infinite;
}

@keyframes gr4vy-express-shimmer {
	from { background-position: 100% 0; }
	to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
	.gr4vy-express-shimmer {
		animation: none;
	}
}

.gr4vy-apple-pay-button {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	-webkit-appearance: -apple-pay-button;
	-apple-pay-button-type: plain;
	-apple-pay-button-style: black;
}

.gr4vy-apple-pay-button.gr4vy-white {
	-apple-pay-button-style: white-outline;
}

.gr4vy-google-pay-button {
	width: 100%;
	height: 44px;
}

.gr4vy-google-pay-button > div,
.gr4vy-google-pay-button button {
	width: 100% !important;
	height: 100% !important;
}

/* Google's plain button draws its label as a background image: keep it single and fitted (see keepGoogleLabel in express.js). */
.gr4vy-express .gr4vy-google-pay-button button.gpay-button {
	background-repeat: no-repeat !important;
	background-position: center center !important;
	background-size: contain !important;
	background-origin: content-box !important;
}

.gr4vy-express-error {
	font-size: 13px;
	color: #b32d2e;
}

.gr4vy-express-error:empty {
	display: none;
}

.gr4vy-express-terms {
	font-size: 12px;
	line-height: 1.4;
	opacity: 0.8;
	text-align: center;
}

.gr4vy-express-terms a {
	text-decoration: underline;
}
