#allion-chatbot-root {
	--allion-orange: #f58220;
	--allion-orange-dark: #d96408;
	--allion-ink: #172033;
	--allion-muted: #657085;
	--allion-line: #dfe4ec;
	--allion-surface: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 2147483000;
}

#allion-chatbot-root *, #allion-chatbot-root *::before, #allion-chatbot-root *::after { box-sizing: border-box; }

.allion-chat-launcher {
	display: flex; align-items: center; gap: 9px; margin-left: auto; border: 0; border-radius: 999px;
	background: var(--allion-orange); color: #fff; padding: 13px 18px; min-height: 50px;
	font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(24, 32, 51, .24);
	transition: transform .18s ease, background .18s ease;
}
.allion-chat-launcher:hover { background: var(--allion-orange-dark); transform: translateY(-1px); }
.allion-chat-launcher:focus-visible, #allion-chatbot-root button:focus-visible,
#allion-chatbot-root select:focus-visible, #allion-chatbot-root textarea:focus-visible {
	outline: 3px solid rgba(245, 130, 32, .32); outline-offset: 2px;
}
.allion-chat-launcher-icon { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #fff; color: var(--allion-orange); }

.allion-chat-panel {
	display: flex; flex-direction: column; position: absolute; right: 0; bottom: 64px; width: min(390px, calc(100vw - 28px));
	height: min(650px, calc(100vh - 110px)); overflow: hidden; border: 1px solid rgba(23, 32, 51, .12);
	border-radius: 18px; background: var(--allion-surface); box-shadow: 0 22px 65px rgba(23, 32, 51, .25);
	opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98); transform-origin: bottom right;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.allion-chat-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.allion-chat-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 13px 17px; color: #fff; background: var(--allion-ink); }
.allion-chat-title { display: block; font-size: 16px; line-height: 1.2; }
.allion-chat-status { display: block; margin-top: 3px; color: #b9f5cb; font-size: 11px; }
.allion-chat-header-actions { display: flex; align-items: center; gap: 5px; }
.allion-chat-language { width: 100px; height: 34px; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; color: #fff; background: #29344a; padding: 0 7px; font: inherit; font-size: 12px; }
.allion-chat-reset, .allion-chat-close { width: 34px; height: 34px; border: 0; border-radius: 8px; color: #fff; background: transparent; font: inherit; font-size: 20px; cursor: pointer; }
.allion-chat-reset:hover, .allion-chat-close:hover { background: rgba(255,255,255,.12); }

.allion-chat-messages { flex: 1; overflow-y: auto; padding: 18px 16px 10px; background: #f6f8fb; scroll-behavior: smooth; }
.allion-chat-message { width: fit-content; max-width: 88%; margin: 0 0 11px; padding: 11px 13px; border-radius: 14px; color: var(--allion-ink); background: #fff; box-shadow: 0 1px 2px rgba(23, 32, 51, .08); font-size: 14px; line-height: 1.52; white-space: pre-wrap; overflow-wrap: anywhere; }
.allion-chat-message-user { margin-left: auto; border-bottom-right-radius: 4px; color: #fff; background: var(--allion-orange); }
.allion-chat-message-assistant { border-bottom-left-radius: 4px; }
.allion-chat-message.is-temporary { color: var(--allion-muted); font-style: italic; }

.allion-chat-starters { display: flex; gap: 7px; overflow-x: auto; padding: 8px 14px 10px; background: #f6f8fb; scrollbar-width: thin; }
.allion-chat-starters[hidden] { display: none; }
.allion-chat-starters button { flex: 0 0 auto; max-width: 210px; border: 1px solid #f3b57c; border-radius: 999px; background: #fff7ef; color: #8b4309; padding: 8px 11px; font: inherit; font-size: 12px; line-height: 1.25; cursor: pointer; }
.allion-chat-starters button:hover { border-color: var(--allion-orange); background: #ffefe0; }

.allion-chat-turnstile { min-height: 0; padding: 0 14px; background: #fff; }
.allion-chat-turnstile iframe { max-width: 100%; }
.allion-chat-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px; padding: 11px 12px 8px; border-top: 1px solid var(--allion-line); background: #fff; }
.allion-chat-input { width: 100%; min-height: 44px; max-height: 105px; resize: vertical; border: 1px solid #cbd2dd; border-radius: 12px; padding: 11px 12px; color: var(--allion-ink); background: #fff; font: inherit; font-size: 14px; line-height: 1.4; }
.allion-chat-send { min-width: 62px; height: 44px; border: 0; border-radius: 11px; padding: 0 13px; color: #fff; background: var(--allion-orange); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.allion-chat-send:hover { background: var(--allion-orange-dark); }
.allion-chat-send:disabled { cursor: wait; opacity: .55; }

.allion-chat-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 13px 11px; color: var(--allion-muted); background: #fff; font-size: 10px; line-height: 1.3; }
.allion-chat-privacy { max-width: 68%; }
.allion-chat-contact { color: #9b4a0b; font-weight: 700; text-decoration: none; white-space: nowrap; }
.allion-chat-contact:hover { text-decoration: underline; }

@media (max-width: 600px) {
	#allion-chatbot-root { right: 12px; bottom: 12px; }
	.allion-chat-panel { position: fixed; inset: 8px 8px 74px; width: auto; height: auto; border-radius: 16px; transform-origin: bottom center; }
	.allion-chat-launcher-label { display: none; }
	.allion-chat-launcher { width: 54px; height: 54px; justify-content: center; padding: 0; }
	.allion-chat-language { width: 91px; }
}

@media (prefers-reduced-motion: reduce) {
	.allion-chat-panel, .allion-chat-launcher { transition: none; }
}
