/* Visitor Insights Chat widget */
.vic-root, .vic-root * { box-sizing: border-box; }

.vic-launcher {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	background: var(--vic-accent, #2563eb);
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .15s ease;
}
.vic-launcher:hover { transform: scale(1.06); }
.vic-launcher svg { width: 26px; height: 26px; fill: #fff; }

.vic-panel {
	position: fixed;
	right: 20px;
	bottom: 88px;
	z-index: 99999;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 520px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	display: none;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.vic-panel.vic-open { display: flex; }

.vic-header {
	background: var(--vic-accent, #2563eb);
	color: #fff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.vic-header h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.2; }
.vic-close {
	background: transparent; border: none; color: #fff;
	font-size: 22px; line-height: 1; cursor: pointer; padding: 0 4px;
}

.vic-notice {
	font-size: 11px;
	color: #6b7280;
	background: #f9fafb;
	border-bottom: 1px solid #eef0f2;
	padding: 8px 14px;
	line-height: 1.4;
}

.vic-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f3f4f6;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.vic-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.vic-msg.vic-bot { background: #fff; color: #111827; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.vic-msg.vic-user { background: var(--vic-accent, #2563eb); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vic-typing { font-size: 13px; color: #6b7280; align-self: flex-start; padding: 4px 6px; }

.vic-input {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #eef0f2;
	background: #fff;
}
.vic-input textarea {
	flex: 1;
	resize: none;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 14px;
	font-family: inherit;
	max-height: 96px;
	outline: none;
}
.vic-input textarea:focus { border-color: var(--vic-accent, #2563eb); }
.vic-send {
	border: none;
	background: var(--vic-accent, #2563eb);
	color: #fff;
	border-radius: 10px;
	padding: 0 14px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
}
.vic-send:disabled { opacity: .5; cursor: default; }
