/* Checkout login code — the panel under the email field. */

.abst-lc {
	margin: 12px 0 8px;
	padding: 18px 20px;
	border: 1px solid #b2dfdb;
	border-left: 3px solid var(--abst-cta, #009688);
	border-radius: 6px;
	background: #f2faf9;
	font-size: 15px;
	line-height: 1.5;
}

.abst-lc p {
	margin: 0;
}

.abst-lc .abst-lc-title {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 4px;
}

.abst-lc-row {
	display: flex;
	gap: 8px;
	margin-top: 14px;
	max-width: 360px;
}

#edd_purchase_form .abst-lc-input,
.abst-lc input.abst-lc-input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 14px;
	font-size: 22px;
	letter-spacing: 0.3em;
	font-variant-numeric: tabular-nums;
	text-align: center;
	border: 1px solid #c9d3d2;
	border-radius: 4px;
	background: #fff;
}

#edd_purchase_form .abst-lc-input:focus,
.abst-lc input.abst-lc-input:focus {
	outline: 2px solid var(--abst-cta, #009688);
	outline-offset: 1px;
	border-color: var(--abst-cta, #009688);
}

.abst-lc .abst-lc-verify {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 4px;
	background: var(--abst-cta, #009688);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
}

/* The theme colours checkout links; the "Log in" link is a button here. */
#edd_purchase_form .abst-lc a.abst-lc-verify,
#edd_purchase_form .abst-lc a.abst-lc-verify:visited,
.fl-builder-content .abst-lc a.abst-lc-verify {
	color: #fff;
	text-decoration: none;
}

.abst-lc .abst-lc-verify:hover,
.abst-lc .abst-lc-verify:focus-visible,
#edd_purchase_form .abst-lc a.abst-lc-verify:hover {
	background: var(--abst-cta-ink, #00695c);
	color: #fff;
}

.abst-lc .abst-lc-verify:disabled {
	opacity: 0.6;
	cursor: default;
}

.abst-lc .abst-lc-msg {
	margin-top: 8px;
	font-size: 14px;
	color: #45514f;
}

.abst-lc .abst-lc-msg:empty {
	margin-top: 0;
}

.abst-lc .abst-lc-msg.is-error {
	color: #b3261e;
}

.abst-lc .abst-lc-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 18px;
	margin-top: 10px;
	font-size: 14px;
}

.abst-lc .abst-lc-links .abst-lc-verify {
	height: 40px;
}

.abst-lc .abst-lc-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--abst-blue, #2b7bb9);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.abst-lc .abst-lc-link:disabled {
	color: #6b7674;
	text-decoration: none;
	cursor: default;
}

/* Resend (and, at checkout, the password route) wait out the first 30 seconds
   invisible, then fade in. visibility keeps them out of tab order meanwhile. */
.abst-lc .abst-lc-later {
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.abst-lc .abst-lc-later.is-shown {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.6s ease, visibility 0s;
}

@media (prefers-reduced-motion: reduce) {
	.abst-lc .abst-lc-later,
	.abst-lc .abst-lc-later.is-shown {
		transition: none;
	}
}

.abst-lc .abst-lc-link[hidden] {
	display: none;
}

/* Payment waits until the code is in. Buttons stay clickable so a click can
   bring the code box back into view instead of doing nothing. */
.abst-lc-locked #edd_payment_mode_select_wrap,
.abst-lc-locked #edd_purchase_form_wrap {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s;
}

.abst-lc-locked .checkout-summary-button {
	opacity: 0.5;
}

/* Account page: the form itself, not a notice inside another form. */
.abst-lc.abst-lc-account {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.abst-lc-mount {
	max-width: 520px;
	margin: 8px 0 24px;
}

.abst-lc-account .abst-lc-row {
	max-width: none;
	margin-top: 12px;
}

.abst-lc .abst-lc-row.abst-lc-send-form {
	margin-bottom: 0;
}

.abst-lc input.abst-lc-email {
	font-size: 17px;
	letter-spacing: normal;
	text-align: left;
}

.abst-lc .abst-lc-msg a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.abst-lc-account .abst-lc-row {
		flex-direction: column;
	}

	.abst-lc-account .abst-lc-verify {
		justify-content: center;
	}

	.abst-lc {
		padding: 16px;
	}
}
