/* ==========================================================================
   چت آنلاین تلگرام — v1.6
   همه‌ی سلکتورها با #tglc-root شروع می‌شوند تا استایل قالب روی ویجت اثر نگذارد.
   ========================================================================== */

#tglc-root {
	--tglc-color: var(--wd-primary-color, #1769d2);
	--tglc-ink: #111827;
	--tglc-sub: #5f6673;
	--tglc-faint: #8a919d;
	--tglc-line: #eceef2;
	--tglc-bg: #f7f8fa;
	--tglc-offset: 20px;
	--tglc-side: 20px;
	--tglc-btn: 50px;
	--tglc-ease: cubic-bezier(.2, .9, .3, 1);
	--tglc-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -8px rgba(17, 24, 39, .16);

	position: fixed;
	bottom: calc(var(--tglc-offset) + env(safe-area-inset-bottom, 0px));
	z-index: 99995;
	direction: rtl;
	font-family: var(--wd-text-font, inherit);
	font-size: 14px;
	line-height: 1.7;
	color: var(--tglc-ink);
	-webkit-font-smoothing: antialiased;
	transition: opacity .25s ease, transform .25s ease;
}
/* تا وقتی جای دقیق دکمه حساب نشده، دیده نمی‌شود (بدون پرش هنگام بارگذاری) */
#tglc-root:not(.tglc--ready) { opacity: 0; transform: translateX(40px); animation: tglc-failsafe 0s 2.5s forwards; }
#tglc-root.tglc--left:not(.tglc--ready) { transform: translateX(-40px); }
#tglc-root.tglc--ready { transition: bottom .25s ease, opacity .25s ease, transform .25s ease; }
/* وقتی نوار دسته‌بندی کناری باز است، دکمه مثل بقیه‌ی صفحه زیر آن قرار می‌گیرد */
#tglc-root.tglc--under { z-index: 300; }
@keyframes tglc-failsafe { to { opacity: 1; transform: none; } }
#tglc-root.tglc--right { right: var(--tglc-side); }
#tglc-root.tglc--yield { opacity: 0; pointer-events: none; }
#tglc-root.tglc--right.tglc--yield { transform: translateX(40px); }
#tglc-root.tglc--left.tglc--yield { transform: translateX(-40px); }
#tglc-root.tglc--left  { left: var(--tglc-side); }

#tglc-root *, #tglc-root *::before, #tglc-root *::after { box-sizing: border-box; }
#tglc-root [hidden] { display: none !important; }

/* reset در برابر استایل دکمه/فیلد قالب */
#tglc-root button, #tglc-root input, #tglc-root textarea {
	font: inherit; color: inherit; letter-spacing: normal; text-transform: none;
	margin: 0; min-height: 0; height: auto; box-shadow: none; text-shadow: none; border-radius: 0;
	-webkit-appearance: none; appearance: none;
}
#tglc-root button { background: none; border: 0; padding: 0; cursor: pointer; line-height: 1; -webkit-tap-highlight-color: transparent; }
#tglc-root svg { display: block; width: 100%; height: 100%; }

@media (min-width: 1025px) {
	body.wd-sticky-nav-enabled #tglc-root.tglc--right { --tglc-side: 80px; } /* کنار نوار دسته‌بندی چسبان، تا قبل از اجرای JS */
}
@media (max-width: 1024px) {
	#tglc-root { --tglc-side: 12px; --tglc-offset: 12px; --tglc-btn: 40px; }
	#tglc-root .tglc-toggle-ico { width: 22px; height: 22px; }
	#tglc-root .tglc-ico-close { width: 18px; height: 18px; }
	#tglc-root .tglc-live { width: 10px; height: 10px; bottom: 0; right: 0; }
	#tglc-root .tglc-badge { top: -5px; left: -5px; min-width: 18px; height: 18px; font-size: 10px; }
	body.sticky-toolbar-on:not(.single-product) #tglc-root { --tglc-offset: 67px; } /* هم‌تراز دکمه‌ی رفتن به بالا، تا قبل از اجرای JS */
}

