/* ==========================================================================
   Local Self-Hosted Font: Plus Jakarta Sans (Zero API latency & GDPR Compliant)
   ========================================================================== */
@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Plus Jakarta Sans';
	font-style: normal;
	font-weight: 400 800;
	font-display: swap;
	src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

.ai-support-assistant-wrapper {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 999999;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 13.5px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	box-sizing: border-box;
	pointer-events: none;
}

.ai-support-assistant-wrapper * {
	box-sizing: border-box;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ai-support-assistant-bubble,
.ai-support-assistant-box {
	pointer-events: auto;
}

/* ==========================================================================
   1. Floating Launcher Bubble
   ========================================================================== */
.ai-support-assistant-bubble {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #4f46e5 100%);
	color: #ffffff;
	box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.45), 0 4px 12px rgba(124, 58, 237, 0.3);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	margin-left: auto;
}

/* Pulsing outer ring animation */
.ai-support-assistant-launcher-ping {
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	border-radius: 50%;
	border: 2px solid rgba(99, 102, 241, 0.6);
	animation: wpRagPulseRing 2.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
	pointer-events: none;
}

@keyframes wpRagPulseRing {
	0% {
		transform: scale(0.95);
		opacity: 0.8;
	}

	50% {
		transform: scale(1.25);
		opacity: 0;
	}

	100% {
		transform: scale(0.95);
		opacity: 0;
	}
}

.ai-support-assistant-bubble:hover {
	transform: scale(1.08) translateY(-2px);
	box-shadow: 0 12px 30px -4px rgba(99, 102, 241, 0.55), 0 6px 16px rgba(124, 58, 237, 0.4);
}

.ai-support-assistant-bubble.active {
	transform: scale(0.95);
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.ai-support-assistant-launcher-icon {
	color: #ffffff;
	transition: transform 0.25s ease;
}

.ai-support-assistant-bubble:hover .ai-support-assistant-launcher-icon {
	transform: scale(1.1);
}

/* ==========================================================================
   2. Chat Panel Box
   ========================================================================== */
.ai-support-assistant-box {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 450px;
	height: 600px;
	min-width: 280px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 40px);
	background: #ffffff;
	border: 1.5px solid #818cf8;
	border-radius: 16px;
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25), 0 24px 50px -10px rgba(15, 23, 42, 0.22), 0 12px 28px -4px rgba(99, 102, 241, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
	display: none;
	flex-direction: column;
	overflow: hidden;
	animation: wpRagWidgetSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	transform-origin: bottom right;
	font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-size: 13.5px !important;
	line-height: 1.55 !important;
}

@keyframes wpRagWidgetSlideIn {
	from {
		transform: scale(0.88) translateY(24px);
		opacity: 0;
	}

	to {
		transform: scale(1) translateY(0);
		opacity: 1;
	}
}

/* ==========================================================================
   3. Header Section (Plugin Branding Gradient)
   ========================================================================== */
.ai-support-assistant-header {
	padding: 14px 18px;
	background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #4f46e5 100%);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	box-shadow: 0 2px 10px rgba(79, 70, 229, 0.18);
}

.ai-support-assistant-header-identity {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ai-support-assistant-header-brand-icon {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	border: 1px solid #ffffff;
	background: rgba(255, 255, 255, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
	box-sizing: border-box;
}

.ai-support-assistant-header-brand-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

.ai-support-assistant-header-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.ai-support-assistant-header-title {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	color: #ffffff !important;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ai-support-assistant-header-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
	line-height: 1;
	margin-top: 3px;
}

.ai-support-assistant-status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #10b981;
	box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
	display: inline-block;
}

.ai-support-assistant-header-controls {
	display: flex;
	gap: 4px;
}

.ai-support-assistant-header-controls button {
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: #ffffff;
	cursor: pointer;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.ai-support-assistant-header-controls button:hover {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.28);
	transform: translateY(-1px);
}

/* ==========================================================================
   4. Chat Thread & Messages
   ========================================================================== */
.ai-support-assistant-body {
	flex-grow: 1;
	min-height: 0;
	padding: 18px 16px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Custom Scrollbar */
.ai-support-assistant-body::-webkit-scrollbar {
	width: 5px;
}

.ai-support-assistant-body::-webkit-scrollbar-track {
	background: transparent;
}

.ai-support-assistant-body::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, 0.3);
	border-radius: 10px;
}

