/* AI Learning Assistant — chat widget styles */

.aila {
	--aila-primary: #4f46e5;
	--aila-link: #4338ca;
	--aila-chip-color: #4f46e5;
	--aila-bg: #ffffff;
	--aila-surface: #f4f5f7;
	--aila-text: #111827;
	--aila-muted: #6b7280;
	--aila-border: #e5e7eb;
	--aila-radius: 18px;
	--aila-shadow: 0 18px 50px rgba(17, 24, 39, 0.22);
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--aila-text);
}

.aila-dark {
	/* Lighter accent tones keep links/chips readable on dark surfaces. */
	--aila-link: #a5b4fc;
	--aila-chip-color: #a5b4fc;
	--aila-bg: #16181d;
	--aila-surface: #23262e;
	--aila-text: #f3f4f6;
	--aila-muted: #9ca3af;
	--aila-border: #32363f;
	--aila-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}

.aila-pos-bottom-right { right: 22px; bottom: 22px; }
.aila-pos-bottom-left  { left: 22px;  bottom: 22px; }

.aila *, .aila *::before, .aila *::after { box-sizing: border-box; }

/* ---------------- Launcher ---------------- */
.aila-launcher {
	width: 60px;
	height: 60px;
	border: none;
	border-radius: 50%;
	background: var(--aila-primary);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	animation: aila-pop 0.35s ease;
	position: relative;
}
.aila-launcher:hover { transform: scale(1.07); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34); }
.aila-launcher svg { width: 28px; height: 28px; transition: opacity 0.15s ease, transform 0.25s ease; position: absolute; }
.aila .aila-ic-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.aila-open .aila-ic-close { opacity: 1; transform: rotate(0) scale(1); }
.aila-open .aila-ic-chat { opacity: 0; transform: rotate(90deg) scale(0.5); }