/* ------------------------------------------------------------------ */
/* دکمه                                                                 */
/* ------------------------------------------------------------------ */
#tglc-root .tglc-toggle {
	position: relative;
	display: flex; align-items: center; justify-content: center;
	width: var(--tglc-btn); height: var(--tglc-btn); padding: 0;
	border-radius: 50%;
	color: #fff;
	background:
		radial-gradient(120% 120% at 30% 15%, rgba(255, 255, 255, .28) 0, rgba(255, 255, 255, 0) 55%),
		var(--tglc-color);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, .25),
		0 0 5px rgba(0, 0, 0, .17),
		0 8px 18px -8px color-mix(in srgb, var(--tglc-color) 80%, transparent);
	transition: transform .25s var(--tglc-ease), box-shadow .25s ease;
}
#tglc-root.tglc--right .tglc-toggle { margin-left: auto; }
#tglc-root.tglc--left  .tglc-toggle { margin-right: auto; }
@media (hover: hover) {
	#tglc-root .tglc-toggle:hover { transform: translateY(-2px); }
	#tglc-root .tglc-toggle:hover .tglc-ico--phone { transform: rotate(-6deg) scale(1.04); }
}
#tglc-root .tglc-toggle:active { transform: scale(.94); }
#tglc-root .tglc-toggle:focus-visible { outline: 2px solid var(--tglc-color); outline-offset: 3px; }

/* آیکون‌ها */
#tglc-root .tglc-toggle-ico { width: 26px; height: 26px; flex: none; transition: transform .35s var(--tglc-ease), opacity .2s ease; }
#tglc-root .tglc-ico-close { position: absolute; width: 22px; height: 22px; opacity: 0; transform: rotate(-60deg) scale(.6); }
#tglc-root.tglc--open .tglc-ico-chat { opacity: 0; transform: rotate(60deg) scale(.6); position: absolute; }
#tglc-root.tglc--open .tglc-ico-close { opacity: 1; transform: none; position: static; }

/* نقطه‌های «در حال تایپ» روی صفحه‌ی گوشی؛ هر ۸ ثانیه یک بار */
#tglc-root .tglc-ico--phone circle { transform-box: fill-box; transform-origin: center; animation: tglc-typing 8s ease-in-out infinite; }
#tglc-root .tglc-ico--phone .tglc-d2 { animation-delay: .15s; }
#tglc-root .tglc-ico--phone .tglc-d3 { animation-delay: .3s; }
#tglc-root.tglc--open .tglc-ico--phone circle { animation: none; }

/* نقطه‌ی وضعیت: سبز در ساعت کاری، خاکستری خارج از آن */
#tglc-root .tglc-live {
	position: absolute; bottom: 1px; right: 1px;
	width: 11px; height: 11px; border-radius: 50%;
	background: #22c55e; border: 2px solid #fff;
	transition: opacity .2s ease, background .2s ease;
}
#tglc-root .tglc-live::after {
	content: ""; position: absolute; inset: -2px; border-radius: 50%;
	border: 2px solid #22c55e; opacity: 0;
	animation: tglc-live 3s ease-out infinite;
}
#tglc-root.tglc--offline .tglc-live { background: #b8bec8; }
#tglc-root.tglc--offline .tglc-live::after { display: none; }
#tglc-root.tglc--open .tglc-live { opacity: 0; }

/* راهنمای کنار دکمه (فقط دسکتاپ) */
#tglc-root .tglc-tip {
	position: absolute; top: 50%; right: calc(100% + 12px);
	padding: 7px 12px; border-radius: 10px;
	font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap;
	color: #fff; background: #111827;
	box-shadow: 0 6px 18px -6px rgba(17, 24, 39, .45);
	opacity: 0; pointer-events: none;
	transform: translate(6px, -50%);
	transition: opacity .2s ease, transform .25s var(--tglc-ease);
}
#tglc-root .tglc-tip::after {
	content: ""; position: absolute; top: 50%; right: -4px; width: 8px; height: 8px;
	background: inherit; border-radius: 2px; transform: translateY(-50%) rotate(45deg);
}
#tglc-root.tglc--left .tglc-tip { right: auto; left: calc(100% + 12px); transform: translate(-6px, -50%); }
#tglc-root.tglc--left .tglc-tip::after { right: auto; left: -4px; }
@media (hover: hover) {
	#tglc-root .tglc-toggle:hover .tglc-tip { opacity: 1; transform: translate(0, -50%); }
}
#tglc-root.tglc--open .tglc-tip, #tglc-root .tglc-teaser:not([hidden]) ~ .tglc-toggle .tglc-tip { display: none; }

