/**
 * Experience Builder: launcher, chatbox, effects, KB themes.
 * One stylesheet. Scoped. Admin Theme tokens are not rewritten here.
 */

.es-xp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; align-items: start; }
.es-xp-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 12px 0 20px; }
.es-xp-preset { text-align: left; border: 1px solid var(--es-border, #e5e7eb); background: var(--es-surface, #fff); border-radius: 12px; padding: 12px; cursor: pointer; }
.es-xp-preset.is-active { border-color: var(--es-primary, #6366f1); box-shadow: 0 0 0 2px var(--es-primary-soft, #eef2ff); }
.es-xp-preset p { margin: 6px 0 0; font-size: 12px; }
.es-xp-color { display: grid; grid-template-columns: 1fr 40px minmax(90px, 1fr); gap: 8px; align-items: center; margin: 8px 0; }
.es-xp-preview-card { position: sticky; top: 16px; min-height: 420px; }
.es-xp-preview { position: relative; min-height: 380px; background: var(--es-bg, #f8fafc); border-radius: 12px; overflow: hidden; }
.es-xp-preview-panel { position: absolute !important; right: 24px; bottom: 88px; width: 260px !important; height: 280px !important; max-height: none; }
.es-xp-preview-launcher { position: absolute !important; right: 24px; bottom: 16px; }
.es-xp-preview-meta { position: absolute; left: 12px; bottom: 8px; font-size: 11px; }
.es-xp-tags { list-style: none; padding: 0; }
.es-xp-tags li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--es-border, #eee); }
.es-xp-kb-preview { padding: 20px; border-radius: 12px; background: var(--esx-kb-hero-bg, var(--es-primary-soft, #eef2ff)); }
.es-chat360-card { margin: 0 0 20px; padding: 16px; border: 1px solid var(--es-border, #e5e7eb); border-radius: 14px; background: linear-gradient(135deg, var(--es-primary-soft, #eef2ff), var(--es-surface, #fff)); }
.es-chat360-card h3 { margin: 0 0 8px; }
.es-modal__box.is-full:has(.es-chat360-frame-wrap) { background: #f4f7fb; }
.es-modal__box.is-full:has(.es-chat360-frame-wrap) > .es-card__body { padding: 0; }
.es-chat360-toolbar { position: relative; z-index: 1; min-height: 64px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 20px; background: #fff; border-bottom: 1px solid var(--es-border, #e5e7eb); }
.es-chat360-toolbar strong, .es-chat360-toolbar span { display: block; }
.es-chat360-toolbar strong { color: #172b4d; font-size: 16px; }
.es-chat360-toolbar span { margin-top: 2px; color: #667085; font-size: 12px; }
.es-chat360-toolbar__actions { display: flex; align-items: center; gap: 8px; }
.es-chat360-toolbar__actions { flex-shrink: 0; }
.es-chat360-toolbar .es-chat360-save,
.es-chat360-toolbar .es-chat360-save .es-btn__label { color: #fff !important; }
.es-chat360-toolbar .es-chat360-save { background: #187c88 !important; border-color: #187c88 !important; min-width: 140px; white-space: nowrap; }
.es-chat360-toolbar .es-chat360-save:hover:not(:disabled) { background: #12636d !important; }
.es-chat360-toolbar .es-chat360-save:focus-visible { outline: 3px solid #9bd8df; outline-offset: 2px; }
.es-chat360-toolbar .es-chat360-save:disabled { background: #587d82 !important; opacity: 1; }
.es-chat360-error { flex: 0 0 auto; padding: 10px 20px; color: #991b1b; background: #fef2f2; }
.es-chat360-frame-wrap { position: relative; flex: 1 1 auto; height: auto; min-height: 0; margin: 0; overflow: hidden; background: #f5f7fb; }
.es-chat360-loading { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #475569; font-size: 14px; text-align: center; }
.es-chat360-frame { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .es-chat360-toolbar { padding: 8px 12px; gap: 8px; } .es-chat360-toolbar > div:first-child > span { display: none; } .es-chat360-toolbar__actions { gap: 6px; } .es-chat360-toolbar .es-chat360-save { min-width: 0; } }

/* Chatbot360 maps its saved presentation tokens to the real support widget. */
.es-chat-root[data-chat360="1"] { --es360-primary: #ff5a1f; --es360-surface: #fff; --es360-text: #142746; }
.es-chat-root[data-chat360="1"] .es-chat-panel { width: min(var(--es360-width, 390px), calc(100vw - 32px)); height: min(var(--es360-height, 620px), calc(100dvh - 32px)); border-radius: var(--es360-radius, 22px); background: var(--es360-surface); color: var(--es360-text); }
.es-chat-root[data-chat360="1"] .es-chat-header { background-color: var(--es360-primary); background-image: var(--es360-header-image, none); background-size: cover; background-position: center; color: var(--es360-header-text, #fff); }
.es-chat-root[data-chat360="1"] .es-chat-header { background-color: var(--es360-header-bg, var(--es360-primary)); }
.es-chat-root[data-chat360="1"] .es-chat-tabs { background: var(--es360-nav-bg, #fff); color: var(--es360-nav-text, var(--es360-text)); }
.es-chat-root[data-chat360="1"] .es-chat-body,
.es-chat-root[data-chat360="1"] .es-chat-scroll { background-color: var(--es360-messages-bg, var(--es360-surface)); color: var(--es360-messages-text, var(--es360-text)); background-image: var(--es360-texture-image, none); background-blend-mode: soft-light; }
.es-chat-root[data-chat360="1"] .es-chat-composer { background: var(--es360-composer-bg, #fff); color: var(--es360-composer-text, var(--es360-text)); }
.es-chat-root[data-chat360="1"] .es-chat-footer { background: var(--es360-footer-bg, #fff); color: var(--es360-footer-text, #7d8aa0); }
.es-chat-root[data-chat360="1"] .es-chat-launcher { background: var(--es360-launcher-bg, var(--es360-primary)); color: var(--es360-launcher-text, #fff); }
.es-chat-root[data-chat360="1"] .es-chat-msg.is-visitor .es-chat-bubble { background: var(--es360-primary); }
.es-chat-root[data-chat360="1"][data-chat360-launcher="side-tab"] .es-chat-launcher { width: auto; height: auto; writing-mode: vertical-rl; border-radius: 12px 0 0 12px; right: 0; padding: 16px 10px; }
.es-chat-root[data-chat360="1"][data-chat360-layout="rounded-soft"] .es-chat-panel { border-radius: 32px; }
.es-chat-root[data-chat360="1"][data-chat360-layout="minimal-line"] .es-chat-header { background: var(--es360-surface); color: var(--es360-text); border-bottom: 1px solid var(--es-border, #e5e7eb); }
.es-chat-root[data-chat360="1"][data-chat360-layout="glass-panel"] .es-chat-panel { backdrop-filter: blur(18px); box-shadow: 0 18px 60px color-mix(in srgb, var(--es360-primary) 18%, transparent); }
.es-chat-root[data-chat360="1"][data-chat360-layout="terminal"] .es-chat-panel { border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.es-chat-root[data-chat360="1"][data-chat360-layout="full-panel"] .es-chat-panel { max-width: none; width: min(680px, calc(100vw - 24px)); }
.es-chat-root[data-chat360="1"][data-chat360-header="centered" i] .es-chat-header,
.es-chat-root[data-chat360="1"][data-chat360-header="logo-center" i] .es-chat-header { justify-content: center; text-align: center; }
.es-chat-root[data-chat360="1"][data-chat360-header="compact" i] .es-chat-header,
.es-chat-root[data-chat360="1"][data-chat360-header="micro" i] .es-chat-header { padding-block: 8px; }
.es-chat-root[data-chat360="1"][data-chat360-header="minimal-line" i] .es-chat-header { background-image: none; border-bottom: 1px solid color-mix(in srgb, var(--es360-text) 18%, transparent); }
.es-chat-root[data-chat360="1"][data-chat360-bubble="pill"] .es-chat-bubble { border-radius: 999px; }
.es-chat-root[data-chat360="1"][data-chat360-bubble="square"] .es-chat-bubble { border-radius: 3px; }
.es-chat-root[data-chat360="1"][data-chat360-bubble="outline"] .es-chat-bubble { background: transparent; color: var(--es360-text); border: 1px solid color-mix(in srgb, var(--es360-primary) 40%, transparent); }
.es-chat-root[data-chat360="1"][data-chat360-density="compact"] .es-chat-panel { font-size: 13px; }
.es-chat-root[data-chat360="1"][data-chat360-density="compact"] .es-chat-header { padding-block: 8px; }
.es-chat-root[data-chat360="1"][data-chat360-density="spacious"] .es-chat-header { padding-block: 20px; }
.es-chat-root[data-chat360="1"][data-chat360-nav="pills"] .es-chat-tabs { gap: 6px; padding: 6px; }
.es-chat-root[data-chat360="1"][data-chat360-nav="pills"] .es-chat-tab { border-radius: 999px; }
.es-chat-root[data-chat360="1"][data-chat360-nav="underline"] .es-chat-tab[aria-selected="true"] { border-bottom: 2px solid var(--es360-primary); }
.es-chat-root[data-chat360="1"][data-chat360-nav="segmented"] .es-chat-tabs { margin: 6px; border-radius: 10px; }
.es-chat-root[data-chat360="1"][data-chat360-composer="bar"] .es-chat-composer { border-radius: 0; }
.es-chat-root[data-chat360="1"][data-chat360-composer="floating"] .es-chat-composer { margin: 10px; border-radius: 16px; box-shadow: 0 8px 22px rgba(15,23,42,.12); }
.es-chat-root[data-chat360="1"][data-chat360-composer="minimal"] .es-chat-composer { border-inline: 0; border-bottom: 0; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="pill" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="help-capsule" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="wide-banner" i] .es-chat-launcher { width: auto; min-width: 56px; padding-inline: 16px; border-radius: 999px; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="agent-card" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="mini-bar" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="floating-island" i] .es-chat-launcher { width: auto; padding-inline: 14px; border-radius: 16px; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="gradient-orb" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="ai-bot" i] .es-chat-launcher { background: linear-gradient(135deg, var(--es360-primary), #6c3cff); }
.es-chat-root[data-chat360="1"][data-chat360-launcher="outline" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="minimal" i] .es-chat-launcher { background: var(--es360-surface); color: var(--es360-primary); border: 2px solid var(--es360-primary); }
.es-chat-root[data-chat360="1"][data-chat360-motion="reduce"] *,
.es-chat-root[data-chat360="1"][data-chat360-motion="reduce"] *::before,
.es-chat-root[data-chat360="1"][data-chat360-motion="reduce"] *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
	.es-chat-root[data-chat360="1"].es-chat-root[data-chat360="1"] *,
	.es-chat-root[data-chat360="1"].es-chat-root[data-chat360="1"] *::before,
	.es-chat-root[data-chat360="1"].es-chat-root[data-chat360="1"] *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 960px) {
	.es-xp-grid { grid-template-columns: 1fr; }
	.es-xp-preview-card { position: static; }
}

/* —— Launcher presets —— */
.es-chat-root { --esx-offset-x: 20px; --esx-offset-y: 20px; --esx-l-size: 60px; --esx-fx-ms: 250ms; }
.es-chat-root .es-chat-launcher {
	right: var(--esx-offset-x);
	bottom: var(--esx-offset-y);
	width: var(--esx-l-size);
	height: var(--esx-l-size);
	background: var(--esx-l-bg, var(--esc-green, #16a34a));
	color: var(--esx-l-icon, #fff);
	box-shadow: var(--esx-l-shadow, 0 10px 30px rgba(15, 23, 42, 0.22));
	border: 1px solid var(--esx-l-border, transparent);
}
.es-chat-root[data-pos="bottom-left"] .es-chat-launcher,
.es-chat-root[data-pos="bottom-left"] .es-chat-panel { left: var(--esx-offset-x); right: auto; }
.es-chat-launcher-label {
	position: absolute;
	right: calc(100% + 10px);
	white-space: nowrap;
	background: var(--esx-l-bg, #111827);
	color: var(--esx-l-text, #fff);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	pointer-events: none;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity 160ms ease, transform 160ms ease;
}
.es-chat-root[data-pos="bottom-left"] .es-chat-launcher-label { right: auto; left: calc(100% + 10px); transform: translateX(-6px); }
.es-chat-root[data-label="always"] .es-chat-launcher-label,
.es-chat-launcher:hover .es-chat-launcher-label { opacity: 1; transform: none; }
.es-chat-root[data-label="never"] .es-chat-launcher-label { display: none; }
.es-chat-root[data-launcher="pill-chat"] .es-chat-launcher,
.es-chat-root[data-launcher="message-bar"] .es-chat-launcher {
	width: auto; min-width: 48px; padding: 0 16px; border-radius: 999px; gap: 8px;
}
.es-chat-root[data-launcher="pill-chat"] .es-chat-launcher-label,
.es-chat-root[data-launcher="message-bar"] .es-chat-launcher-label,
.es-chat-root[data-launcher="floating-card"] .es-chat-launcher-label,
.es-chat-root[data-launcher="side-tab"] .es-chat-launcher-label {
	position: static; opacity: 1; transform: none; background: transparent; padding: 0; color: inherit;
}
.es-chat-root[data-launcher="ai-spark"] .es-chat-launcher { box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 10px 28px rgba(79, 70, 229, 0.28); }
.es-chat-root[data-launcher="agent-bubble"] .es-chat-launcher::after {
	content: ""; position: absolute; right: 8px; bottom: -6px; width: 12px; height: 12px;
	background: inherit; clip-path: polygon(0 0, 100% 0, 100% 100%); transform: rotate(45deg);
}
.es-chat-root[data-launcher="minimal-outline"] .es-chat-launcher {
	background: transparent; color: var(--esx-l-icon, var(--es-primary, #6366f1));
	border: 2px solid currentColor; box-shadow: none;
}
.es-chat-root[data-launcher="gradient-ai"] .es-chat-launcher {
	background: linear-gradient(135deg, #6366f1, #22c55e);
}
.es-chat-root[data-launcher="soft-glass"] .es-chat-launcher {
	background: rgba(255, 255, 255, 0.72); color: #0f172a; backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.6);
}
.es-chat-root[data-launcher="compact-square"] .es-chat-launcher { border-radius: 12px; width: 48px; height: 48px; }
.es-chat-root[data-launcher="side-tab"] .es-chat-launcher {
	width: auto; height: auto; writing-mode: vertical-rl; border-radius: 12px 0 0 12px;
	right: 0; padding: 16px 10px; transform: none;
}
.es-chat-root[data-launcher="side-tab"][data-pos="bottom-left"] .es-chat-launcher { left: 0; right: auto; border-radius: 0 12px 12px 0; }
.es-chat-root[data-launcher="floating-card"] .es-chat-launcher {
	width: auto; height: auto; padding: 10px 14px; border-radius: 16px; gap: 10px;
	background: var(--es-surface, #fff); color: var(--es-text, #0f172a); border: 1px solid var(--es-border, #e5e7eb);
}
.es-chat-root[data-launcher="corner-notch"] .es-chat-launcher {
	border-radius: 18px 4px 18px 18px;
}
.es-chat-dot-online { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; right: 2px; bottom: 2px; }
.es-chat-dot-ai { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #6366f1; border: 2px solid #fff; left: 2px; top: 2px; }

@media (max-width: 640px) {
	.es-chat-root[data-mobile-compact="1"] .es-chat-launcher { width: 48px; height: 48px; padding: 0; border-radius: 50%; }
	.es-chat-root[data-mobile-compact="1"] .es-chat-launcher-label { display: none; }
}

/* —— Chatbox presets —— */
.es-chat-root .es-chat-panel {
	border-color: var(--esx-c-border, var(--es-border, #e5e7eb));
}
.es-chat-root .es-chat-header {
	background: var(--esx-c-header-bg, var(--esc-header, var(--es-success, #16a34a)));
	color: var(--esx-c-header-text, #fff);
}
.es-chat-root .es-chat-msg.is-visitor .es-chat-bubble {
	background: var(--esx-c-customer-bubble, var(--es-primary, #6366f1));
	color: var(--esx-c-customer-text, #fff);
}
.es-chat-root[data-chatbox="modern-saas"] .es-chat-panel { border-radius: 20px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12); }
.es-chat-root[data-chatbox="modern-saas"] .es-chat-header { padding: 18px 16px; }
.es-chat-root[data-chatbox="ai-gradient"] .es-chat-header { background: var(--esx-c-header-bg, linear-gradient(135deg, #4f46e5, #22c55e)); justify-content: center; text-align: center; }
.es-chat-root[data-chatbox="minimal"] .es-chat-panel { border-radius: 8px; box-shadow: none; }
.es-chat-root[data-chatbox="minimal"] .es-chat-header { padding: 8px 10px; }
.es-chat-root[data-chatbox="glass"] .es-chat-panel { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(16px); }
.es-chat-root[data-chatbox="professional-blue"] .es-chat-panel { border-radius: 10px; }
.es-chat-root[data-chatbox="soft-rounded"] .es-chat-panel { border-radius: 28px; }
.es-chat-root[data-chatbox="compact-support"] .es-chat-panel { width: 340px; height: 520px; }
.es-chat-root[data-chatbox="compact-support"] .es-chat-header { padding: 8px 10px; }
.es-chat-root[data-chatbox="dark-pro"] { color-scheme: dark; }
.es-chat-root[data-chatbox="dark-pro"] .es-chat-panel { background: #111827; color: #e5e7eb; }
.es-chat-root[data-chatbox="knowledge-assistant"] .es-chat-header { background: var(--esx-c-header-bg, var(--es-surface, #fff)); color: var(--esx-c-header-text, var(--es-text, #0f172a)); border-bottom: 1px solid var(--es-border, #e5e7eb); }
.es-chat-root[data-size="compact"] .es-chat-panel { width: 340px; height: 560px; }
.es-chat-root[data-size="standard"] .es-chat-panel { width: 380px; height: 640px; }
.es-chat-root[data-size="large"] .es-chat-panel { width: 420px; height: 720px; }

.es-chat-root[data-header="centered"] .es-chat-header { justify-content: center; }
.es-chat-root[data-header="compact-bar"] .es-chat-header { padding: 8px 10px; }
.es-chat-root[data-header="docs-emphasis"] .es-chat-tabs { order: -1; }

/* —— Effects —— */
.es-chat-root .es-chat-panel { transform-origin: bottom right; }
.es-chat-root[data-pos="bottom-left"] .es-chat-panel { transform-origin: bottom left; }
.es-chat-root.is-fx .es-chat-panel { transition: transform var(--esx-fx-ms) ease, opacity var(--esx-fx-ms) ease, filter var(--esx-fx-ms) ease; }
.es-chat-root[data-fx-open="fade"].is-opening .es-chat-panel,
.es-chat-root[data-fx-close="fade"].is-closing .es-chat-panel { opacity: 0; }
.es-chat-root[data-fx-open="slide-up"].is-opening .es-chat-panel,
.es-chat-root[data-fx-close="slide-up"].is-closing .es-chat-panel { transform: translateY(16px); opacity: 0; }
.es-chat-root[data-fx-open="slide-side"].is-opening .es-chat-panel,
.es-chat-root[data-fx-close="slide-side"].is-closing .es-chat-panel { transform: translateX(20px); opacity: 0; }
.es-chat-root[data-fx-open="scale"].is-opening .es-chat-panel,
.es-chat-root[data-fx-close="scale"].is-closing .es-chat-panel { transform: scale(0.92); opacity: 0; }
.es-chat-root[data-fx-open="bounce-soft"].is-opening .es-chat-panel { animation: esx-bounce var(--esx-fx-ms) ease; }
.es-chat-root[data-fx-open="spring"].is-opening .es-chat-panel { animation: esx-spring var(--esx-fx-ms) cubic-bezier(0.34, 1.4, 0.64, 1); }
.es-chat-root[data-fx-open="flip-soft"].is-opening .es-chat-panel { transform: rotateX(8deg); opacity: 0; }
.es-chat-root[data-fx-open="blur-reveal"].is-opening .es-chat-panel { filter: blur(8px); opacity: 0; }
.es-chat-root[data-fx-open="morph-launcher"].is-opening .es-chat-panel { transform: scale(0.2) translateY(40px); opacity: 0; border-radius: 50%; }
@keyframes esx-bounce { 0% { transform: translateY(10px); opacity: 0; } 70% { transform: translateY(-4px); } 100% { transform: none; opacity: 1; } }
@keyframes esx-spring { 0% { transform: scale(0.86); opacity: 0; } 100% { transform: none; opacity: 1; } }
.es-chat-root[data-attention="pulse"] .es-chat-launcher.is-attn { animation: esx-pulse 600ms ease 1; }
.es-chat-root[data-attention="soft-ring"] .es-chat-launcher.is-attn { animation: esx-ring 700ms ease 1; }
.es-chat-root[data-attention="glow"] .es-chat-launcher.is-attn { animation: esx-glow 700ms ease 1; }
.es-chat-root[data-attention="shake-once"] .es-chat-launcher.is-attn { animation: esx-shake 400ms ease 1; }
.es-chat-root[data-attention="bounce-once"] .es-chat-launcher.is-attn { animation: esx-lift 500ms ease 1; }
.es-chat-root[data-attention="unread-pulse"] .es-chat-launcher.has-unread { animation: esx-pulse 900ms ease 1; }
@keyframes esx-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes esx-ring { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.45); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes esx-glow { 0% { filter: brightness(1); } 50% { filter: brightness(1.2); } 100% { filter: none; } }
@keyframes esx-shake { 0%,100% { transform: translateX(0); } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }
@keyframes esx-lift { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Power Customize extra motion. Selectors require data-pc so default widgets stay unchanged. */
.es-chat-root[data-pc="1"][data-fx-open="slide-down"].is-opening .es-chat-panel,
.es-chat-root[data-pc="1"][data-fx-close="slide-down"].is-closing .es-chat-panel { transform: translateY(-16px); opacity: 0; }
.es-chat-root[data-pc="1"][data-fx-open="slide-left"].is-opening .es-chat-panel,
.es-chat-root[data-pc="1"][data-fx-close="slide-left"].is-closing .es-chat-panel { transform: translateX(20px); opacity: 0; }
.es-chat-root[data-pc="1"][data-fx-open="slide-right"].is-opening .es-chat-panel,
.es-chat-root[data-pc="1"][data-fx-close="slide-right"].is-closing .es-chat-panel { transform: translateX(-20px); opacity: 0; }
.es-chat-root[data-pc="1"][data-fx-open="fade-scale"].is-opening .es-chat-panel,
.es-chat-root[data-pc="1"][data-fx-close="fade-scale"].is-closing .es-chat-panel { transform: scale(0.94); opacity: 0; }
.es-chat-root[data-pc="1"][data-fx-open="fade-blur"].is-opening .es-chat-panel { filter: blur(10px); opacity: 0; }
.es-chat-root[data-pc="1"][data-fx-open="float"].is-opening .es-chat-panel { transform: translateY(10px); opacity: 0; }
.es-chat-root[data-pc-no-fx="1"] .es-chat-panel,
.es-chat-root[data-pc-no-fx="1"] .es-chat-launcher,
.es-chat-root[data-pc-no-fx="1"] .es-chat-launcher-label { transition: none !important; animation: none !important; filter: none !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
	.es-chat-root .es-chat-panel,
	.es-chat-root .es-chat-launcher,
	.es-chat-root .es-chat-launcher-label { transition: none !important; animation: none !important; filter: none !important; transform: none !important; }
	.es-chat-root.is-opening .es-chat-panel,
	.es-chat-root.is-closing .es-chat-panel { opacity: 1; }
}

/* —— KB themes —— */
.es-kbpub {
	--esx-kb-width: 1120px;
	--esx-kb-article-width: 760px;
	--esx-kb-cols: 3;
	background: var(--esx-kb-page-bg, var(--es-bg, #f8fafc));
	color: var(--esx-kb-text, var(--es-text, #0f172a));
}
.es-kbpub__wrap { max-width: var(--esx-kb-width); }
.es-kbpub__article { max-width: var(--esx-kb-article-width); margin: 0 auto; }
.es-kbpub__cats { display: grid; grid-template-columns: repeat(var(--esx-kb-cols), minmax(0, 1fr)); gap: 14px; }
.es-kbpub__hero {
	background: var(--esx-kb-hero-bg, var(--es-primary-soft, #eef2ff));
	color: var(--esx-kb-hero-text, inherit);
	background-size: cover;
	background-position: center;
}
.es-kbpub__cta, .es-kbpub__search button { background: var(--esx-kb-cta-bg, var(--es-primary, #6366f1)); color: var(--esx-kb-cta-text, #fff); }
.es-kbpub a { color: var(--esx-kb-link, var(--es-primary, #6366f1)); }
.es-kbpub__cat, .es-kbpub__hit, .es-kbpub__card {
	background: var(--esx-kb-card-bg, var(--es-surface, #fff));
	border-color: var(--esx-kb-border, var(--es-border, #e5e7eb));
}

.es-kbpub__headbar { display: grid; grid-template-columns: minmax(120px, 180px) auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 20px; }
.es-kbpub__tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.es-kbpub__iconbtn {
	width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--es-border, #e5e7eb); border-radius: 10px; background: var(--es-surface, #fff);
	color: inherit; text-decoration: none;
}
.es-kbpub__cta-head { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; background: var(--esx-kb-cta-bg, var(--es-primary, #6366f1)); color: var(--esx-kb-cta-text, #fff) !important; }
.es-kbpub__search-center { margin: 0; }
.es-kbpub__search-center input { width: 100%; }
.es-kbpub__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 32px; }
.es-kbpub__tag { display: inline-flex; padding: 4px 10px; border-radius: 999px; background: var(--es-primary-soft, #eef2ff); text-decoration: none; font-size: 13px; }
.es-kbpub__sections { display: grid; gap: 28px; }
.es-kbpub__list { display: grid; gap: 10px; }

.es-kbpub[data-kb-theme="modern-search"] .es-kbpub__hero { padding: 48px 24px; text-align: center; }
.es-kbpub[data-kb-theme="modern-search"] .es-kbpub__cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.es-kbpub[data-kb-theme="documentation-pro"] .es-kbpub__home { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.es-kbpub[data-kb-theme="documentation-pro"] .es-kbpub__hero { background: transparent; border: 0; padding: 0 0 16px; }
.es-kbpub[data-kb-theme="glass-help-center"] .es-kbpub__cat,
.es-kbpub[data-kb-theme="glass-help-center"] .es-kbpub__hero { background: rgba(255,255,255,.7); backdrop-filter: blur(12px); }

@media (max-width: 800px) {
	.es-kbpub__headbar { grid-template-columns: 1fr; }
	.es-kbpub__cats { grid-template-columns: 1fr 1fr; }
	.es-kbpub[data-kb-theme="documentation-pro"] .es-kbpub__home { grid-template-columns: 1fr; }
}

/* Keep the public chat intentionally full-screen on phones. This must remain
 * after the experience size/position presets so they cannot escape viewport. */
@media (max-width: 480px) {
	.es-chat-root[data-size] .es-chat-panel {
		inset: auto 0 0 0;
		width: 100%;
		height: 100%;
		max-height: 100%;
		max-height: 100dvh;
		border-radius: 0;
	}
}

/* Chatbot360 is a complete widget skin, not an overlay on the legacy shell. */
.es-chat-root[data-chat360="1"] .es-chat-panel {
	right: 28px;
	bottom: 105px;
	width: min(var(--es360-width, 390px), calc(100vw - 32px));
	height: min(var(--es360-height, 620px), calc(100dvh - 135px));
	max-height: none;
	border: 1px solid color-mix(in srgb, var(--es360-text) 10%, transparent);
	border-radius: var(--es360-radius, 22px);
	background: var(--es360-surface);
	color: var(--es360-text);
	box-shadow: 0 24px 64px color-mix(in srgb, var(--es360-text) 18%, transparent);
	overflow: hidden;
	animation: none;
}
.es-chat-root[data-chat360="1"] .es-chat-header { order: 0; }
.es-chat-root[data-chat360="1"] .es360-nav { order: 1; }
.es-chat-root[data-chat360="1"] .es-chat-scroll { order: 2; }
.es-chat-root[data-chat360="1"] .es-chat-emoji { order: 3; }
.es-chat-root[data-chat360="1"] .es-chat-composer { order: 4; }
.es-chat-root[data-chat360="1"] .es-chat-footer { order: 6; }
.es-chat-root[data-chat360="1"][data-chat360-nav-position="bottom"] .es360-nav { order: 5; }
.es-chat-root[data-chat360="1"][data-chat360-nav-enabled="0"] .es360-nav { display: none; }
.es-chat-root[data-chat360="1"][data-chat360-full-height="1"] .es-chat-panel { height: calc(100dvh - 32px); bottom: 16px; }
.es-chat-root[data-chat360="1"][data-pos="bottom-left"] .es-chat-panel { right: auto; left: 28px; }
.es-chat-root[data-chat360="1"] .es360-header {
	position: relative;
	min-height: 86px;
	padding: 17px 14px;
	gap: 11px;
	background: transparent;
	color: var(--es360-header-text, #fff);
	isolation: isolate;
	overflow: hidden;
}
.es-chat-root[data-chat360="1"] .es360-header::before,
.es-chat-root[data-chat360="1"] .es360-header::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}
.es-chat-root[data-chat360="1"] .es360-header::before {
	z-index: -2;
	background: var(--es360-header-image, none) center/cover no-repeat;
	opacity: var(--es360-header-image-opacity, 1);
}
.es-chat-root[data-chat360="1"] .es360-header::after {
	z-index: -1;
	background: var(--es360-header-bg, var(--es360-primary));
	opacity: var(--es360-header-opacity, .8);
}
.es-chat-root[data-chat360="1"] .es360-avatar {
	width: 42px;
	height: 42px;
	border: 2px solid rgba(255,255,255,.72);
	background: #fff;
	color: var(--es360-primary);
	box-shadow: 0 4px 12px rgba(15,23,42,.12);
}
.es-chat-root[data-chat360="1"] .es360-brand-mark { font-size: 18px; line-height: 1; }
.es-chat-root[data-chat360="1"][data-chat360-header="classic" i] .es360-header { min-height: 82px; }
.es-chat-root[data-chat360="1"][data-chat360-header="hero" i] .es360-header { min-height: 150px; align-items: flex-end; }
.es-chat-root[data-chat360="1"][data-chat360-header="hero" i] .es360-avatar { width: 58px; height: 58px; }
.es-chat-root[data-chat360="1"][data-chat360-header="image-hero" i] .es360-header { min-height: 170px; align-items: flex-end; }
.es-chat-root[data-chat360="1"][data-chat360-header="image-hero" i] .es360-avatar { width: 58px; height: 58px; }
.es-chat-root[data-chat360="1"][data-chat360-header="full-bleed" i] .es360-header { min-height: 180px; align-items: flex-end; padding: 24px; }
.es-chat-root[data-chat360="1"][data-chat360-header="compact" i] .es360-header { min-height: 58px; padding: 8px 12px; }
.es-chat-root[data-chat360="1"][data-chat360-header="compact" i] .es360-avatar,
.es-chat-root[data-chat360="1"][data-chat360-header="micro" i] .es360-avatar { width: 32px; height: 32px; }
.es-chat-root[data-chat360="1"][data-chat360-header="centered" i] .es360-header,
.es-chat-root[data-chat360="1"][data-chat360-header="logo-center" i] .es360-header { justify-content: center; text-align: center; }
.es-chat-root[data-chat360="1"][data-chat360-header="centered" i] .es-chat-head-text,
.es-chat-root[data-chat360="1"][data-chat360-header="logo-center" i] .es-chat-head-text { flex: 0 1 auto; }
.es-chat-root[data-chat360="1"] .es-chat-head-text strong { font-size: 16px; color: inherit; }
.es-chat-root[data-chat360="1"] .es-chat-head-text span { margin-top: 2px; color: inherit; }
.es-chat-root[data-chat360="1"] .es360-header-actions { display: flex; gap: 4px; align-self: flex-start; }
.es-chat-root[data-chat360="1"] .es360-header .es-chat-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255,255,255,.16);
	color: inherit;
}
.es-chat-root[data-chat360="1"] .es360-head-more { font-weight: 800; letter-spacing: 1px; }
.es-chat-root[data-chat360="1"] .es360-nav {
	display: flex;
	order: initial;
	min-height: 43px;
	padding: 0 6px;
	gap: 0;
	border: 0;
	border-bottom: 1px solid color-mix(in srgb, var(--es360-text) 10%, transparent);
	background: var(--es360-nav-bg, #fff);
	color: var(--es360-nav-text, var(--es360-text));
}
.es-chat-root[data-chat360="1"] .es360-nav-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	min-height: 43px;
	padding: 8px 4px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	color: inherit;
	font-size: 11px;
	font-weight: 650;
	display: flex;
	flex-direction: row;
	gap: 4px;
	white-space: nowrap;
}
.es-chat-root[data-chat360="1"] .es360-nav-item svg { width: 14px; height: 14px; }
.es-chat-root[data-chat360="1"] .es360-nav-item.is-active { color: var(--es360-primary); box-shadow: inset 0 -3px 0 var(--es360-primary); }
.es-chat-root[data-chat360="1"] .es360-dots { font-size: 13px; letter-spacing: -1px; }
.es-chat-root[data-chat360="1"] .es360-more-menu {
	position: absolute;
	top: 124px;
	right: 10px;
	z-index: 8;
	width: 210px;
	padding: 6px;
	border: 1px solid color-mix(in srgb, var(--es360-text) 14%, transparent);
	border-radius: 13px;
	background: var(--es360-surface);
	box-shadow: 0 14px 40px rgba(15,23,42,.2);
}
.es-chat-root[data-chat360="1"] .es360-more-menu button {
	width: 100%;
	padding: 10px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--es360-text);
	font: inherit;
	text-align: left;
	display: flex;
	align-items: center;
	gap: 9px;
	cursor: pointer;
}
.es-chat-root[data-chat360="1"] .es360-more-menu button:hover,
.es-chat-root[data-chat360="1"] .es360-more-menu button:focus-visible { background: color-mix(in srgb, var(--es360-primary) 9%, var(--es360-surface)); outline: none; }
.es-chat-root[data-chat360="1"] .es-chat-scroll {
	flex: 1 1 auto;
	min-height: 0;
	padding: 18px 20px;
	position: relative;
	background-color: var(--es360-messages-bg, var(--es360-surface));
	color: var(--es360-messages-text, var(--es360-text));
}
.es-chat-root[data-chat360="1"] .es-chat-scroll::before { content: ""; position: absolute; inset: 0; background: var(--es360-texture-image, none) 0 0/100px repeat; opacity: var(--es360-texture-opacity, 0); pointer-events: none; }
.es-chat-root[data-chat360="1"] .es-chat-scroll > * { position: relative; z-index: 1; }
.es-chat-root[data-chat360="1"] .es360-home { display: grid; gap: 10px; }
.es-chat-root[data-chat360="1"] .es360-home h2 { margin: 0; color: var(--es360-text); font-size: 23px; line-height: 1.2; }
.es-chat-root[data-chat360="1"] .es360-eyebrow { margin: 0; color: var(--es360-text); font-size: 12px; font-weight: 750; }
.es-chat-root[data-chat360="1"] .es360-lead { margin: -4px 0 2px; color: color-mix(in srgb, var(--es360-text) 66%, transparent); font-size: 13px; }
.es-chat-root[data-chat360="1"] .es360-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.es-chat-root[data-chat360="1"] .es360-card {
	min-width: 0;
	min-height: 76px;
	padding: 13px;
	border: 1px solid color-mix(in srgb, var(--es360-text) 13%, transparent);
	border-radius: 14px;
	background: color-mix(in srgb, var(--es360-surface) 96%, var(--es360-primary));
	color: var(--es360-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 3px;
}
.es-chat-root[data-chat360="1"] .es360-card:hover,
.es-chat-root[data-chat360="1"] .es360-card:focus-visible { border-color: color-mix(in srgb, var(--es360-primary) 60%, transparent); box-shadow: 0 5px 18px color-mix(in srgb, var(--es360-primary) 12%, transparent); outline: none; }
.es-chat-root[data-chat360="1"] .es360-card strong { color: inherit; font-size: 13px; }
.es-chat-root[data-chat360="1"] .es360-card span { color: color-mix(in srgb, var(--es360-text) 62%, transparent); font-size: 11px; line-height: 1.45; }
.es-chat-root[data-chat360="1"] .es360-card--wide { width: 100%; min-height: 64px; }
.es-chat-root[data-chat360="1"] .es360-open-ticket { border-color: var(--es360-primary); }
.es-chat-root[data-chat360="1"] .es-chat-composer {
	margin: 8px 10px;
	padding: 6px;
	border: 1px solid color-mix(in srgb, var(--es360-text) 10%, transparent);
	border-radius: 18px;
	background: var(--es360-composer-bg, #fff);
	box-shadow: 0 8px 22px rgba(15,23,42,.09);
}
.es-chat-root[data-chat360="1"] .es-chat-composer textarea { min-height: 38px; border: 0; border-radius: 14px; background: transparent; color: var(--es360-composer-text, var(--es360-text)); box-shadow: none; outline: none; }
.es-chat-root[data-chat360="1"] .es-chat-send { width: 38px; height: 38px; padding: 0; border-radius: 50%; background: var(--es360-primary); justify-content: center; }
.es-chat-root[data-chat360="1"] .es-chat-send span,
.es-chat-root[data-chat360="1"] .es-chat-send:not(:has(svg)) { font-size: 0; }
.es-chat-root[data-chat360="1"] .es-chat-send { font-size: 0; }
.es-chat-root[data-chat360="1"] .es-chat-send svg { width: 17px; height: 17px; }
.es-chat-root[data-chat360="1"] .es-chat-footer { padding: 7px; border: 0; background: var(--es360-footer-bg, #fff); color: var(--es360-footer-text, #7d8aa0); font-size: 10px; }

.es-chat-root[data-chat360="1"] .es-chat-msg.is-visitor .es-chat-bubble { background: var(--es360-primary); color: #fff; }
.es-chat-root[data-chat360="1"] .es-chat-form .es-tf-submit,
.es-chat-root[data-chat360="1"] .es-chat-btn {
	background: var(--es360-primary);
	color: #fff;
	border-color: transparent;
}
.es-chat-root[data-chat360="1"] .es-chat-launcher {
	right: 28px;
	bottom: 28px;
	width: auto;
	min-width: var(--es360-launcher-size, 64px);
	height: var(--es360-launcher-size, 64px);
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background-color: var(--es360-launcher-bg, var(--es360-primary));
	background-image: var(--es360-launcher-image, linear-gradient(135deg, var(--es360-launcher-bg, var(--es360-primary)), var(--es360-secondary)));
	background-size: cover;
	background-position: center;
	color: var(--es360-launcher-text, #fff);
	box-shadow: 0 10px 28px color-mix(in srgb, var(--es360-primary) 34%, transparent);
	display: inline-flex;
	align-items: center;
	gap: 9px;
}
.es-chat-root[data-chat360="1"][data-pos="bottom-left"] .es-chat-launcher { right: auto; left: 28px; }
.es-chat-root[data-chat360="1"] .es360-launcher-icon { font-size: 18px; line-height: 1; }
.es-chat-root[data-chat360="1"] .es360-launcher-text { font-size: 13px; font-weight: 750; white-space: nowrap; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="gradient-orb" i] .es360-launcher-text,
.es-chat-root[data-chat360="1"][data-chat360-launcher="ai-bot" i] .es360-launcher-text { display: none; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="gradient-orb" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="ai-bot" i] .es-chat-launcher { width: var(--es360-launcher-size); padding: 0; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="gradient-orb" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="ai-bot" i] .es-chat-launcher { background: linear-gradient(135deg,var(--es360-launcher-bg,var(--es360-primary)),var(--es360-secondary)); }
.es-chat-root[data-chat360="1"][data-chat360-launcher="default" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="orb" i] .es-chat-launcher,
.es-chat-root[data-chat360="1"][data-chat360-launcher="gradient-orb" i] .es-chat-launcher {
	width: var(--es360-launcher-size);
	min-width: var(--es360-launcher-size);
	padding: 0;
	border-radius: 50%;
}
.es-chat-root[data-chat360="1"][data-chat360-launcher="orb" i] .es-chat-launcher { box-shadow: 0 0 0 9px rgba(255,255,255,.6), 0 15px 40px rgba(23,49,80,.2); }
.es-chat-root[data-chat360="1"][data-chat360-launcher="mascot" i] .es-chat-launcher {
	width: 76px;
	min-width: 76px;
	height: 76px;
	padding: 0;
	border-radius: 26px;
	overflow: visible;
}
.es-chat-root[data-chat360="1"][data-chat360-launcher="mascot" i] .es360-launcher-text { display: none; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="mascot" i] .es360-launcher-icon { font-size: 38px; transform: translateY(-2px); }
.es-chat-root[data-chat360="1"][data-chat360-launcher="mascot" i] .es-chat-launcher::before { content: ""; position: absolute; inset: 7px; border-radius: 21px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.55); pointer-events: none; }
.es-chat-root[data-chat360="1"][data-chat360-launcher="mascot" i] .es-chat-launcher::after { content: "Hi!"; position: absolute; right: -20px; top: -10px; background: #fff; color: var(--es360-text); padding: 4px 7px; border-radius: 9px 9px 9px 2px; font: 800 10px/1 system-ui; box-shadow: 0 5px 14px rgba(23,49,80,.14); }
.es-chat-root[data-chat360="1"] .es-chat-launcher .es-chat-badge { right: -3px; top: -5px; width: 23px; min-width: 23px; height: 23px; border: 3px solid #fff; padding: 0; line-height: 17px; }
.es-chat-root[data-chat360="1"] button:focus-visible,
.es-chat-root[data-chat360="1"] textarea:focus-visible,
.es-chat-root[data-chat360="1"] input:focus-visible { outline: 2px solid var(--es360-primary); outline-offset: 2px; }

/* Canonical Studio layers: image -> color overlay -> content -> optional texture. */
.es-chat-root[data-chat360="1"] .chatnav,
.es-chat-root[data-chat360="1"] #composer,
.es-chat-root[data-chat360="1"] .chatbox > .es-chat-footer,
.es-chat-root[data-chat360="1"] .screenArea { position: relative; isolation: isolate; background: transparent !important; }
.es-chat-root[data-chat360="1"] .chatnav::before,
.es-chat-root[data-chat360="1"] #composer::before,
.es-chat-root[data-chat360="1"] .screenArea::before,
.es-chat-root[data-chat360="1"] .chatnav::after,
.es-chat-root[data-chat360="1"] #composer::after,
.es-chat-root[data-chat360="1"] .screenArea::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.es-chat-root[data-chat360="1"] .chatnav::before,
.es-chat-root[data-chat360="1"] #composer::before,
.es-chat-root[data-chat360="1"] .screenArea::before { z-index: -2; background: var(--layer-image, none) center/cover no-repeat; opacity: var(--layer-image-opacity, 1); }
.es-chat-root[data-chat360="1"] .chatnav::after,
.es-chat-root[data-chat360="1"] #composer::after,
.es-chat-root[data-chat360="1"] .screenArea::after { z-index: -1; background: var(--layer-color, #fff); opacity: var(--layer-color-opacity, 1); }
.es-chat-root[data-chat360="1"] .chatnav { --layer-image: var(--nav-image); --layer-image-opacity: var(--nav-image-opacity); --layer-color: var(--nav-base-color); --layer-color-opacity: var(--nav-color-opacity); }
.es-chat-root[data-chat360="1"] .screenArea { --layer-image: var(--messages-image); --layer-image-opacity: var(--messages-image-opacity); --layer-color: var(--messages-base-color); --layer-color-opacity: var(--messages-color-opacity); }
.es-chat-root[data-chat360="1"] #composer { --layer-image: var(--composer-image); --layer-image-opacity: var(--composer-image-opacity); --layer-color: var(--composer-base-color); --layer-color-opacity: var(--composer-color-opacity); }
.es-chat-root[data-chat360="1"] .chatbox > .es-chat-footer { --layer-image: var(--footer-image); --layer-image-opacity: var(--footer-image-opacity); --layer-color: var(--footer-base-color); --layer-color-opacity: var(--footer-color-opacity); }
.es-chat-root[data-chat360="1"] .chatbox::after { content: ""; position: absolute; inset: 0; z-index: 20; background: var(--texture, none); background-size: 100px; opacity: var(--texture-opacity, 0); pointer-events: none; }
.es-chat-root[data-chat360="1"] .chatbox > * { position: relative; z-index: 21; }

/* Runtime launcher parity: these are the same geometry and layer rules used by Chat360 Studio. */
.es-chat-root[data-chat360="1"] .es-chat-launcher.launcher {
	--size: var(--es360-launcher-size, 64px);
	--lp: var(--es360-launcher-bg, var(--es360-primary));
	--speed: var(--es360-animation-speed, 1.8s);
	position: fixed;
	right: 28px;
	bottom: 28px;
	z-index: 2147483647;
	min-width: var(--size);
	height: var(--size);
	padding: 0 18px;
	border: 0;
	border-radius: 999px;
	background: transparent !important;
	color: var(--es360-launcher-text, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 800;
	box-shadow: 0 14px 35px color-mix(in srgb, var(--lp) 34%, transparent);
	isolation: isolate;
	transition: right .28s, left .28s, opacity .2s;
}

.es-chat-root[data-chat360="1"] .launcher strong { display: none; }
.es-chat-root[data-chat360="1"] .launcher.text-icon strong,
.es-chat-root[data-chat360="1"] .launcher.tooltip strong,
.es-chat-root[data-chat360="1"] .launcher.side-tab strong { display: block; }
.es-chat-root[data-chat360="1"] .launcher.outline { color: var(--lp); border: 2px solid var(--lp); }
.es-chat-root[data-chat360="1"] .launcher.support { --launcher-base-color: #142746; }
.es-chat-root[data-chat360="1"] .launcher.minimal { color: #142746; border: 1px solid #dce4ed; }
.es-chat-root[data-chat360="1"] .launcher.gradient-orb { --launcher-base-color: transparent; background: linear-gradient(135deg, var(--lp), var(--es360-secondary)) !important; }
.es-chat-root[data-chat360="1"] .launcher.left { left: 28px; right: auto; }
.es-chat-root[data-chat360="1"] .launcher.noBadge .es-chat-badge { display: none; }
.es-chat-root[data-chat360="1"] .launcher.side-tab { right: 0; bottom: 150px; border-radius: 18px 0 0 18px; height: 120px; min-width: 50px; writing-mode: vertical-rl; }
.es-chat-root[data-chat360="1"] .launcher.side-tab.left { left: 0; right: auto; border-radius: 0 18px 18px 0; }
.es-chat-root[data-chat360="1"].is-open .launcher.side-tab:not(.left) { right: calc(var(--es360-width, 390px) + 28px); }
.es-chat-root[data-chat360="1"].is-open .launcher.side-tab.left { left: calc(var(--es360-width, 390px) + 28px); }
/* Keep every Chat360 launcher outside an open panel, even when WordPress
   navigation replaces the runtime node before its JavaScript dock pass runs. */
@media (min-width: 761px) {
	.es-chat-root[data-chat360="1"].is-open[data-pos="bottom-right"] .launcher:not(.side-tab) {
		left: auto !important;
		right: calc(min(var(--es360-width, 390px), 100vw - 32px) + 28px) !important;
	}
	.es-chat-root[data-chat360="1"].is-open[data-pos="bottom-left"] .launcher:not(.side-tab) {
		right: auto !important;
		left: calc(min(var(--es360-width, 390px), 100vw - 32px) + 28px) !important;
	}
}
.es-chat-root[data-chat360="1"] .launcher.orb { width: var(--size); min-width: var(--size); padding: 0; border-radius: 50%; box-shadow: 0 0 0 9px #ffffff99, 0 15px 40px #17315033; }
.es-chat-root[data-chat360="1"] .launcher.pill { min-width: 170px; }
.es-chat-root[data-chat360="1"] .launcher.pill strong,
.es-chat-root[data-chat360="1"] .launcher.agent-card strong,
.es-chat-root[data-chat360="1"] .launcher.mini-bar strong,
.es-chat-root[data-chat360="1"] .launcher.vertical-rail strong,
.es-chat-root[data-chat360="1"] .launcher.speech-bubble strong,
.es-chat-root[data-chat360="1"] .launcher.status-card strong,
.es-chat-root[data-chat360="1"] .launcher.split-button strong,
.es-chat-root[data-chat360="1"] .launcher.quick-menu strong,
.es-chat-root[data-chat360="1"] .launcher.dock strong,
.es-chat-root[data-chat360="1"] .launcher.notification-card strong,
.es-chat-root[data-chat360="1"] .launcher.agent-stack strong,
.es-chat-root[data-chat360="1"] .launcher.department strong,
.es-chat-root[data-chat360="1"] .launcher.search strong,
.es-chat-root[data-chat360="1"] .launcher.ask-ai strong,
.es-chat-root[data-chat360="1"] .launcher.ticket-status strong,
.es-chat-root[data-chat360="1"] .launcher.order-help strong,
.es-chat-root[data-chat360="1"] .launcher.help-capsule strong,
.es-chat-root[data-chat360="1"] .launcher.floating-island strong,
.es-chat-root[data-chat360="1"] .launcher.bottom-bar strong,
.es-chat-root[data-chat360="1"] .launcher.mobile-handle strong,
.es-chat-root[data-chat360="1"] .launcher.context-cta strong,
.es-chat-root[data-chat360="1"] .launcher.proactive-agent strong,
.es-chat-root[data-chat360="1"] .launcher.tab-label strong,
.es-chat-root[data-chat360="1"] .launcher.dual-action strong,
.es-chat-root[data-chat360="1"] .launcher.compact-agent strong,
.es-chat-root[data-chat360="1"] .launcher.wide-banner strong,
.es-chat-root[data-chat360="1"] .launcher.command-palette strong { display: block; }
.es-chat-root[data-chat360="1"] .launcher.agent-card { width: 210px; height: 72px; border-radius: 18px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.agent-card #launchIcon { font-size: 28px; }
.es-chat-root[data-chat360="1"] .launcher.mini-bar { width: 220px; height: 42px; border-radius: 10px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.vertical-rail { width: 56px; height: 180px; min-width: 56px; border-radius: 18px; writing-mode: vertical-rl; }
.es-chat-root[data-chat360="1"] .launcher.avatar { width: 68px; height: 68px; min-width: 68px; border-radius: 50%; font-size: 0; }
.es-chat-root[data-chat360="1"] .launcher.avatar #launchIcon { font-size: 32px; }
.es-chat-root[data-chat360="1"] .launcher.ai-bot { width: 76px; height: 76px; border-radius: 24px; font-size: 0; }
.es-chat-root[data-chat360="1"] .launcher.ai-bot #launchIcon { font-size: 34px; }
.es-chat-root[data-chat360="1"] .launcher.speech-bubble { width: 170px; height: 64px; border-radius: 20px 20px 20px 5px; }
.es-chat-root[data-chat360="1"] .launcher.status-card { width: 215px; height: 70px; border-radius: 16px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.split-button { width: 180px; border-radius: 14px; padding-right: 48px; }
.es-chat-root[data-chat360="1"] .launcher.expandable-fab { width: 64px; min-width: 64px; border-radius: 50%; transition: width .25s; }
.es-chat-root[data-chat360="1"] .launcher.expandable-fab:hover { width: 180px; }
.es-chat-root[data-chat360="1"] .launcher.expandable-fab:hover strong { display: block; }
.es-chat-root[data-chat360="1"] .launcher.radial { width: 72px; height: 72px; border-radius: 50%; }
.es-chat-root[data-chat360="1"] .launcher.quick-menu { width: 150px; border-radius: 16px; }
.es-chat-root[data-chat360="1"] .launcher.dock { width: 240px; height: 54px; border-radius: 14px 14px 0 0; bottom: 0 !important; }
.es-chat-root[data-chat360="1"] .launcher.corner-tab { right: 0 !important; bottom: 0 !important; width: 105px; height: 105px; border-radius: 100% 0 0 0; align-items: flex-end; justify-content: flex-end; padding: 0 16px 16px 0; }
.es-chat-root[data-chat360="1"] .launcher.edge-handle { right: 0 !important; width: 34px; min-width: 34px; height: 110px; border-radius: 16px 0 0 16px; padding: 0; writing-mode: vertical-rl; }
.es-chat-root[data-chat360="1"] .launcher.notification-card { width: 240px; height: 82px; border-radius: 18px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.agent-stack { width: 150px; height: 64px; border-radius: 999px; padding-left: 48px; }
.es-chat-root[data-chat360="1"] .launcher.department { width: 210px; height: 62px; border-radius: 14px; }
.es-chat-root[data-chat360="1"] .launcher.search { width: 260px; height: 50px; border-radius: 999px; justify-content: flex-start; color: #64748b; border: 1px solid #dce4ed; }
.es-chat-root[data-chat360="1"] .launcher.ask-ai { width: 270px; height: 54px; border-radius: 14px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.ticket-status,
.es-chat-root[data-chat360="1"] .launcher.order-help { width: 230px; height: 66px; border-radius: 14px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.help-capsule { width: 190px; height: 48px; }
.es-chat-root[data-chat360="1"] .launcher.floating-island { width: 200px; height: 58px; border-radius: 22px; box-shadow: 0 18px 55px #17315044; }
.es-chat-root[data-chat360="1"] .launcher.bottom-bar { left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: 14px !important; width: min(420px, calc(100vw - 30px)); height: 58px; border-radius: 18px; }
.es-chat-root[data-chat360="1"] .launcher.mobile-handle { left: 50% !important; right: auto !important; transform: translateX(-50%); bottom: 0 !important; width: 150px; height: 38px; border-radius: 18px 18px 0 0; }
.es-chat-root[data-chat360="1"] .launcher.context-cta { width: 245px; height: 64px; border-radius: 16px; }
.es-chat-root[data-chat360="1"] .launcher.proactive-agent { width: 250px; height: 78px; border-radius: 18px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.icon-square { width: 60px; min-width: 60px; height: 60px; border-radius: 14px; }
.es-chat-root[data-chat360="1"] .launcher.hex { width: 68px; height: 62px; min-width: 68px; border-radius: 0; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.es-chat-root[data-chat360="1"] .launcher.diamond { width: 58px; height: 58px; min-width: 58px; border-radius: 12px; transform: rotate(45deg); }
.es-chat-root[data-chat360="1"] .launcher.diamond > * { transform: rotate(-45deg); }
.es-chat-root[data-chat360="1"] .launcher.ribbon { width: 180px; height: 54px; border-radius: 8px 0 0 8px; }
.es-chat-root[data-chat360="1"] .launcher.bookmark { width: 62px; height: 82px; border-radius: 10px 10px 0 0; clip-path: polygon(0 0,100% 0,100% 100%,50% 82%,0 100%); }
.es-chat-root[data-chat360="1"] .launcher.tab-label { right: 0 !important; width: 118px; height: 48px; border-radius: 14px 0 0 14px; }
.es-chat-root[data-chat360="1"] .launcher.dual-action { width: 205px; height: 58px; border-radius: 16px; padding-right: 62px; }
.es-chat-root[data-chat360="1"] .launcher.compact-agent { width: 185px; height: 52px; border-radius: 999px; justify-content: flex-start; }
.es-chat-root[data-chat360="1"] .launcher.wide-banner { left: 50% !important; right: auto !important; transform: translateX(-50%); width: min(600px, calc(100vw - 40px)); height: 52px; border-radius: 12px; }
.es-chat-root[data-chat360="1"] .launcher.micro-dot { width: 26px; min-width: 26px; height: 26px; padding: 0; border-radius: 50%; font-size: 0; }
.es-chat-root[data-chat360="1"] .launcher.micro-dot .es-chat-badge { display: none; }
.es-chat-root[data-chat360="1"] .launcher.hover-card { width: 64px; min-width: 64px; overflow: hidden; transition: width .25s, height .25s; }
.es-chat-root[data-chat360="1"] .launcher.hover-card:hover { width: 230px; height: 90px; border-radius: 18px; }
.es-chat-root[data-chat360="1"] .launcher.hover-card:hover strong { display: block; }
.es-chat-root[data-chat360="1"] .launcher.command-palette { width: 280px; height: 52px; border-radius: 12px; justify-content: flex-start; --launcher-base-color: #101827; }
.es-chat-root[data-chat360="1"] .launcher.mascot { width: 76px; height: 76px; min-width: 76px; border-radius: 26px; font-size: 0; overflow: visible; }
.es-chat-root[data-chat360="1"] .launcher.mascot #launchIcon { font-size: 38px; transform: translateY(-2px); }
.es-chat-root[data-chat360="1"] .launcher.mascot::before { content: ""; position: absolute; inset: 7px; z-index: auto; border-radius: 21px; background: #ffffff20; border: 2px solid #ffffff88; opacity: 1; }
.es-chat-root[data-chat360="1"] .launcher.mascot::after { content: "Hi!"; position: absolute; inset: auto; right: -20px; top: -10px; z-index: auto; background: #fff; color: #142746; opacity: 1; padding: 4px 7px; border-radius: 9px 9px 9px 2px; font: 800 10px/1 system-ui; box-shadow: 0 5px 14px #17315022; }
.es-chat-root[data-chat360="1"] .launcher.mascot strong { display: none; }
.es-chat-root[data-chat360="1"] .launcher.collision-shift { box-shadow: 0 12px 32px #17315035; }

/* Studio structural rules used by the saved experiences (same selectors, scoped to the public widget). */
.es-chat-root[data-chat360="1"] .layout-hero .chatHeader { min-height: 160px; align-items: flex-end; }
.es-chat-root[data-chat360="1"] .layout-hero .identity { align-items: flex-end; }
.es-chat-root[data-chat360="1"] .layout-hero .avatar { width: 56px; height: 56px; }
.es-chat-root[data-chat360="1"] .layout-compact { --es360-width: 340px; }
.es-chat-root[data-chat360="1"] .layout-compact .chatHeader { min-height: 64px; padding: 10px 13px; }
.es-chat-root[data-chat360="1"] .layout-sidebar-nav { padding-left: 66px; }
.es-chat-root[data-chat360="1"] .layout-sidebar-nav > .chatnav { position: absolute; left: 0; top: 0; bottom: 0; width: 66px; z-index: 30; display: flex !important; flex-direction: column; border-right: 1px solid #e9eef4; border-bottom: 0; }
.es-chat-root[data-chat360="1"] .layout-sidebar-nav > .chatnav button { flex: 0 0 auto; min-height: 60px; white-space: normal; }
.es-chat-root[data-chat360="1"] .layout-sidebar-nav > .es-chat-footer { margin-left: -66px; }
.es-chat-root[data-chat360="1"] .layout-ai-focus .chatHeader { min-height: 125px; }
.es-chat-root[data-chat360="1"] .layout-ai-focus .avatar { width: 64px; height: 64px; }
.es-chat-root[data-chat360="1"] .layout-human-focus .avatar { border: 4px solid #fff; box-shadow: 0 4px 16px #0002; }
.es-chat-root[data-chat360="1"] .layout-portal-grid #homeBlocks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.es-chat-root[data-chat360="1"] .layout-centered .chatHeader,
.es-chat-root[data-chat360="1"] .layout-centered .welcomeText { text-align: center; }
.es-chat-root[data-chat360="1"] .layout-centered .identity { margin: auto; flex-direction: column; }
.es-chat-root[data-chat360="1"] .layout-minimal-line { border: 0; box-shadow: 0 12px 50px #17315012; }
.es-chat-root[data-chat360="1"] .layout-minimal-line .chatHeader { background: none !important; color: var(--text) !important; border-bottom: 1px solid #e5e7eb; }
.es-chat-root[data-chat360="1"] .layout-rounded-soft { border-radius: 32px; }
.es-chat-root[data-chat360="1"] .layout-rounded-soft .homeBlock { border-radius: 22px; }
.es-chat-root[data-chat360="1"] .layout-sharp-pro,
.es-chat-root[data-chat360="1"] .layout-sharp-pro .homeBlock { border-radius: 0; }
.es-chat-root[data-chat360="1"] .layout-glass-panel { backdrop-filter: blur(18px); background: #ffffffc9; }
.es-chat-root[data-chat360="1"] .layout-terminal { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #07111d; color: #d8ffe8; }
.es-chat-root[data-chat360="1"] .layout-full-panel:not(.full-height) { height: min(720px, calc(100dvh - 60px)); bottom: 30px; }
.es-chat-root[data-chat360="1"] .chatbox.density-compact .screen { padding: 11px; }
.es-chat-root[data-chat360="1"] .chatbox.density-spacious .screen { padding: 26px; }
.es-chat-root[data-chat360="1"] .chatbox.bubble-pill .es-chat-bubble { border-radius: 999px; }
.es-chat-root[data-chat360="1"] .chatbox.bubble-square .es-chat-bubble { border-radius: 5px; }
.es-chat-root[data-chat360="1"] .chatbox.bubble-outline .es-chat-bubble { background: transparent; border: 1px solid #d8e1ec; }
.es-chat-root[data-chat360="1"] .chatbox.nav-pills .chatnav { gap: 5px; padding: 6px; }
.es-chat-root[data-chat360="1"] .chatbox.nav-pills .chatnav button { border-radius: 999px; background: #ffffff77 !important; }
.es-chat-root[data-chat360="1"] .chatbox.nav-segmented .chatnav { margin: 7px; border-radius: 12px; overflow: hidden; min-height: 40px; }
.es-chat-root[data-chat360="1"] .chatbox.composer-bar #composer { margin: 0; padding: 0; border-radius: 0; }
.es-chat-root[data-chat360="1"] .chatbox.composer-floating #composer { margin: 10px; border: 0; border-radius: 999px; box-shadow: 0 10px 28px #17315022; }
.es-chat-root[data-chat360="1"] .footer-powered-center .es-chat-footer { text-align: center; }
.es-chat-root[data-chat360="1"] .footer-powered-left .es-chat-footer { text-align: left; }
.es-chat-root[data-chat360="1"] .footer-powered-right .es-chat-footer { text-align: right; }
.es-chat-root[data-chat360="1"] .footer-links .es-chat-footer { display: flex; justify-content: space-between; }
.es-chat-root[data-chat360="1"] .footer-links .es-chat-footer::after { content: "Privacy · Help · Terms"; }

/* The runtime uses the same complete motion catalogue as the Chat360 studio. */
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="pulse"] .es-chat-launcher { animation: es360-pulse var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="float"] .es-chat-launcher { animation: es360-float var(--es360-animation-speed) ease-in-out infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="bounce"] .es-chat-launcher { animation: es360-bounce var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="shake"] .es-chat-launcher { animation: es360-shake var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="glow"] .es-chat-launcher { animation: es360-glow var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="heartbeat"] .es-chat-launcher { animation: es360-heartbeat var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="swing"] .es-chat-launcher { animation: es360-swing var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="wobble"] .es-chat-launcher { animation: es360-wobble var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="jello"] .es-chat-launcher { animation: es360-jello var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="rubber"] .es-chat-launcher { animation: es360-rubber var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="tada"] .es-chat-launcher { animation: es360-tada var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="spin"] .es-chat-launcher { animation: es360-spin var(--es360-animation-speed) linear infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="flip"] .es-chat-launcher { animation: es360-flip var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="zoom"] .es-chat-launcher { animation: es360-zoom var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="slide-up"] .es-chat-launcher { animation: es360-slide-up var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="slide-left"] .es-chat-launcher { animation: es360-slide-left var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="blink"] .es-chat-launcher { animation: es360-blink var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="breathe"] .es-chat-launcher { animation: es360-breathe var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="orbit"] .es-chat-launcher { animation: es360-orbit var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="pop"] .es-chat-launcher { animation: es360-pop var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="wave"] .es-chat-launcher { animation: es360-wave var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="tilt"] .es-chat-launcher { animation: es360-tilt var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="flicker"] .es-chat-launcher { animation: es360-flicker var(--es360-animation-speed) infinite; }
.es-chat-root[data-chat360="1"][data-chat360-launcher-animation="drift"] .es-chat-launcher { animation: es360-drift var(--es360-animation-speed) infinite; }
/* Chat360 motion is event-driven: it plays once only after an explicit
   launcher open or header close.  A re-render, text input or navigation must
   never restart it. */
.es-chat-root[data-chat360="1"] .es-chat-launcher:not(.is-motion) { animation: none !important; }
.es-chat-root[data-chat360="1"] .es-chat-launcher.is-motion { animation-iteration-count: 1 !important; }
@keyframes es360-pulse { 50% { box-shadow: 0 0 0 14px #ff5a1f22; } }
@keyframes es360-float { 50% { transform: translateY(-8px); } }
@keyframes es360-bounce { 20% { transform: translateY(-10px); } 40% { transform: none; } }
@keyframes es360-shake { 10%,30% { transform: rotate(-7deg); } 20%,40% { transform: rotate(7deg); } }
@keyframes es360-glow { 50% { filter: drop-shadow(0 0 14px #ff6b35); } }
@keyframes es360-heartbeat { 14%,42% { transform: scale(1.13); } 28%,70% { transform: scale(1); } }
@keyframes es360-swing { 20% { transform: rotate(10deg); } 40% { transform: rotate(-7deg); } 60% { transform: rotate(4deg); } }
@keyframes es360-wobble { 25% { transform: translateX(-8px) rotate(-5deg); } 50% { transform: translateX(6px) rotate(3deg); } 75% { transform: translateX(-3px); } }
@keyframes es360-jello { 25% { transform: skew(-8deg); } 50% { transform: skew(6deg); } 75% { transform: skew(-3deg); } }
@keyframes es360-rubber { 30% { transform: scale3d(1.18,.82,1); } 50% { transform: scale3d(.9,1.1,1); } 70% { transform: none; } }
@keyframes es360-tada { 20% { transform: scale(.92) rotate(-4deg); } 40%,70% { transform: scale(1.08) rotate(4deg); } 55% { transform: scale(1.08) rotate(-4deg); } }
@keyframes es360-spin { to { transform: rotate(360deg); } }
@keyframes es360-flip { 50% { transform: perspective(500px) rotateY(180deg); } }
@keyframes es360-zoom { 50% { transform: scale(1.12); } }
@keyframes es360-slide-up { 50% { transform: translateY(-10px); } }
@keyframes es360-slide-left { 50% { transform: translateX(-10px); } }
@keyframes es360-blink { 50% { opacity: .4; } }
@keyframes es360-breathe { 50% { transform: scale(1.07); filter: brightness(1.08); } }
@keyframes es360-orbit { 25% { transform: translate(6px,-5px); } 50% { transform: translateY(-9px); } 75% { transform: translate(-6px,-5px); } }
@keyframes es360-pop { 50% { transform: scale(.9); } 60% { transform: scale(1.12); } }
@keyframes es360-wave { 25% { transform: rotate(7deg); } 75% { transform: rotate(-7deg); } }
@keyframes es360-tilt { 50% { transform: perspective(300px) rotateX(8deg) rotateY(-8deg); } }
@keyframes es360-flicker { 20%,24%,55% { opacity: .45; } 22%,28%,60% { opacity: 1; } }
@keyframes es360-drift { 50% { transform: translate(8px,-5px) rotate(3deg); } }

.es-chat-root[data-chat360="1"][data-chat360-animation="scale"].is-opening .es-chat-panel { animation: es360-cb-scale .3s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="slide"].is-opening .es-chat-panel { animation: es360-cb-slide .3s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="fade"].is-opening .es-chat-panel { animation: es360-cb-fade .3s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="spring"].is-opening .es-chat-panel { animation: es360-cb-spring .5s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="slide-left"].is-opening .es-chat-panel { animation: es360-cb-left .32s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="slide-right"].is-opening .es-chat-panel { animation: es360-cb-right .32s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="slide-up"].is-opening .es-chat-panel { animation: es360-cb-up .32s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="zoom"].is-opening .es-chat-panel { animation: es360-cb-zoom .3s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="flip"].is-opening .es-chat-panel { animation: es360-cb-flip .4s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="flip-x"].is-opening .es-chat-panel { animation: es360-cb-flip-x .4s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="rotate"].is-opening .es-chat-panel { animation: es360-cb-rotate .35s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="blur"].is-opening .es-chat-panel { animation: es360-cb-blur .35s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="elastic"].is-opening .es-chat-panel { animation: es360-cb-elastic .5s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="drop"].is-opening .es-chat-panel { animation: es360-cb-drop .35s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="reveal"].is-opening .es-chat-panel { animation: es360-cb-reveal .4s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="swipe"].is-opening .es-chat-panel { animation: es360-cb-swipe .4s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="grow"].is-opening .es-chat-panel { animation: es360-cb-grow .35s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="skew"].is-opening .es-chat-panel { animation: es360-cb-skew .35s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="soft"].is-opening .es-chat-panel { animation: es360-cb-soft .45s; }
.es-chat-root[data-chat360="1"][data-chat360-animation="bounce"].is-opening .es-chat-panel { animation: es360-cb-bounce .5s; }
.es-chat-root[data-chat360="1"].is-closing .es-chat-panel { opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .22s,transform .22s; }
@keyframes es360-cb-scale { from { opacity:0;transform:scale(.94); } to { opacity:1;transform:none; } }
@keyframes es360-cb-slide { from { opacity:0;transform:translateY(30px); } to { opacity:1;transform:none; } }
@keyframes es360-cb-fade { from { opacity:0; } to { opacity:1; } }
@keyframes es360-cb-spring { 0% { transform:scale(.88); } 70% { transform:scale(1.03); } 100% { transform:none; } }
@keyframes es360-cb-left { from { transform:translateX(60px); } to { transform:none; } }
@keyframes es360-cb-right { from { transform:translateX(-60px); } to { transform:none; } }
@keyframes es360-cb-up { from { transform:translateY(60px); } to { transform:none; } }
@keyframes es360-cb-zoom { from { transform:scale(.75); } to { transform:none; } }
@keyframes es360-cb-flip { from { transform:perspective(800px) rotateY(55deg); } to { transform:none; } }
@keyframes es360-cb-flip-x { from { transform:perspective(800px) rotateX(55deg); } to { transform:none; } }
@keyframes es360-cb-rotate { from { transform:rotate(5deg) scale(.94); } to { transform:none; } }
@keyframes es360-cb-blur { from { filter:blur(14px);opacity:0; } to { filter:none;opacity:1; } }
@keyframes es360-cb-elastic { 0% { transform:scale(.72); } 65% { transform:scale(1.035); } 82% { transform:scale(.985); } 100% { transform:none; } }
@keyframes es360-cb-drop { from { transform:translateY(-55px); } to { transform:none; } }
@keyframes es360-cb-reveal { from { clip-path:inset(100% 0 0); } to { clip-path:inset(0); } }
@keyframes es360-cb-swipe { from { clip-path:inset(0 0 0 100%); } to { clip-path:inset(0); } }
@keyframes es360-cb-grow { from { transform:scaleY(.3);transform-origin:bottom; } to { transform:none; } }
@keyframes es360-cb-skew { from { transform:skewY(5deg) translateY(20px); } to { transform:none; } }
@keyframes es360-cb-soft { from { opacity:0;filter:brightness(1.5); } to { opacity:1;filter:none; } }
@keyframes es360-cb-bounce { 0% { transform:translateY(40px); } 60% { transform:translateY(-8px); } 100% { transform:none; } }

@media (max-width: 480px) {
	.es-chat-root[data-chat360="1"][data-chat360-mobile="fullscreen"] .es-chat-panel {
		inset: 0;
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border: 0;
		border-radius: 0;
	}
	.es-chat-root[data-chat360="1"] .es-chat-launcher { right: 14px; bottom: 14px; }
	.es-chat-root[data-chat360="1"][data-pos="bottom-left"] .es-chat-launcher { left: 14px; }
	.es-chat-root[data-chat360="1"][data-chat360-mobile="bottom-sheet"].es-chat-root.es-chat-root .es-chat-panel.es-chat-panel {
		inset: auto 0 0; width: 100vw; height: min(var(--es360-height, 620px), 85dvh); max-height: 85dvh; border-radius: var(--es360-radius, 22px) var(--es360-radius, 22px) 0 0;
	}
	.es-chat-root[data-chat360="1"][data-chat360-mobile="floating"].es-chat-root.es-chat-root .es-chat-panel.es-chat-panel {
		inset: auto 12px 84px auto; width: calc(100vw - 24px); height: min(var(--es360-height, 620px), calc(100dvh - 100px)); max-height: calc(100dvh - 100px); border-radius: var(--es360-radius, 22px);
	}
}

/* Chatbot360 entry card: consistent hierarchy and room for the switch. */
.es-chat360-card { padding: 24px; background: var(--es-surface, #fff); border-radius: 16px; }
.es-chat360-card h3 { font-size: 18px; line-height: 1.4; margin: 0 0 8px; }
.es-chat360-card > p { max-width: 70ch; margin: 0 0 20px; color: var(--es-text-muted, #64748b); line-height: 1.65; }
.es-chat360-card .es-settings-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 20px; padding: 16px 0; border-block: 1px solid var(--es-border, #e5e7eb); }
.es-chat360-card .es-settings-row__copy { flex: 1; min-width: 0; }
.es-chat360-card .es-settings-row__copy > span { font-weight: 600; }
.es-chat360-card .es-settings-row__copy p { margin: 6px 0 0; max-width: 60ch; line-height: 1.6; }
.es-chat360-card .es-switch { flex-shrink: 0; }
.es-chat360-toolbar > div:first-child { min-width: 0; }
@media (max-width: 560px) { .es-chat360-card { padding: 18px; } .es-chat360-card .es-settings-row { gap: 16px; } }
@media (max-width: 480px) {
 body:has(.es-chat-root[data-chat360="1"].is-open[data-chat360-mobile="fullscreen"]) { overflow: hidden; overscroll-behavior: none; }
}
/* Preserve the selected mobile mode on short touch screens in landscape. */
@media (max-width: 480px), (max-width: 1024px) and (max-height: 480px) and (pointer: coarse) {
 .es-chat-root[data-chat360="1"][data-chat360-mobile="fullscreen"].es-chat-root[data-chat360="1"] .chatbox.es-chat-panel {
  inset: 0!important; width: 100vw!important; max-width: 100vw!important; height: 100dvh!important; max-height: 100dvh!important; border: 0!important; border-radius: 0!important;
 }
 body:has(.es-chat-root[data-chat360="1"].is-open[data-chat360-mobile="fullscreen"]) { overflow: hidden; overscroll-behavior: none; }
}