/* ==========================================================================
   4b. Center AI Chat Animation
   ========================================================================== */
.ai-support-assistant-center-animation {
	margin: auto 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px 0;
	pointer-events: none;
	user-select: none;
	animation: aiCenterFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aiCenterFadeIn {
	from {
		opacity: 0;
		transform: scale(0.92) translateY(6px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.ai-support-assistant-chat-anim-wrap {
	position: relative;
	width: 84px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	animation: aiChatFloat 3.2s ease-in-out infinite alternate;
}

@keyframes aiChatFloat {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-6px);
	}
}

/* User query bubble (Back) */
.ai-support-assistant-bubble-back {
	position: absolute;
	left: 4px;
	top: 2px;
	width: 48px;
	height: 32px;
	border-radius: 12px 12px 3px 12px;
	background: #e2e8f0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 10px;
	gap: 4px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.ai-support-assistant-bubble-back .bubble-line {
	height: 3px;
	border-radius: 2px;
	background: #94a3b8;
	display: block;
}

.ai-support-assistant-bubble-back .line-1 {
	width: 26px;
}

.ai-support-assistant-bubble-back .line-2 {
	width: 15px;
}

/* AI response bubble with typing dots (Front) */
.ai-support-assistant-bubble-front {
	position: absolute;
	right: 4px;
	bottom: 2px;
	width: 52px;
	height: 34px;
	border-radius: 12px 12px 12px 3px;
	background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-shadow: 0 8px 18px -2px rgba(99, 102, 241, 0.42);
	z-index: 2;
}

.ai-chat-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #ffffff;
	display: inline-block;
	animation: aiChatDotBounce 1.4s infinite ease-in-out both;
}

.ai-chat-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.ai-chat-dot:nth-child(2) {
	animation-delay: -0.16s;
}

.ai-chat-dot:nth-child(3) {
	animation-delay: 0s;
}

@keyframes aiChatDotBounce {
	0%, 80%, 100% {
		transform: scale(0.65);
		opacity: 0.45;
	}
	40% {
		transform: scale(1.15) translateY(-2px);
		opacity: 1;
	}
}

.ai-support-assistant-chat-sparkle {
	position: absolute;
	pointer-events: none;
}

.ai-support-assistant-chat-sparkle.sparkle-tl {
	top: -6px;
	left: -8px;
	animation: aiSparkleFloat 2.6s ease-in-out infinite;
}

.ai-support-assistant-chat-sparkle.sparkle-br {
	top: 4px;
	right: -12px;
	animation: aiSparkleFloat 2.6s ease-in-out infinite 1.3s;
}

@keyframes aiSparkleFloat {
	0%, 100% {
		transform: scale(0.75) rotate(0deg);
		opacity: 0.35;
	}
	50% {
		transform: scale(1.15) rotate(15deg);
		opacity: 0.95;
		filter: drop-shadow(0 0 3px rgba(99, 102, 241, 0.45));
	}
}

.ai-support-assistant-chat-hint {
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	letter-spacing: -0.01em;
	text-align: center;
}

.ai-support-assistant-msg {
	display: flex;
	width: 100%;
	margin: 0;
	padding: 0;
	animation: wpRagMsgFade 0.28s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box !important;
}

@keyframes wpRagMsgFade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ai-support-assistant-msg-user {
	justify-content: flex-end;
}

.ai-support-assistant-msg-bot {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
}

.ai-support-assistant-msg-avatar {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	background: #6366f1;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 2px;
}

.ai-support-assistant-msg-avatar svg {
	width: 13px;
	height: 13px;
	display: block;
}

.ai-support-assistant-msg-content-wrapper {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.ai-support-assistant-msg-content {
	font-size: 13.5px;
	line-height: 1.55;
	position: relative;
	word-break: break-word;
	overflow-wrap: break-word;
	box-sizing: border-box !important;
}

.ai-support-assistant-msg-user .ai-support-assistant-msg-content {
	background: #ede9fe;
	color: #3730a3;
	border-radius: 14px 14px 4px 14px;
	padding: 10px 15px;
	max-width: 82%;
	font-weight: 450;
	box-shadow: none;
}

.ai-support-assistant-msg-bot .ai-support-assistant-msg-content {
	width: fit-content;
	max-width: 100%;
	background-color: #f3f4f6;
	color: #111827;
	border-radius: 14px 14px 14px 4px;
	border: none;
	box-shadow: none;
	padding: 11px 15px;
}

.ai-support-assistant-streaming-cursor {
	display: inline-block;
	width: 2.5px;
	height: 14px;
	background: #6366f1;
	margin-left: 3px;
	vertical-align: -1.5px;
	border-radius: 1px;
	animation: aiStreamingCursorBlink 0.75s infinite ease-in-out;
}

@keyframes aiStreamingCursorBlink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* Meta line below bot bubble: Thumbs, Copy & Timestamp */
.ai-support-assistant-msg-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 5px;
	padding-left: 2px;
}

.ai-support-assistant-meta-btn {
	background: transparent;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 3px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.15s ease;
	line-height: 1;
}

.ai-support-assistant-meta-btn:hover {
	color: #4b5563;
	background: #f3f4f6;
}

.ai-support-assistant-meta-btn.active {
	color: #6366f1;
}

.ai-support-assistant-msg-time {
	font-size: 11px;
	color: #9ca3af;
	margin-left: 4px;
	font-weight: 400;
	letter-spacing: 0.1px;
}

/* Message Body & Typography Resets */
.ai-support-assistant-msg-body {
	font-size: 13.5px;
	line-height: 1.6;
	color: inherit;
}

.ai-support-assistant-msg-body p,
.ai-support-assistant-msg-paragraph {
	margin: 0 0 8px 0 !important;
	line-height: 1.6 !important;
	color: inherit !important;
	font-size: 13.5px !important;
}

.ai-support-assistant-msg-body p:last-child,
.ai-support-assistant-msg-paragraph:last-child {
	margin-bottom: 0 !important;
}

.ai-support-assistant-msg-heading {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 10px 0 6px 0 !important;
	line-height: 1.35 !important;
}

.ai-support-assistant-msg-list {
	margin: 6px 0 8px 18px !important;
	padding: 0 !important;
	list-style-type: disc !important;
}

ol.ai-support-assistant-msg-list {
	list-style-type: decimal !important;
}

.ai-support-assistant-msg-list li {
	margin-bottom: 4px !important;
	line-height: 1.55 !important;
	color: inherit !important;
	padding-left: 2px !important;
	font-size: 13px !important;
}

.ai-support-assistant-msg-list li:last-child {
	margin-bottom: 0 !important;
}

.ai-support-assistant-msg-list li strong {
	color: #0f172a !important;
	font-weight: 700 !important;
}

.ai-support-assistant-msg-link {
	color: #4f46e5 !important;
	text-decoration: underline !important;
	font-weight: 600 !important;
	word-break: break-all;
	transition: color 0.15s ease;
}

.ai-support-assistant-msg-link:hover {
	color: #4338ca !important;
}

.ai-support-assistant-msg-quote {
	margin: 8px 0 !important;
	padding: 6px 10px !important;
	border-left: 3px solid #6366f1 !important;
	background: rgba(99, 102, 241, 0.05) !important;
	border-radius: 0 6px 6px 0 !important;
	font-style: italic !important;
	color: #475569 !important;
	font-size: 13px !important;
}

.ai-support-assistant-msg-divider {
	border: 0 !important;
	height: 1px !important;
	background: rgba(226, 232, 240, 0.8) !important;
	margin: 10px 0 !important;
}

.ai-support-assistant-inline-code {
	font-family: 'Fira Code', Consolas, Monaco, monospace !important;
	font-size: 12px !important;
	background: rgba(99, 102, 241, 0.08) !important;
	color: #4f46e5 !important;
	padding: 2px 6px !important;
	border-radius: 4px !important;
}

/* Quick Prompt Suggestions */
.ai-support-assistant-quick-prompts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.ai-support-assistant-chip {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #334155;
	padding: 7px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-family: inherit;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ai-support-assistant-chip-icon {
	font-size: 12px;
	line-height: 1;
}

.ai-support-assistant-chip:hover {
	background: #f5f3ff;
	color: #4f46e5;
	border-color: #c7d2fe;
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(99, 102, 241, 0.15);
}

/* Code Blocks inside messages */
.ai-support-assistant-code-block {
	margin: 10px 0;
	border-radius: 8px;
	overflow: hidden;
	background: #0f172a;
	border: 1px solid #1e293b;
}

.ai-support-assistant-code-header {
	background: #1e293b;
	padding: 4px 10px;
	font-size: 11px;
	color: #94a3b8;
	font-family: 'Fira Code', Consolas, Monaco, monospace;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ai-support-assistant-msg-content pre {
	background: #0f172a;
	color: #f8fafc;
	padding: 10px 12px;
	overflow-x: auto;
	margin: 0;
	font-family: 'Fira Code', Consolas, Monaco, monospace;
	font-size: 12px;
	line-height: 1.5;
}

.ai-support-assistant-msg-content code {
	font-family: 'Fira Code', Consolas, Monaco, monospace;
	font-size: 12px;
}

.ai-support-assistant-msg-user code {
	background: rgba(255, 255, 255, 0.2);
}

/* Responsive Markdown Tables */
.ai-support-assistant-table-wrapper {
	overflow-x: auto;
	margin: 10px 0;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ai-support-assistant-table {
	width: 100% !important;
	border-collapse: collapse !important;
	font-size: 12px !important;
	text-align: left !important;
	margin: 0 !important;
}

.ai-support-assistant-table th {
	background: #f1f5f9 !important;
	color: #1e293b !important;
	font-weight: 700 !important;
	padding: 6px 10px !important;
	border-bottom: 1px solid #cbd5e1 !important;
	white-space: nowrap;
}

.ai-support-assistant-table td {
	padding: 6px 10px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	color: #334155 !important;
}

.ai-support-assistant-table tr:last-child td {
	border-bottom: none !important;
}

.ai-support-assistant-table tr:nth-child(even) td {
	background: #f8fafc;
}

/* Citation Sources */
.ai-support-assistant-citations {
	margin-top: 10px;
	padding: 8px 10px;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.ai-support-assistant-citations-header {
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	color: #475569;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
}

.ai-support-assistant-citations-header svg {
	color: #6366f1;
}

.ai-support-assistant-citations-list {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.ai-support-assistant-citation-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	color: #334155;
	padding: 3px 8px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	max-width: 100%;
	word-break: break-all;
}

.ai-support-assistant-citation-pill svg {
	color: #6366f1;
	flex-shrink: 0;
}

.ai-support-assistant-citation-page {
	color: #64748b;
	font-size: 10px;
	padding-left: 2px;
	border-left: 1px solid #e2e8f0;
	margin-left: 2px;
}

/* Card Action Footer */
.ai-support-assistant-msg-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-top: 6px;
	padding-top: 4px;
}

.ai-support-assistant-copy-btn {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	padding: 3px 6px;
	font-size: 11px;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: all 0.15s ease;
	border-radius: 4px;
	font-family: inherit;
	line-height: 1;
}

.ai-support-assistant-copy-btn:hover {
	color: #4f46e5;
	background: rgba(99, 102, 241, 0.08);
}

.ai-support-assistant-typing-card {
	flex: 0 0 auto !important;
	width: auto !important;
	max-width: fit-content !important;
	padding: 10px 14px !important;
}

/* Typing Indicator */
.ai-support-assistant-typing {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 4px 2px;
}

.ai-support-assistant-typing-dot {
	width: 6px;
	height: 6px;
	background-color: #6366f1;
	border-radius: 50%;
	animation: wpRagBounce 1.4s infinite ease-in-out both;
}

.ai-support-assistant-typing-dot:nth-child(1) {
	animation-delay: -0.32s;
}

.ai-support-assistant-typing-dot:nth-child(2) {
	animation-delay: -0.16s;
}

@keyframes wpRagBounce {

	0%,
	80%,
	100% {
		transform: scale(0.3);
		opacity: 0.5;
	}

	40% {
		transform: scale(1.1);
		opacity: 1;
	}
}

/* ==========================================================================
   5. Footer & Input Area
   ========================================================================== */
.ai-support-assistant-footer {
	padding: 12px 16px 12px 16px;
	background: #ffffff;
	border-top: 1px solid #f3f4f6;
}

.ai-support-assistant-input-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 7px 10px 7px 14px;
	min-height: 48px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-support-assistant-input-wrapper:hover {
	border-color: #cbd5e1;
}

.ai-support-assistant-input-wrapper:focus-within {
	border-color: #6366f1;
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.ai-support-assistant-footer textarea {
	flex-grow: 1;
	border: none;
	background: transparent;
	font-size: 13.5px;
	font-family: inherit;
	color: #111827;
	resize: none;
	outline: none;
	max-height: 90px;
	min-height: 24px;
	height: 24px;
	line-height: 24px;
	overflow-y: hidden;
	padding: 0;
	margin: 0;
	display: block;
	box-sizing: border-box;
}

.ai-support-assistant-footer textarea::placeholder {
	color: #9ca3af;
	line-height: 24px;
}

.ai-support-assistant-footer button#ai-support-assistant-submit-btn {
	background: #f3f4f6;
	color: #9ca3af;
	border: none;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	flex-shrink: 0;
	padding: 0;
}

.ai-support-assistant-footer button#ai-support-assistant-submit-btn.active {
	background: #6366f1;
	color: #ffffff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35);
}

.ai-support-assistant-footer button#ai-support-assistant-submit-btn.active:hover {
	background: #4f46e5;
	transform: scale(1.05);
}

.ai-support-assistant-footer button#ai-support-assistant-submit-btn:active {
	transform: scale(0.95);
}

.ai-support-assistant-send-icon {
	transition: transform 0.2s ease;
}

.ai-support-assistant-footer button#ai-support-assistant-submit-btn.active:hover .ai-support-assistant-send-icon {
	transform: translateY(-1px);
}

.ai-support-assistant-disclaimer {
	text-align: center;
	font-size: 11px;
	color: #9ca3af;
	margin-top: 8px;
	font-weight: 400;
	letter-spacing: -0.01em;
}

.ai-support-assistant-branding {
	text-align: center;
	font-size: 10.5px;
	color: #9ca3af;
	margin-top: 5px;
	font-weight: 500;
}

.ai-support-assistant-branding strong {
	color: #6366f1;
	font-weight: 600;
}

/* ==========================================================================
   6. Theme Presets (Dark Mode & Glassmorphism)
   ========================================================================== */

/* Dark Mode */
.ai-support-assistant-theme-dark .ai-support-assistant-box {
	background-color: #0f172a;
	border: 1.5px solid #6366f1;
	color: #f8fafc;
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.35), 0 20px 48px -10px rgba(0, 0, 0, 0.5);
}

