/* Gray out the buy button on gated events until verified. */
body.tlt-fg-gated:not(.tlt-fg-open) form.cart .single_add_to_cart_button,
body.tlt-fg-gated:not(.tlt-fg-open) form.cart .single_add_to_cart_button:hover {
	opacity: .45;
	filter: grayscale(1);
	cursor: not-allowed;
	pointer-events: none;
}

.tlt-fg {
	--tlt-fg-ok: #1f7a3d;
	--tlt-fg-warn: #9a5a00;
	--tlt-fg-line: rgba(127, 127, 127, .3);
	--tlt-fg-tint: rgba(127, 127, 127, .14);
	border: 1px solid var(--tlt-fg-line);
	border-radius: 12px;
	padding: 18px 20px;
	margin: 0 0 20px;
	line-height: 1.45;
}
.tlt-fg__title { font-weight: 700; font-size: 1.1em; margin: 0 0 4px; }
.tlt-fg__lead { margin: 0 0 12px; opacity: .8; }
.tlt-fg__steps { margin: 0 0 14px 1.25em; padding: 0; }
.tlt-fg__steps li { margin: 0 0 8px; }
.tlt-fg__code-wrap { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; white-space: nowrap; }
.tlt-fg__code {
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 3px 9px;
	border-radius: 6px;
	background: var(--tlt-fg-tint);
	color: inherit;
}
.tlt-fg__copy,
.tlt-fg__recheck {
	font: inherit;
	font-size: .88em;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid var(--tlt-fg-line);
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.tlt-fg__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tlt-fg-line); }
.tlt-fg__acct {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	align-items: center;
	padding: 10px 0;
	margin: 0;
	border-bottom: 1px solid var(--tlt-fg-line);
}
.tlt-fg__handle { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; word-break: break-all; }
.tlt-fg__icon { width: 24px; height: 24px; flex: 0 0 24px; object-fit: contain; border-radius: 6px; }
.tlt-fg__platform { font-weight: 400; font-size: .82em; opacity: .65; margin-left: 4px; }
.tlt-fg__codeline { margin: 0 0 12px; }
.tlt-fg__actions { display: flex; gap: 6px; }
.tlt-fg__btn {
	display: inline-block;
	padding: 6px 13px;
	border-radius: 999px;
	border: 1px solid currentColor;
	font-size: .88em;
	line-height: 1.3;
	text-decoration: none !important;
	color: inherit;
}
.tlt-fg__btn--dm { font-weight: 600; border-width: 2px; padding: 5px 12px; }
.tlt-fg__state { grid-column: 1 / -1; font-size: .88em; opacity: .7; }
.tlt-fg__acct[data-state="verified"] .tlt-fg__state { color: var(--tlt-fg-ok); opacity: 1; font-weight: 600; }
.tlt-fg__acct[data-state="verified"] .tlt-fg__actions,
.tlt-fg__acct[data-state="done"] .tlt-fg__actions { display: none; }
.tlt-fg__acct[data-state="done"] .tlt-fg__state { color: var(--tlt-fg-ok); opacity: 1; font-weight: 600; }
.tlt-fg__acct[data-state="not_following"] .tlt-fg__state { color: var(--tlt-fg-warn); opacity: 1; }
.tlt-fg__names { display: grid; gap: 10px; margin: 14px 0 0; }
.tlt-fg__name { display: flex; flex-direction: column; gap: 4px; font-size: .92em; margin: 0; }
.tlt-fg__name input {
	font: inherit;
	width: 100%;
	max-width: 320px;
	padding: 8px 10px;
	border: 1px solid var(--tlt-fg-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
}
.tlt-fg__name[data-saved="1"] input { border-color: var(--tlt-fg-ok); }
.tlt-fg__name[data-error="1"] input { border-color: var(--tlt-fg-warn); }
.tlt-fg__fine { margin: 0; font-size: .85em; opacity: .7; }
.tlt-fg__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.tlt-fg__msg { margin: 0; font-size: .9em; }

.tlt-fg.is-unlocked { border-color: var(--tlt-fg-ok); }
.tlt-fg.is-unlocked .tlt-fg__title { color: var(--tlt-fg-ok); }
.tlt-fg.is-unlocked .tlt-fg__lead,
.tlt-fg.is-unlocked .tlt-fg__codeline,
.tlt-fg.is-unlocked .tlt-fg__fine,
.tlt-fg.is-unlocked .tlt-fg__steps,
.tlt-fg.is-unlocked .tlt-fg__recheck { display: none; }

.tlt-fg.is-nudged { animation: tlt-fg-nudge .45s ease; }
@keyframes tlt-fg-nudge { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.tlt-fg a:focus-visible,
.tlt-fg input:focus-visible,
.tlt-fg button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

@media (max-width: 420px) {
	.tlt-fg { padding: 16px; }
	.tlt-fg__acct { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.tlt-fg.is-nudged { animation: none; }
}

/* Optional Google review prompt: in the gate once unlocked, and on the order confirmation page. */
.tlt-fg__review { display: none; margin-top: 14px; }
.tlt-fg.is-unlocked .tlt-fg__review { display: block; }
.tlt-fg-review {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 16px;
	padding: 14px 16px;
	margin: 0 0 20px;
	border: 1px solid rgba(127, 127, 127, .3);
	border-radius: 10px;
}
.tlt-fg__review .tlt-fg-review { margin: 0; }
.tlt-fg-review__text { margin: 0; flex: 1 1 220px; }
.tlt-fg-review__btn {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 999px;
	border: 2px solid currentColor;
	font-weight: 600;
	font-size: .92em;
	text-decoration: none !important;
	color: inherit;
	white-space: nowrap;
}
.tlt-fg-review__btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
