/* EnglishGrammar Pro 0.13.23 — the inline Paddle checkout inside the offer card (opt-in setting). */
.egpp-monthly-offer .egpp-monthly-card { scroll-margin-top: 16px; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	min-width: 0;
	text-align: left;
	scroll-margin-top: 12px;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout[hidden] { display: none !important; }
/* While the form is up, the column's other children carry the hidden attribute. */
.egpp-monthly-offer .egpp-monthly-card--checkout-open .egpp-monthly-card__purchase > [hidden] { display: none !important; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__head {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__back {
	align-self: flex-start;
	min-height: 40px;
	margin: 0 0 4px;
	padding: 6px 0;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	color: var(--egpp-button-bg, #3f6f23) !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__back:hover { color: var(--egpp-button-hover-bg, #2f541a) !important; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__title {
	margin: 0;
	outline: none;
	color: var(--egpp-letter-ink, #1f2c1e);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__note {
	margin: 0;
	color: var(--egpp-letter-muted, #5a6656);
	font-size: 15px;
	line-height: 1.5;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__frame {
	position: relative;
	min-height: 450px;
	border: 1px solid var(--egpp-letter-line, #dfe6d7);
	border-radius: 10px;
	background: #fff;
	overflow: auto; /* Paddle's frame needs 312px; on a very small phone it scrolls sideways instead of being cut off */
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__frame iframe {
	display: block;
	width: 100%;
	border: 0;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 20px;
	color: var(--egpp-letter-muted, #5a6656);
	font-size: 15px;
	text-align: center;
	pointer-events: none;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__loading[hidden] { display: none !important; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout .egpp-checkout-error { margin: 0; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout .egpp-checkout-error:empty { display: none; }
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__secure {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--egpp-letter-muted, #5a6656);
	font-size: 13.5px;
	line-height: 1.5;
}
.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__secure svg { flex: 0 0 auto; }
@media (max-width: 680px) {
	.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__title { font-size: 22px; }
	.egpp-monthly-offer .egpp-monthly-card .egpp-inline-checkout__frame { min-height: 420px; }
	/* The theme leaves about 260px of content width on a 360px phone, and Paddle's form needs 312px.
	 * While the form is up, the card takes the width of the screen (less a 10px gutter) and drops
	 * its inner padding, so the form gets about 320px on a 360px phone. */
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open {
		box-sizing: border-box;
		width: calc(100vw - 16px);
		max-width: none;
		margin-left: calc(50% - 50vw + 8px) !important;
		margin-right: 0 !important;
		padding-left: 8px !important;
		padding-right: 8px !important;
	}
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open .egpp-monthly-card__purchase {
		padding-left: 4px !important;
		padding-right: 4px !important;
	}
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open .egpp-monthly-card__intro { padding-left: 8px; padding-right: 8px; }
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open .egpp-inline-checkout__head,
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open .egpp-inline-checkout__secure,
	.egpp-monthly-offer .egpp-monthly-card.egpp-monthly-card--checkout-open .egpp-checkout-error { padding-left: 6px; padding-right: 6px; }
}