.ai-support-assistant-theme-dark .ai-support-assistant-header {
	background: #0f172a;
	border-bottom-color: #1e293b;
	color: #f8fafc;
}

.ai-support-assistant-theme-dark .ai-support-assistant-header-title {
	color: #f8fafc !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-header-brand-icon {
	color: #f8fafc;
}

.ai-support-assistant-theme-dark .ai-support-assistant-header-controls button {
	color: #94a3b8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-header-controls button:hover {
	color: #ffffff;
	background: #1e293b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-body {
	background-color: #0f172a;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-user .ai-support-assistant-msg-content {
	background: #312e81;
	color: #e0e7ff;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-bot .ai-support-assistant-msg-content {
	background-color: #1e293b;
	color: #f8fafc;
	border: none;
	box-shadow: none;
}

.ai-support-assistant-theme-dark .ai-support-assistant-meta-btn {
	color: #64748b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-meta-btn:hover {
	color: #cbd5e1;
	background: #1e293b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-meta-btn.active {
	color: #818cf8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-time {
	color: #64748b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-chip {
	background: #1e293b;
	border-color: #334155;
	color: #cbd5e1;
}

.ai-support-assistant-theme-dark .ai-support-assistant-chip:hover {
	background: #6366f1;
	color: #ffffff;
	border-color: #6366f1;
}

