/**
 * Email confirmation (1.9.170): the dashboard's "Confirm your email" box, the
 * pop-up a paid action opens, and the sign-up form's "Did you mean" hint.
 *
 * The theme paints every <button> orange (.fl-page button), so the link-style
 * buttons below repeat their selectors under .fl-page to win.
 */

/* ---- Dashboard box ------------------------------------------------------ */

.dasaf-email-confirm {
	background: #fff8f1;
	border: 1px solid #f3c9a6;
	border-left: 4px solid #e8712b;
	border-radius: 6px;
	padding: 16px 18px;
	margin-bottom: 20px;
}

.dasaf-ec-title,
.fl-page .dasaf-ec-title {
	margin: 0 0 6px;
	font-size: 17px;
	line-height: 1.3;
	color: #1a1a2e;
}

.dasaf-ec-lead {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
	color: #3c434a;
}

.dasaf-ec-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: stretch;
	margin: 0;
}

.dasaf-ec-form .dasaf-ec-code,
.fl-page .dasaf-ec-form input.dasaf-ec-code {
	width: 9.5em;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	font-family: Menlo, Consolas, monospace;
	font-size: 22px;
	letter-spacing: 6px;
	text-align: center;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	color: #1a1a2e;
}

.dasaf-ec-form .dasaf-ec-code:focus {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	border-color: #2271b1;
}

.dasaf-ec-form .dasaf-ec-submit {
	padding: 8px 20px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
}

.dasaf-ec-status {
	margin: 8px 0 0;
	min-height: 1.4em;
	font-size: 14px;
	color: #3c434a;
}

.dasaf-ec-status.is-error { color: #b32d2e; }
.dasaf-ec-status.is-ok { color: #1e6b30; }

.dasaf-ec-more {
	margin: 4px 0 0;
	font-size: 14px;
	color: #646970;
}

.dasaf-ec-more a {
	color: #2271b1;
}

/* Link-style buttons: "Send a new code", "Not now", "Use it". */
.dasaf-ec-resend,
.dasaf-ec-close,
.dasaf-email-hint button,
.fl-page button.dasaf-ec-resend,
.fl-page button.dasaf-ec-close,
.fl-page .dasaf-email-hint button {
	background: none;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	font: inherit;
	font-size: 14px;
	color: #2271b1;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	min-height: 0;
	line-height: inherit;
}

.fl-page button.dasaf-ec-resend:hover,
.fl-page button.dasaf-ec-resend:focus,
.fl-page button.dasaf-ec-close:hover,
.fl-page button.dasaf-ec-close:focus,
.fl-page .dasaf-email-hint button:hover,
.fl-page .dasaf-email-hint button:focus {
	background: none;
	color: #135e96;
	border: 0;
}

.fl-page button.dasaf-ec-resend:disabled {
	color: #8c8f94;
	cursor: default;
	text-decoration: none;
}

/* After confirming, the box shrinks to one line. */
.dasaf-email-confirm.is-confirmed,
.dasaf-email-confirmed-note {
	background: #edfaef;
	border: 1px solid #b8e6bf;
	border-left: 4px solid #00a32a;
	border-radius: 6px;
	padding: 10px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	font-weight: 500;
	color: #1e6b30;
}

.dasaf-ec-confirmed {
	margin: 0;
}

/* ---- Pop-up -------------------------------------------------------------- */

.dasaf-ec-dialog {
	width: min(440px, calc(100% - 32px));
	box-sizing: border-box;
	padding: 24px;
	border: 0;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	color: #1a1a2e;
}

.dasaf-ec-dialog::backdrop {
	background: rgba(15, 23, 42, 0.5);
}

.dasaf-ec-dialog .dasaf-ec-title,
.fl-page .dasaf-ec-dialog .dasaf-ec-title {
	font-size: 20px;
	margin-bottom: 8px;
}

.dasaf-ec-done {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #1e6b30;
}

.dasaf-ec-done[hidden],
.dasaf-ec-dialog [hidden] {
	display: none;
}

.dasaf-ec-actions {
	margin: 16px 0 0;
	text-align: right;
}

/* ---- Sign-up hint -------------------------------------------------------- */

.dasaf-email-hint {
	margin: 6px 0 0;
	font-size: 14px;
	color: #3c434a;
}

.dasaf-email-hint[hidden] {
	display: none;
}