@keyframes aila-pop {
	0% { transform: scale(0); }
	80% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

/* ---------------- Window ---------------- */
.aila-window {
	position: absolute;
	bottom: 76px;
	width: 384px;
	max-width: calc(100vw - 32px);
	height: 600px;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	background: var(--aila-bg);
	border: 1px solid var(--aila-border);
	border-radius: var(--aila-radius);
	box-shadow: var(--aila-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: aila-slide-up 0.28s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.aila-pos-bottom-right .aila-window { right: 0; }
.aila-pos-bottom-left .aila-window { left: 0; }

/* The [hidden] attribute must always win over the flex display above,
   otherwise the window can never be closed. */
.aila .aila-window[hidden] { display: none !important; }

/* ---------------- Fullscreen mode ---------------- */
.aila-full .aila-window {
	position: fixed !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	border-radius: 0 !important;
	border: none !important;
}
.aila-full .aila-msg-col { max-width: 640px; }
.aila-full .aila-launcher { display: none; }

/* Expand button icon swap */
.aila-expand svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.15s ease; }
.aila-expand { position: relative; }
.aila .aila-ic-compress { opacity: 0; }
.aila-full .aila-ic-compress { opacity: 1; }
.aila-full .aila-ic-expand { opacity: 0; }

/* Header minimize button: phones only — desktop closes via the launcher. */
.aila .aila-minimize { display: none; }

/* On small screens fullscreen is pointless — hide expand, show minimize. */
@media (max-width: 480px) {
	.aila-expand { display: none !important; }
	.aila .aila-minimize { display: flex; }
}

/* ---------------- Streaming (typewriter) caret ---------------- */
.aila-bubble.aila-streaming::after {
	content: "▍";
	display: inline-block;
	color: var(--aila-primary);
	animation: aila-blink 0.8s infinite;
	margin-left: 1px;
}

/* ---------------- Proactive teaser bubble ---------------- */
.aila-teaser {
	position: absolute;
	bottom: 76px;
	max-width: 280px;
	background: var(--aila-bg);
	color: var(--aila-text);
	border: 1px solid var(--aila-border);
	border-radius: 16px;
	box-shadow: var(--aila-shadow);
	padding: 0;
	animation: aila-slide-up 0.3s cubic-bezier(0.21, 1.02, 0.73, 1);
	z-index: 2;
}
.aila-pos-bottom-right .aila-teaser { right: 0; }
.aila-pos-bottom-left .aila-teaser { left: 0; }
.aila-teaser-msg {
	padding: 14px 18px;
	font-size: 13.5px;
	line-height: 1.5;
	cursor: pointer;
}
.aila-teaser-msg:hover { background: var(--aila-surface); border-radius: 16px; }
.aila .aila-teaser-close {
	position: absolute;
	top: -9px;
	right: -9px;
	width: 22px !important;
	height: 22px !important;
	border-radius: 50% !important;
	background: var(--aila-text) !important;
	color: var(--aila-bg) !important;
	border: none !important;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
}

/* ---------------- CSAT rating ---------------- */
.aila-csat {
	background: var(--aila-bg);
	border: 1px solid var(--aila-border);
	border-radius: 14px;
	padding: 16px;
	margin: 0 0 14px 38px;
	text-align: center;
	animation: aila-msg-in 0.22s ease;
}
.aila-csat-prompt { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.aila-csat-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; }
.aila .aila-star {
	background: transparent !important;
	border: none !important;
	font-size: 26px;
	line-height: 1;
	color: var(--aila-border);
	cursor: pointer;
	padding: 2px !important;
	transition: color 0.1s ease, transform 0.1s ease;
}
.aila .aila-star.aila-star-hot { color: #f59e0b; transform: scale(1.15); }
.aila .aila-csat-skip {
	background: transparent !important;
	border: none !important;
	color: var(--aila-muted) !important;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
	padding: 2px 6px !important;
}

/* ---------------- Inline embed ([aila_chat] shortcode) ---------------- */
.aila-inline {
	position: static;
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}
.aila-inline .aila-window {
	position: static;
	display: flex;
	width: 100%;
	max-width: none;
	height: var(--aila-embed-h, 600px);
	max-height: none;
	animation: none;
}
.aila-inline.aila-full .aila-window {
	position: fixed !important;
}

/* ---------------- TTS speaking state ---------------- */
.aila-msg-actions .aila-speaking {
	opacity: 1 !important;
	background: var(--aila-border) !important;
	border-radius: 6px;
}

@keyframes aila-slide-up {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Applied to <body> by the widget JS while the chat covers the screen:
   freezes the page behind so only the chat content scrolls. */
body.aila-scroll-lock {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 480px) {
	.aila-pos-bottom-right, .aila-pos-bottom-left { right: 12px; left: auto; bottom: 12px; }
	/* Full-screen chat on phones. The header minimize (−) button closes
	   it — the launcher underneath only ever opens it. */
	.aila-window {
		position: fixed;
		inset: 0;
		width: 100%;
		height: 100%;
		height: 100dvh;
		max-width: none;
		max-height: none;
		border-radius: 0;
		overscroll-behavior: contain;
	}
}

/* ---------------- Header ---------------- */
.aila-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: linear-gradient(135deg, var(--aila-primary), color-mix(in srgb, var(--aila-primary) 70%, #000));
	color: #fff;
	flex-shrink: 0;
}
.aila-header-avatar {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.18);
	display: flex;
	align-items: center;
	justify-content: center;
}
.aila-header-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.aila-header-avatar svg { width: 24px; height: 24px; }
.aila-online-dot {
	position: absolute;
	right: -1px;
	bottom: -1px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #fff;
}
.aila-header-text { flex: 1; min-width: 0; }
.aila-header-title { font-weight: 700; font-size: 15px; }
.aila-header-sub { font-size: 12px; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aila-btn-icon {
	border: none;
	background: transparent;
	color: inherit;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease;
	flex-shrink: 0;
}
.aila-header .aila-btn-icon:hover { background: rgba(255, 255, 255, 0.16); }
.aila-btn-icon svg { width: 18px; height: 18px; }

/* ---------------- Body ---------------- */
.aila-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	background: var(--aila-surface);
	scroll-behavior: smooth;
	/* Reaching the top/bottom of the messages must not hand the scroll
	   over to the page behind the chat (mobile scroll chaining). */
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}
.aila-body::-webkit-scrollbar { width: 6px; }
.aila-body::-webkit-scrollbar-thumb { background: var(--aila-border); border-radius: 3px; }
/* Kill the up/down scrollbar arrow buttons (Windows browsers render them
   as ugly squares on custom scrollbars). Natural scrolling only. */
.aila-body::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.aila-body { scrollbar-width: thin; scrollbar-color: var(--aila-border) transparent; }

.aila-msg {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
	animation: aila-msg-in 0.22s ease;
}
@keyframes aila-msg-in {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.aila-msg-user { flex-direction: row-reverse; }

.aila-msg-avatar {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--aila-bg);
	border: 1px solid var(--aila-border);
	color: var(--aila-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	overflow: hidden;
}
.aila-msg-avatar svg { width: 17px; height: 17px; }
.aila-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aila-msg-assistant .aila-msg-avatar { color: var(--aila-primary); }

.aila-msg-col { max-width: 78%; display: flex; flex-direction: column; }
.aila-msg-user .aila-msg-col { align-items: flex-end; }

.aila-bubble {
	padding: 10px 14px;
	border-radius: 16px;
	background: var(--aila-bg);
	border: 1px solid var(--aila-border);
	word-wrap: break-word;
	overflow-wrap: anywhere;
}
.aila-msg-assistant .aila-bubble { border-bottom-left-radius: 6px; }
.aila-msg-user .aila-bubble {
	background: var(--aila-primary);
	border-color: var(--aila-primary);
	color: #fff;
	border-bottom-right-radius: 6px;
}
.aila-bubble ul { margin: 6px 0; padding-left: 18px; }
.aila-bubble li { margin: 2px 0; }
.aila-bubble a { color: var(--aila-link); text-decoration: underline; }
.aila-bubble a:hover { color: var(--aila-link); opacity: 0.8; }
.aila-msg-user .aila-bubble a { color: #fff; }

.aila-msg-meta { font-size: 10.5px; color: var(--aila-muted); margin-top: 4px; padding: 0 4px; }

.aila-sources {
	font-size: 11.5px;
	color: var(--aila-muted);
	margin-top: 6px;
	padding: 0 4px;
}
.aila-sources a { color: var(--aila-link); text-decoration: none; }
.aila-sources a:hover { text-decoration: underline; color: var(--aila-link); }

.aila-msg-actions { display: flex; gap: 2px; margin-top: 5px; }
.aila-msg-actions button {
	border: none;
	background: transparent;
	cursor: pointer;
	width: 26px;
	height: 26px;
	padding: 0;
	border-radius: 7px;
	color: var(--aila-muted);
	opacity: 0.7;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.aila-msg-actions button svg { width: 14px; height: 14px; }
.aila-msg-actions button:hover:not(:disabled) {
	opacity: 1;
	background: var(--aila-surface);
	color: var(--aila-text);
}
.aila-msg-actions button:disabled { cursor: default; opacity: 0.35; }
.aila-msg-actions .aila-fb-active {
	opacity: 1 !important;
	color: #059669;
	background: rgba(5, 150, 105, 0.12);
}
.aila-msg-actions .aila-fb-down.aila-fb-active {
	color: #dc2626;
	background: rgba(220, 38, 38, 0.12);
}

/* Ownership label: AI Assistant vs Support Agent */
.aila-msg-who {
	font-size: 10.5px;
	font-weight: 700;
	color: var(--aila-muted);
	margin: 0 4px 3px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.aila-who-agent { color: #059669; }
.aila-msg-agent .aila-msg-avatar { color: #059669; }
.aila-msg-agent .aila-bubble { border-color: rgba(5, 150, 105, 0.35); }

/* System notices (agent joined / AI resumed) */
.aila-system-msg {
	text-align: center;
	font-size: 11.5px;
	color: var(--aila-muted);
	background: var(--aila-bg);
	border: 1px dashed var(--aila-border);
	border-radius: 999px;
	padding: 6px 16px;
	margin: 4px auto 14px;
	max-width: 85%;
	width: fit-content;
	animation: aila-msg-in 0.22s ease;
}

/* Typing indicator */
.aila-typing .aila-bubble { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.aila-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--aila-muted);
	animation: aila-bounce 1.2s infinite;
}
.aila-dot:nth-child(2) { animation-delay: 0.15s; }
.aila-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes aila-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------------- Suggestions (collapsible) ---------------- */
.aila-sugg-area {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 14px;
	background: var(--aila-surface);
	border-top: 1px solid var(--aila-border);
	flex-shrink: 0;
}
.aila-sugg-area.aila-sugg-collapsed { padding: 5px 14px; }
.aila-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
}
.aila-sugg-toggle {
	border: 1px solid var(--aila-border);
	background: var(--aila-bg);
	color: var(--aila-muted);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 15px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	transition: color 0.15s ease, border-color 0.15s ease;
}
.aila-sugg-toggle:hover { color: var(--aila-chip-color); border-color: var(--aila-chip-color); }
.aila-chip {
	border: 1px solid var(--aila-chip-color);
	background: transparent;
	color: var(--aila-chip-color);
	font-size: 12.5px;
	padding: 6px 12px;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	font-family: inherit;
}
.aila-chip:hover { background: var(--aila-primary); color: #fff; }
.aila-chip-primary { background: var(--aila-primary); color: #fff; }

/* ---------------- Push-to-talk recording indicator ---------------- */
.aila-recording {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 16px;
	background: var(--aila-bg);
	border-top: 1px solid var(--aila-border);
	font-size: 12.5px;
	color: #ef4444;
	font-weight: 600;
	flex-shrink: 0;
}
.aila-recording[hidden] { display: none; }
.aila-rec-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #ef4444;
	animation: aila-blink 1s infinite;
}
@keyframes aila-blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.25; }
}
.aila-wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-left: auto; }
.aila-wave i {
	width: 3px;
	height: 6px;
	border-radius: 2px;
	background: #ef4444;
	animation: aila-wave-bounce 0.9s infinite ease-in-out;
}
.aila-wave i:nth-child(2) { animation-delay: 0.15s; }
.aila-wave i:nth-child(3) { animation-delay: 0.3s; }
.aila-wave i:nth-child(4) { animation-delay: 0.45s; }
.aila-wave i:nth-child(5) { animation-delay: 0.6s; }
@keyframes aila-wave-bounce {
	0%, 100% { height: 5px; }
	50% { height: 16px; }
}

/* ---------------- Inline forms ---------------- */
.aila-inline-form {
	background: var(--aila-bg);
	border: 1px dashed var(--aila-border);
	border-radius: 14px;
	padding: 12px;
	margin: 0 0 14px 38px;
	animation: aila-msg-in 0.22s ease;
}
.aila-inline-prompt { font-size: 13px; margin-bottom: 8px; color: var(--aila-muted); }
.aila-inline-form input {
	width: 100%;
	margin-bottom: 8px;
	padding: 8px 10px;
	border: 1px solid var(--aila-border);
	border-radius: 9px;
	background: var(--aila-surface);
	color: var(--aila-text);
	font-size: 13.5px;
	font-family: inherit;
}
.aila-inline-form input:focus { outline: 2px solid var(--aila-primary); outline-offset: 1px; border-color: transparent; }
.aila-inline-row { display: flex; gap: 8px; }
.aila-inline-error { color: #dc2626; font-size: 12.5px; margin-top: 8px; line-height: 1.4; }
.aila-inline-form input:disabled, .aila-inline-form button:disabled { opacity: 0.55; cursor: default; }

/* ---------------- Composer ---------------- */
.aila-composer {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	background: var(--aila-bg);
	border-top: 1px solid var(--aila-border);
	flex-shrink: 0;
}
.aila-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.aila-input {
	flex: 1;
	resize: none;
	border: 1px solid var(--aila-border);
	border-radius: 12px;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 14px;
	background: var(--aila-surface);
	color: var(--aila-text);
	max-height: 120px;
	min-height: 38px;
}
.aila-input:focus { outline: 2px solid var(--aila-primary); outline-offset: 1px; border-color: transparent; }
/* No visible scrollbar in the input — it still scrolls past max height. */
.aila-input { scrollbar-width: none; -ms-overflow-style: none; }
.aila-input::-webkit-scrollbar { display: none; width: 0; height: 0; }

.aila-composer .aila-btn-icon { color: var(--aila-muted); width: 38px; height: 38px; }
.aila-composer .aila-btn-icon:hover { background: var(--aila-surface); color: var(--aila-primary); }
.aila-mic-on { color: #ef4444 !important; animation: aila-pulse 1.2s infinite; }
@keyframes aila-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.12); }
}

.aila-send {
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 11px;
	background: var(--aila-primary);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.12s ease, filter 0.12s ease;
	flex-shrink: 0;
}
.aila-send:hover { filter: brightness(1.1); transform: translateY(-1px); }
.aila-send svg { width: 18px; height: 18px; }

.aila-consent {
	font-size: 10.5px;
	color: var(--aila-muted);
	text-align: center;
	padding: 0 12px 8px;
	background: var(--aila-bg);
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.aila *, .aila { animation: none !important; transition: none !important; }
}

/* ----------------------------------------------------------------------
   Theme-conflict hardening: WordPress themes ship aggressive global
   button/input/textarea styles. Re-assert the widget's critical visuals
   with !important so the widget looks identical on every theme.
---------------------------------------------------------------------- */
.aila button {
	-webkit-appearance: none !important;
	appearance: none !important;
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
	margin: 0 !important;
	font-family: inherit !important;
	min-height: 0 !important;
	min-width: 0 !important;
}
.aila button svg { display: inline-block !important; visibility: visible !important; }

.aila .aila-launcher {
	background: var(--aila-primary) !important;
	color: #fff !important;
	border: none !important;
	padding: 0 !important;
	border-radius: 50% !important;
	width: 60px !important;
	height: 60px !important;
}
.aila .aila-btn-icon {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	border-radius: 8px !important;
}
.aila .aila-header { color: #fff !important; }
.aila .aila-header .aila-btn-icon { color: #fff !important; }
.aila .aila-header .aila-btn-icon:hover { background: rgba(255, 255, 255, 0.16) !important; }
.aila .aila-header-title, .aila .aila-header-sub { color: #fff !important; }
.aila .aila-composer .aila-btn-icon { color: var(--aila-muted) !important; }
.aila .aila-composer .aila-btn-icon:hover { background: var(--aila-surface) !important; color: var(--aila-primary) !important; }
.aila .aila-mic-on { color: #ef4444 !important; }
.aila .aila-send {
	background: var(--aila-primary) !important;
	color: #fff !important;
	border: none !important;
	padding: 0 !important;
	width: 38px !important;
	height: 38px !important;
	border-radius: 11px !important;
}
.aila .aila-chip {
	background: transparent !important;
	color: var(--aila-chip-color) !important;
	border: 1px solid var(--aila-chip-color) !important;
	padding: 6px 12px !important;
	border-radius: 999px !important;
	font-size: 12.5px !important;
}
.aila .aila-chip:hover, .aila .aila-chip-primary {
	background: var(--aila-primary) !important;
	color: #fff !important;
}
.aila .aila-sugg-toggle {
	background: var(--aila-bg) !important;
	color: var(--aila-muted) !important;
	border: 1px solid var(--aila-border) !important;
	padding: 0 !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 50% !important;
}
.aila .aila-sugg-toggle:hover {
	color: var(--aila-chip-color) !important;
	border-color: var(--aila-chip-color) !important;
}
.aila .aila-msg-actions button {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	width: 26px !important;
	height: 26px !important;
	border-radius: 7px !important;
}
.aila .aila-msg-actions button:hover:not(:disabled) { background: var(--aila-surface) !important; }
.aila .aila-msg-actions .aila-fb-active { background: rgba(5, 150, 105, 0.12) !important; color: #059669 !important; }
.aila .aila-msg-actions .aila-fb-down.aila-fb-active { background: rgba(220, 38, 38, 0.12) !important; color: #dc2626 !important; }
.aila .aila-msg-actions .aila-speaking { background: var(--aila-border) !important; color: var(--aila-chip-color) !important; }
.aila .aila-input {
	background: var(--aila-surface) !important;
	color: var(--aila-text) !important;
	border: 1px solid var(--aila-border) !important;
	border-radius: 12px !important;
	padding: 9px 12px !important;
	margin: 0 !important;
	box-shadow: none !important;
	width: auto !important;
}
.aila .aila-inline-form input {
	background: var(--aila-surface) !important;
	color: var(--aila-text) !important;
	border: 1px solid var(--aila-border) !important;
	border-radius: 9px !important;
	width: 100% !important;
	margin: 0 0 8px !important;
	padding: 8px 10px !important;
	box-shadow: none !important;
}
.aila .aila-bubble { font-size: 14.5px !important; line-height: 1.5 !important; }
.aila .aila-bubble p { margin: 0 0 8px !important; }
.aila .aila-bubble p:last-child { margin-bottom: 0 !important; }