/* نشانگر پیام خوانده‌نشده */
#tglc-root .tglc-badge {
	position: absolute; top: -3px; left: -3px;
	min-width: 20px; height: 20px; padding: 0 5px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 10px; border: 2px solid #fff;
	background: #ef4444; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
	animation: tglc-pop .35s var(--tglc-ease);
}
#tglc-root.tglc--ring .tglc-toggle { animation: tglc-nudge .6s var(--tglc-ease); }

/* ------------------------------------------------------------------ */
/* پیام دعوت                                                            */
/* ------------------------------------------------------------------ */
#tglc-root .tglc-teaser {
	position: absolute; bottom: calc(var(--tglc-btn) + 12px);
	width: max-content; max-width: min(260px, calc(100vw - 2 * var(--tglc-side)));
	display: flex; align-items: center; gap: 9px;
	padding: 9px 12px 9px 32px;
	background: #fff; border-radius: 14px;
	box-shadow: var(--tglc-shadow);
	cursor: pointer;
	animation: tglc-rise .35s var(--tglc-ease) both;
}
#tglc-root.tglc--right .tglc-teaser { right: 0; }
#tglc-root.tglc--left  .tglc-teaser { left: 0; }
#tglc-root .tglc-teaser-ava { width: 28px; height: 28px; flex: none; }
#tglc-root .tglc-teaser-text { margin: 0; font-size: 13px; line-height: 1.7; color: var(--tglc-ink); }
#tglc-root .tglc-teaser-who { display: block; font-size: 11.5px; font-weight: 700; color: var(--tglc-color); line-height: 1.5; }
#tglc-root .tglc-teaser--reply { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tglc-color) 30%, transparent), var(--tglc-shadow); }
#tglc-root .tglc-teaser--reply::after {
	content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
	border-radius: 50%; background: #ef4444; border: 2px solid #fff;
}
#tglc-root.tglc--left .tglc-teaser--reply::after { right: auto; left: -3px; }
#tglc-root .tglc-teaser-x {
	position: absolute; top: 50%; left: 8px; width: 18px; height: 18px; padding: 3px; margin-top: -9px;
	border-radius: 50%; color: var(--tglc-faint);
}
#tglc-root .tglc-teaser-x:hover { color: var(--tglc-ink); background: var(--tglc-bg); }

/* ------------------------------------------------------------------ */
/* پنل                                                                  */
/* ------------------------------------------------------------------ */
#tglc-root .tglc-panel {
	position: absolute; bottom: calc(var(--tglc-btn) + 12px);
	width: 370px; height: 580px;
	max-width: calc(100vw - 2 * var(--tglc-side));
	max-height: calc(100vh - var(--tglc-offset) - 100px);
	max-height: calc(100dvh - var(--tglc-offset) - 100px);
	display: flex; flex-direction: column;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 0 0 1px rgba(17, 24, 39, .06), 0 24px 56px -16px rgba(17, 24, 39, .28);
	transform-origin: bottom right;
	animation: tglc-open .28s var(--tglc-ease) both;
	isolation: isolate;
}
#tglc-root.tglc--right .tglc-panel { right: 0; }
#tglc-root.tglc--left  .tglc-panel { left: 0; transform-origin: bottom left; }

