/**
 * Zahls Express Checkout — branded wallet buttons, "Swiss clean" aesthetic.
 *
 * Solid near-black surfaces, official brand marks, generous spacing, a single
 * restrained hover/active transition. Mirrors the familiar Apple Pay / Google
 * Pay express-checkout row.
 */

.zahls-ec-express {
	margin: 16px 0 4px;
	max-width: auto;
}

.zahls-ec-express__heading {
	display: block;
	margin: 0 0 10px;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6b6b6b;
}

.zahls-ec-wallets {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* ---- Base button ---- */
.zahls-ec-btn {
	position: relative;
	flex: 1 1 0;
	min-width: 150px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 0 22px;
	margin: 0;
	border: 1px solid #000000;
	border-radius: 6px;
	background: #000000;
	color: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.06s ease, box-shadow 0.22s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.zahls-ec-btn:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.zahls-ec-btn:active {
	transform: translateY(1px);
}

.zahls-ec-btn:focus-visible {
	outline: 2px solid #000000;
	outline-offset: 3px;
}

.zahls-ec-btn[disabled] {
	cursor: default;
	opacity: 0.55;
	box-shadow: none;
	pointer-events: none;
}

/* ---- Button face (logo + text), hidden while loading ---- */
.zahls-ec-btn__face {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	line-height: 1;
}

.zahls-ec-btn.is-loading .zahls-ec-btn__face {
	visibility: hidden;
}

.zahls-ec-btn__logo {
	display: block;
	height: 20px;
	width: auto;
}

/* The Apple mark sits a touch higher than the cap height of "Pay". */
.zahls-ec-btn--apple-pay .zahls-ec-btn__logo {
	height: 21px;
	margin-top: -3px;
}

.zahls-ec-btn--google-pay .zahls-ec-btn__logo--google {
	height: 19px;
}

.zahls-ec-btn__text {
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.01em;
}

/* The generic / card button is text-only and reads as a label. */
.zahls-ec-btn--card .zahls-ec-btn__text {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* ---- Spinner ---- */
.zahls-ec-btn__spinner {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: zahls-ec-spin 0.7s linear infinite;
}

.zahls-ec-btn.is-loading .zahls-ec-btn__spinner {
	display: block;
}

@keyframes zahls-ec-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.zahls-ec-btn,
	.zahls-ec-btn__spinner {
		transition: none;
		animation: none;
	}
}

/* ---- Inline error ---- */
.zahls-ec-error {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: #fbeaea;
	color: #8a1f1f;
	font-size: 13px;
	line-height: 1.4;
}

.zahls-ec-error[hidden] {
	display: none;
}

/* Stack buttons on narrow viewports. */
@media (max-width: 480px) {
	.zahls-ec-btn {
		flex-basis: 100%;
	}
}
