/* Embedded Stripe Checkout inside the membership form's overlay (overlay base styles: GP Element 68).
 * Element 68 centres the box with absolute positioning + translate(-50%,-50%), which lets a box taller than the
 * window run off the top and bottom. Here the overlay becomes a flex container instead, so the box always sits
 * inside the window with a margin and scrolls internally. z-index sits above the WP admin bar (99999). */
.application-form-overlay.fotd-stripe-overlay {
	cursor: default;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	box-sizing: border-box;
}
.application-form-overlay .text.fotd-stripe-box {
	position: relative;
	top: auto;
	left: auto;
	transform: none;
	-ms-transform: none;
	width: 560px;
	max-width: 100%;
	max-height: 100%;
	overflow-y: auto;
	box-sizing: border-box;
	-webkit-overflow-scrolling: touch;
}
.fotd-stripe-checkout { min-height: 120px; margin: 1em 0; }
.fotd-stripe-cancel { text-align: center; margin: 0.5em 0 0; }
.fotd-stripe-cancel button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0.5em; }

/* v0.1.7: a long submit label ("Apply for Community Supporters membership") ran off the right edge on a phone.
 * That widened the page, and with it the fixed overlay, so Checkout ran off the right too. Let it wrap. */
.application_form input[type="submit"] {
	max-width: 100%;
	white-space: normal;
	height: auto;
	word-wrap: break-word;
}
