/* Vikre AI Chat — scoped under #vikre-ai-root so Storefront can't bleed in. */

#vikre-ai-root {
	--vikre-ai-accent: #2f6f4e;
	--vikre-ai-radius: 14px;
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.5;
}

#vikre-ai-root * { box-sizing: border-box; }

.vikre-ai-launcher {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--vikre-ai-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22);
	transition: transform .15s ease, box-shadow .15s ease;
}

.vikre-ai-launcher:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.vikre-ai-launcher:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
#vikre-ai-root.is-open .vikre-ai-launcher { display: none; }

.vikre-ai-panel {
	display: flex;
	flex-direction: column;
	width: min(390px, calc(100vw - 32px));
	height: min(600px, calc(100vh - 96px));
	background: #fff;
	border-radius: var(--vikre-ai-radius);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
	overflow: hidden;
}

.vikre-ai-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--vikre-ai-accent);
	color: #fff;
}

.vikre-ai-header strong { display: block; font-size: 16px; }
.vikre-ai-sub { display: block; font-size: 12.5px; opacity: .85; }

.vikre-ai-close {
	background: none;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.vikre-ai-close:focus-visible { outline: 2px solid #fff; }

.vikre-ai-log {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f7f5;
}

.vikre-ai-msg {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 12px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.vikre-ai-user {
	align-self: flex-end;
	background: var(--vikre-ai-accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}

.vikre-ai-bot {
	align-self: flex-start;
	background: #fff;
	color: #1d1d1b;
	border: 1px solid #e3e3df;
	border-bottom-left-radius: 4px;
}

.vikre-ai-bot a { color: var(--vikre-ai-accent); }

.vikre-ai-cta {
	display: inline-block;
	padding: 9px 15px;
	background: var(--vikre-ai-accent);
	color: #fff !important;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
}

.vikre-ai-dots { display: inline-flex; gap: 4px; padding: 3px 0; }
.vikre-ai-dots i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #b3b3ad;
	animation: vikre-ai-bounce 1.2s infinite ease-in-out;
}
.vikre-ai-dots i:nth-child(2) { animation-delay: .15s; }
.vikre-ai-dots i:nth-child(3) { animation-delay: .3s; }

@keyframes vikre-ai-bounce {
	0%, 60%, 100% { transform: translateY(0); opacity: .45; }
	30%           { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.vikre-ai-dots i { animation: none; }
	.vikre-ai-launcher { transition: none; }
}

.vikre-ai-form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid #e3e3df;
	background: #fff;
}

.vikre-ai-form textarea {
	flex: 1;
	resize: none;
	border: 1px solid #d5d5cf;
	border-radius: 10px;
	padding: 10px 12px;
	font: inherit;
	max-height: 120px;
	background: #fff;
	color: #1d1d1b;
}

.vikre-ai-form textarea:focus { outline: 2px solid var(--vikre-ai-accent); outline-offset: -1px; }

.vikre-ai-send {
	border: 0;
	border-radius: 10px;
	padding: 11px 16px;
	background: var(--vikre-ai-accent);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.vikre-ai-send[disabled] { opacity: .55; cursor: default; }

.vikre-ai-disclaimer {
	margin: 0;
	padding: 0 12px 10px;
	font-size: 11.5px;
	color: #6b6b64;
	background: #fff;
}

@media (max-width: 480px) {
	#vikre-ai-root { right: 12px; bottom: 12px; left: 12px; }
	.vikre-ai-panel { width: 100%; height: min(78vh, calc(100vh - 80px)); }
	.vikre-ai-launcher { margin-left: auto; }
}
