/* Monvera Pay — checkout. Neutral on purpose, so it sits inside any store theme. */

.mvpn-icons {
	display: inline-flex;
	gap: 4px;
	margin-left: 8px;
	vertical-align: middle;
}

.mvpn-icons img {
	display: inline-block !important;
	width: 34px !important;
	height: auto !important;
	max-height: none !important;
	margin: 0 !important;
	float: none !important;
	border-radius: 4px;
}

.mvpn-block-label {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	width: 100%;
}

.mvpn-block-label .mvpn-icons {
	margin-left: auto;
}

.mvpn-card {
	margin-top: 4px;
}

.mvpn-card__field {
	padding: 13px 14px;
	border: 1px solid rgba(0, 0, 0, 0.22);
	border-radius: 6px;
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.mvpn-card__field.StripeElement--focus {
	border-color: rgba(0, 0, 0, 0.55);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.mvpn-card__field.StripeElement--invalid {
	border-color: #b3261e;
}

.mvpn-card__error {
	min-height: 1.2em;
	margin-top: 6px;
	color: #b3261e;
	font-size: 0.9em;
}

.mvpn-card__error:empty {
	min-height: 0;
}

.mvpn-test-note,
.mvpn-hosted-note {
	margin: 8px 0 0;
	font-size: 0.9em;
	opacity: 0.8;
}


/* Express checkout (Apple Pay / Google Pay) */
.mvpn-express {
	margin: 14px 0;
}

/* Below Add to cart on its own line, even when the theme floats the button and quantity. */
.mvpn-express--product {
	display: block;
	clear: both;
	width: 100%;
	flex: 0 0 100%;
	padding-top: 2px;
}

/* While Stripe checks for Apple Pay / Google Pay (or when there are none) the box takes no
   space and can't be seen, but keeps its width: the wallet buttons can't draw in display:none. */
.mvpn-express.mvpn-express--waiting {
	height: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.mvpn-express__buttons {
	min-height: 40px;
}

.mvpn-express__error {
	margin: 6px 0 0;
	color: #b3261e;
	font-size: 0.9em;
}

.mvpn-express__error:empty {
	display: none;
}

.mvpn-express__label {
	margin: 0 0 8px;
	font-size: 0.9em;
	font-weight: 600;
	opacity: 0.75;
}

.mvpn-express__or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 18px 0 4px;
	font-size: 0.85em;
	opacity: 0.6;
}

.mvpn-express__or::before,
.mvpn-express__or::after {
	content: "";
	flex: 1;
	height: 1px;
	background: currentColor;
	opacity: 0.35;
}

.mvpn-express--minicart {
	margin: 10px 0 12px;
}

/* Apple's own button in Safari (drawn instantly, before Stripe finishes loading).
   Everything is !important so a theme's button styles can't turn it into a plain coloured pill. */
.mvpn-express .mvpn-apay,
button.mvpn-apay {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: var(--mvpn-h, 48px) !important;
	min-height: var(--mvpn-h, 48px) !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: var(--mvpn-r, 26px) !important;
	background: none !important;
	box-shadow: none !important;
	outline-offset: 2px;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-indent: 0 !important;
	transform: none !important;
	cursor: pointer;
	-webkit-appearance: -apple-pay-button !important;
	-apple-pay-button-type: buy;
	-apple-pay-button-style: black;
	--apple-pay-button-border-radius: var(--mvpn-r, 26px);
	--apple-pay-button-height: var(--mvpn-h, 48px);
}
.mvpn-express .mvpn-apay::before,
.mvpn-express .mvpn-apay::after {
	content: none !important;
	display: none !important;
}

.mvpn-express__buttons > * + * {
	margin-top: 8px;
}

/* Setup check for store admins. */
.mvpn-debug {
	position: fixed;
	left: 10px;
	bottom: 10px;
	z-index: 2147483000;
	width: min(440px, calc(100vw - 20px));
	max-height: 60vh;
	overflow: auto;
	padding: 12px 14px 10px;
	border-radius: 14px;
	background: #062b1e;
	color: #e6f2ea;
	font: 12.5px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5);
	text-align: left;
}
.mvpn-debug__head { display: flex; align-items: baseline; gap: 6px; padding-right: 22px; position: relative; }
.mvpn-debug__head b { color: #fff; }
.mvpn-debug__head span { opacity: 0.6; font-size: 11.5px; }
.mvpn-debug__x { position: absolute; right: -4px; top: -4px; border: 0; background: none; color: #a9c7b5; font-size: 18px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.mvpn-debug ol { margin: 8px 0 0; padding-left: 18px; }
.mvpn-debug li { margin: 1px 0; }
.mvpn-debug li::marker { color: #6b8f7b; }
.mvpn-debug li.is-ok { color: #a7f3c0; }
.mvpn-debug li.is-ok::before { content: "✓ "; }
.mvpn-debug li.is-bad { color: #fca5a5; }
.mvpn-debug li.is-bad::before { content: "✗ "; }
.mvpn-debug li.is-info { color: #cfdcd4; }
.mvpn-debug li.is-info::before { content: "… "; }

/* "By paying with Apple Pay or Google Pay, you agree to our terms…" */
.mvpn-express__agree {
	margin: 8px 0 0 !important;
	font-size: 12px !important;
	line-height: 1.45 !important;
	text-align: center;
	opacity: 0.75;
}
.mvpn-express__agree a {
	color: inherit !important;
	text-decoration: underline !important;
}