.ai-support-assistant-theme-dark .ai-support-assistant-footer {
	background-color: #0f172a;
	border-top-color: #1e293b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-input-wrapper {
	background-color: #1e293b;
	border-color: #334155;
}

.ai-support-assistant-theme-dark .ai-support-assistant-input-wrapper:focus-within {
	background-color: #1e293b;
	border-color: #6366f1;
}

.ai-support-assistant-theme-dark .ai-support-assistant-footer textarea {
	color: #f8fafc;
}

.ai-support-assistant-theme-dark .ai-support-assistant-footer button#ai-support-assistant-submit-btn {
	background: #334155;
	color: #94a3b8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-footer button#ai-support-assistant-submit-btn.active {
	background: #6366f1;
	color: #ffffff;
}

.ai-support-assistant-theme-dark .ai-support-assistant-disclaimer {
	color: #64748b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-avatar {
	background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-heading {
	color: #f1f5f9 !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-link {
	color: #818cf8 !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-msg-quote {
	background: rgba(99, 102, 241, 0.12) !important;
	color: #cbd5e1 !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-table-wrapper {
	border-color: #334155;
}

.ai-support-assistant-theme-dark .ai-support-assistant-table th {
	background: #1e293b !important;
	color: #f1f5f9 !important;
	border-bottom-color: #334155 !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-table td {
	border-bottom-color: #1e293b !important;
	color: #cbd5e1 !important;
}

.ai-support-assistant-theme-dark .ai-support-assistant-table tr:nth-child(even) td {
	background: #0f172a;
}

.ai-support-assistant-theme-dark .ai-support-assistant-citations {
	background-color: #0f172a;
	border-color: #334155;
}

.ai-support-assistant-theme-dark .ai-support-assistant-citations-header {
	color: #94a3b8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-citation-pill {
	background: #1e293b;
	border-color: #334155;
	color: #cbd5e1;
}

.ai-support-assistant-theme-dark .ai-support-assistant-citation-page {
	border-left-color: #334155;
	color: #94a3b8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-bubble-back {
	background: #334155;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.ai-support-assistant-theme-dark .ai-support-assistant-bubble-back .bubble-line {
	background: #64748b;
}

.ai-support-assistant-theme-dark .ai-support-assistant-streaming-cursor {
	background: #818cf8;
}

.ai-support-assistant-theme-dark .ai-support-assistant-chat-hint {
	color: #94a3b8;
}

/* Glassmorphism Preset */
.ai-support-assistant-theme-glass .ai-support-assistant-box {
	background: rgba(255, 255, 255, 0.75);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1.5px solid rgba(99, 102, 241, 0.45);
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 20px 48px rgba(31, 38, 135, 0.18);
}

.ai-support-assistant-theme-glass .ai-support-assistant-header {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.92) 0%, rgba(139, 92, 246, 0.92) 50%, rgba(79, 70, 229, 0.92) 100%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ai-support-assistant-theme-glass .ai-support-assistant-body {
	background: transparent;
}

.ai-support-assistant-theme-glass .ai-support-assistant-msg-user .ai-support-assistant-msg-content {
	background: #ede9fe;
	color: #3730a3;
	border: 1px solid #ddd6fe;
	box-shadow: 0 1px 4px rgba(99, 102, 241, 0.08);
}

.ai-support-assistant-theme-glass .ai-support-assistant-msg-bot .ai-support-assistant-msg-content {
	background: #f1f5f9;
	color: #111827;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.ai-support-assistant-theme-glass .ai-support-assistant-msg-avatar {
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(79, 70, 229, 0.95) 100%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}

.ai-support-assistant-theme-glass .ai-support-assistant-footer {
	background: rgba(255, 255, 255, 0.5);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-support-assistant-theme-glass .ai-support-assistant-input-wrapper {
	background: rgba(255, 255, 255, 0.7);
	border-color: rgba(0, 0, 0, 0.1);
}

.ai-support-assistant-theme-glass .ai-support-assistant-bubble-back {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(99, 102, 241, 0.18);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ai-support-assistant-theme-glass .ai-support-assistant-bubble-back .bubble-line {
	background: #94a3b8;
}

.ai-support-assistant-theme-glass .ai-support-assistant-chat-hint {
	color: #475569;
}

/* ==========================================================================
   7. Responsive Mobile Support
   ========================================================================== */
@media (max-width: 480px) {
	.ai-support-assistant-wrapper {
		bottom: 16px !important;
		right: 16px !important;
	}

	.ai-support-assistant-box {
		width: calc(100vw - 32px) !important;
		height: calc(100vh - 32px) !important;
		max-width: 100vw !important;
		bottom: 0 !important;
		border-radius: 16px !important;
	}
}