/* هدر سفید و ساده */
#tglc-root .tglc-head {
	display: flex; align-items: center; gap: 11px;
	padding: 14px 16px;
	background: #fff;
	border-bottom: 1px solid var(--tglc-line);
	flex: none;
}
#tglc-root .tglc-ava { position: relative; width: 40px; height: 40px; flex: none; }
#tglc-root .tglc-ava img, #tglc-root .tglc-ava > span,
#tglc-root .tglc-teaser-ava img, #tglc-root .tglc-teaser-ava > span,
#tglc-root .tglc-mini-ava img, #tglc-root .tglc-mini-ava > span {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; max-width: none; margin: 0;
	border-radius: 50%; object-fit: cover;
	background: var(--tglc-bg); color: var(--tglc-color);
	font-weight: 700; font-size: 15px;
	box-shadow: 0 0 0 1px var(--tglc-line);
}
#tglc-root .tglc-online {
	position: absolute; bottom: 0; left: 0; width: 11px; height: 11px;
	border-radius: 50%; background: #22c55e; border: 2px solid #fff;
}
#tglc-root .tglc-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#tglc-root .tglc-head-text strong { font-size: 15px; font-weight: 700; line-height: 1.5; color: var(--tglc-ink); }
#tglc-root .tglc-head-text span { font-size: 12px; color: var(--tglc-sub); line-height: 1.6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tglc-root .tglc-close {
	width: 34px; height: 34px; padding: 7px; flex: none;
	border-radius: 10px; color: var(--tglc-sub);
	transition: background .15s ease, color .15s ease;
}
#tglc-root .tglc-close:hover { background: var(--tglc-bg); color: var(--tglc-ink); }

/* پیام‌ها */
#tglc-root .tglc-body {
	flex: 1; overflow-y: auto; overscroll-behavior: contain;
	padding: 14px 14px 8px;
	background: var(--tglc-bg);
	scrollbar-width: thin; scrollbar-color: #d6dae1 transparent;
}
/* کارت معرفی بالای گفتگو */
#tglc-root .tglc-intro {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	padding: 10px 12px 16px; margin-bottom: 4px; text-align: center;
}
#tglc-root .tglc-intro-ava { width: 52px; height: 52px; margin-bottom: 6px; }
#tglc-root .tglc-intro-ava img, #tglc-root .tglc-intro-ava > span {
	display: flex; align-items: center; justify-content: center;
	width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 50%; object-fit: cover;
	background: #fff; color: var(--tglc-color); font-weight: 700; font-size: 20px;
	box-shadow: 0 0 0 1px var(--tglc-line), 0 4px 12px -4px rgba(17, 24, 39, .15);
}
#tglc-root .tglc-intro strong { font-size: 14.5px; font-weight: 700; color: var(--tglc-ink); }
#tglc-root .tglc-intro-hours { font-size: 12px; color: var(--tglc-sub); }

/* جداکننده‌ی روز */
#tglc-root .tglc-sep { display: flex; align-items: center; gap: 10px; margin: 14px 4px 4px; }
#tglc-root .tglc-sep::before, #tglc-root .tglc-sep::after { content: ""; flex: 1; height: 1px; background: var(--tglc-line); }
#tglc-root .tglc-sep span { font-size: 11px; color: var(--tglc-faint); white-space: nowrap; }

/* لینک داخل پیام */
#tglc-root .tglc-bubble a { display: inline-block; max-width: 100%; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#tglc-root .tglc-msg--in .tglc-bubble a { color: var(--tglc-color); }

/* دکمه‌ی «پیام جدید» وقتی کاربر بالا را می‌خواند */
#tglc-root .tglc-jump {
	position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%);
	padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.4;
	color: #fff; background: var(--tglc-color); box-shadow: 0 6px 16px -6px rgba(17, 24, 39, .4);
	z-index: 2; animation: tglc-rise .25s var(--tglc-ease) both;
}

/* وضعیت آفلاین (خارج از ساعت کاری) */
#tglc-root.tglc--offline .tglc-online { background: #b8bec8; }
#tglc-root .tglc-offnote {
	margin: 10px 0 0; padding: 8px 12px; max-width: 290px;
	font-size: 12.5px; line-height: 1.75; color: #8a5a00;
	background: #fff8e6; border-radius: 10px; box-shadow: 0 0 0 1px #f8e3b0;
}

