/* Typo hint under the e-mail field of Klaviyo sign-up forms (see klaviyo-email-typo.js).
   Tokens taken from the Klaviyo forms themselves: accent = sign-up button, ink = body text. */
.kl-typo-hint {
	--kl-hint-accent: #f38a3a;
	--kl-hint-wash: #fbd5b8;
	--kl-hint-ink: #1b1b1b;

	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	/* Klaviyo pads each form component by 6px; match it so the box lines up with the input. */
	width: calc(100% - 12px);
	box-sizing: border-box;
	margin: 8px 6px 4px;
	padding: 12px 16px;
	border-radius: 4px;
	background: var(--kl-hint-wash);
	color: var(--kl-hint-ink);
	font-family: Lato, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	animation: kl-typo-hint-in 200ms ease-out;
}

.kl-typo-hint__text {
	font-weight: 700;
}

.kl-typo-hint .kl-typo-hint__fix {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin: 0;
	padding: 0 18px;
	border: 1.5px solid var(--kl-hint-ink);
	border-radius: 100px;
	background: #fff;
	color: var(--kl-hint-ink);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	word-break: break-all;
	cursor: pointer;
	transition: background-color 150ms ease-out;
}

.kl-typo-hint .kl-typo-hint__fix:hover {
	background: var(--kl-hint-accent);
}

.kl-typo-hint .kl-typo-hint__fix:focus-visible {
	outline: 2px solid var(--kl-hint-ink);
	outline-offset: 2px;
}

@keyframes kl-typo-hint-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.kl-typo-hint,
	.kl-typo-hint .kl-typo-hint__fix { animation: none; transition: none; }
}