#tglc-root .tglc-msg { display: flex; align-items: flex-end; gap: 6px; margin: 2px 0; animation: tglc-msg .25s var(--tglc-ease) both; }
#tglc-root .tglc-msg--in  { justify-content: flex-start; }
#tglc-root .tglc-msg--out { justify-content: flex-end; }
#tglc-root .tglc-msg--first { margin-top: 10px; }
#tglc-root .tglc-mini-ava { width: 24px; height: 24px; flex: none; visibility: hidden; }
#tglc-root .tglc-mini-ava img, #tglc-root .tglc-mini-ava > span { font-size: 11px; }
#tglc-root .tglc-msg--last .tglc-mini-ava { visibility: visible; }

#tglc-root .tglc-col { display: flex; flex-direction: column; max-width: 78%; min-width: 0; }
#tglc-root .tglc-msg--out .tglc-col { align-items: flex-end; }
#tglc-root .tglc-name { font-size: 11px; color: var(--tglc-faint); margin: 0 4px 2px; }

#tglc-root .tglc-bubble {
	padding: 8px 12px 6px;
	border-radius: 16px;
	font-size: 14px; line-height: 1.8;
	white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: plaintext;
}
#tglc-root .tglc-msg--in .tglc-bubble  { background: #fff; color: var(--tglc-ink); box-shadow: 0 0 0 1px var(--tglc-line); }
#tglc-root .tglc-msg--out .tglc-bubble { background: var(--tglc-color); color: #fff; }
#tglc-root .tglc-msg--in.tglc-msg--last .tglc-bubble  { border-bottom-right-radius: 5px; }
#tglc-root .tglc-msg--out.tglc-msg--last .tglc-bubble { border-bottom-left-radius: 5px; }
#tglc-root .tglc-msg--fresh .tglc-bubble { animation: tglc-flash 1.2s ease; }

#tglc-root .tglc-meta {
	display: flex; align-items: center; gap: 3px; justify-content: flex-end;
	font-size: 10px; line-height: 1; margin-top: 3px; opacity: .65;
	direction: ltr; unicode-bidi: isolate;
}
#tglc-root .tglc-meta:empty { display: none; }
#tglc-root .tglc-tick { width: 13px; height: 13px; }
#tglc-root .tglc-msg--pending .tglc-bubble { opacity: .7; }
#tglc-root .tglc-msg--failed .tglc-bubble { background: #fef2f2; color: #b91c1c; box-shadow: 0 0 0 1px #fecaca; }
#tglc-root .tglc-retry { font-size: 11px; color: #b91c1c; margin: 3px 4px 0; text-decoration: underline; }

/* سوال‌های آماده */
#tglc-root .tglc-quick {
	display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
	padding: 8px 14px 10px; background: var(--tglc-bg); flex: none;
	-webkit-mask-image: linear-gradient(to left, #000 88%, transparent);
	        mask-image: linear-gradient(to left, #000 88%, transparent);
}
#tglc-root .tglc-quick::-webkit-scrollbar { display: none; }
#tglc-root .tglc-chip {
	flex: none; padding: 6px 12px; border-radius: 999px;
	font-size: 12.5px; font-weight: 500; line-height: 1.5; white-space: nowrap;
	color: var(--tglc-ink); background: #fff;
	box-shadow: 0 0 0 1px var(--tglc-line);
	transition: box-shadow .15s ease, color .15s ease;
}
#tglc-root .tglc-chip:hover { color: var(--tglc-color); box-shadow: 0 0 0 1px var(--tglc-color); }
#tglc-root .tglc-chip--product { color: var(--tglc-color); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tglc-color) 40%, transparent); font-weight: 600; }
#tglc-root .tglc-chip[hidden] { display: none !important; }
#tglc-root .tglc-chip:focus-visible, #tglc-root .tglc-close:focus-visible, #tglc-root .tglc-send:focus-visible,
#tglc-root .tglc-teaser-x:focus-visible, #tglc-root .tglc-jump:focus-visible { outline: 2px solid var(--tglc-color); outline-offset: 2px; }

/* فرم */
#tglc-root .tglc-form { flex: none; padding: 10px 12px 8px; background: #fff; border-top: 1px solid var(--tglc-line); }
#tglc-root .tglc-identity { margin-bottom: 8px; }
#tglc-root .tglc-identity-title { margin: 0 2px 6px; font-size: 12px; color: var(--tglc-sub); }
#tglc-root .tglc-identity-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#tglc-root .tglc-identity input {
	width: 100%; height: 38px; padding: 0 11px;
	border: 1px solid var(--tglc-line); border-radius: 10px;
	background: #fff; font-size: 13px;
	transition: border-color .15s ease;
}
#tglc-root .tglc-identity input::placeholder,
#tglc-root .tglc-compose textarea::placeholder { color: var(--tglc-faint); opacity: 1; }
#tglc-root .tglc-identity input:focus { outline: none; border-color: var(--tglc-color); }
#tglc-root .tglc-identity input.tglc-invalid { border-color: #ef4444; }

#tglc-root .tglc-error { margin: 0 2px 6px; font-size: 12px; color: #dc2626; }
#tglc-root .tglc-compose {
	display: flex; align-items: flex-end; gap: 6px;
	padding: 4px; border-radius: 14px;
	background: var(--tglc-bg); border: 1px solid transparent;
	transition: border-color .15s ease, background .15s ease;
}
#tglc-root .tglc-compose:focus-within { background: #fff; border-color: var(--tglc-line); }
#tglc-root .tglc-compose textarea {
	flex: 1; width: auto; min-height: 36px; max-height: 120px;
	padding: 7px 9px; border: 0; background: transparent; resize: none;
	font-size: 14px; line-height: 1.6; outline: none;
}
#tglc-root .tglc-send {
	width: 36px; height: 36px; padding: 8px; flex: none; border-radius: 11px;
	color: #fff; background: var(--tglc-color);
	transition: transform .15s var(--tglc-ease), background .15s ease, color .15s ease;
}
#tglc-root .tglc-send:not(:disabled):active { transform: scale(.92); }
#tglc-root .tglc-send:disabled { background: transparent; color: var(--tglc-faint); cursor: default; }
#tglc-root .tglc-foot { margin-top: 6px; text-align: center; font-size: 10.5px; color: var(--tglc-faint); }

/* ------------------------------------------------------------------ */
/* موبایل                                                               */
/* ------------------------------------------------------------------ */
@media (max-width: 767px) {
	#tglc-root.tglc--open .tglc-toggle { display: none; }
	#tglc-root .tglc-panel {
		position: fixed; inset: 0;
		width: 100%; height: 100%; height: 100dvh;
		max-width: none; max-height: none;
		border-radius: 0; box-shadow: none;
		animation-name: tglc-sheet;
	}
	#tglc-root .tglc-head { padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
	#tglc-root .tglc-form { padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
	#tglc-root .tglc-compose textarea, #tglc-root .tglc-identity input { font-size: 16px; } /* جلوگیری از زوم iOS */
	#tglc-root .tglc-col { max-width: 84%; }
}

/* ------------------------------------------------------------------ */
@keyframes tglc-open  { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tglc-sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes tglc-rise  { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tglc-msg   { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes tglc-pop   { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes tglc-typing { 0%, 12%, 100% { transform: none; opacity: 1; } 3% { transform: translateY(-1.2px); opacity: .45; } 6% { transform: none; opacity: 1; } 9% { transform: translateY(-1.2px); opacity: .45; } }
@keyframes tglc-live { 0% { opacity: .7; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(2); } }
@keyframes tglc-nudge { 0%, 100% { transform: none; } 20% { transform: rotate(-10deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
@keyframes tglc-flash { 0% { box-shadow: 0 0 0 1px var(--tglc-color), 0 0 0 5px rgba(23, 105, 210, .12); } 100% { box-shadow: 0 0 0 1px var(--tglc-line); } }

@media (prefers-reduced-motion: reduce) {
	#tglc-root *, #tglc-root *::before, #tglc-root *::after { animation: none !important; transition: none !important; }
}
