#vandulo-agent-widget-root {
	--vaw-accent: #0b3d5c;
	position: fixed;
	z-index: 999999;
	right: 20px;
	bottom: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#vaw-bubble {
	height: 56px;
	min-width: 56px;
	padding: 0 20px 0 16px;
	border-radius: 999px;
	background: var(--vaw-accent);
	border: none;
	box-shadow: 0 6px 20px rgba(0,0,0,0.28);
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}
#vaw-bubble:hover { filter: brightness(1.08); }

#vaw-bubble-icon {
	position: relative;
	width: 24px;
	height: 24px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
}
#vaw-bubble-dot {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid var(--vaw-accent);
}
#vaw-bubble-label {
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	white-space: nowrap;
	letter-spacing: 0.1px;
}

/* Pulsing attention ring -- plays a handful of times when the page loads, then stops so it never becomes annoying. */
#vaw-bubble.vaw-pulse::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 0 rgba(11, 61, 92, 0.55);
	animation: vaw-pulse-ring 2.2s ease-out 3;
}
@keyframes vaw-pulse-ring {
	0%   { box-shadow: 0 0 0 0 rgba(11, 61, 92, 0.45); }
	70%  { box-shadow: 0 0 0 16px rgba(11, 61, 92, 0); }
	100% { box-shadow: 0 0 0 0 rgba(11, 61, 92, 0); }
}

/* Friendly nudge tooltip that appears once, a few seconds after page load, then fades away on its own. */
#vaw-nudge {
	position: absolute;
	bottom: 68px;
	right: 0;
	max-width: 230px;
	background: #fff;
	color: #1f2937;
	padding: 12px 14px;
	border-radius: 12px;
	border-bottom-right-radius: 4px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.2);
	font-size: 13.5px;
	line-height: 1.4;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.35s ease, transform 0.35s ease;
}
#vaw-nudge.vaw-show {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	cursor: pointer;
}

@media (max-width: 480px) {
	#vaw-bubble-label { display: none; }
	#vaw-bubble { padding: 0; width: 56px; justify-content: center; }
	#vaw-nudge { max-width: 200px; }
}

#vaw-panel {
	position: fixed;
	right: 20px;
	bottom: 90px;
	width: 340px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
#vaw-panel.vaw-hidden { display: none; }

#vaw-header {
	background: var(--vaw-accent);
	color: #fff;
	padding: 14px 16px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#vaw-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

#vaw-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f6f7f9;
}

.vaw-row { display: flex; margin-bottom: 10px; }
.vaw-row.vaw-visitor { justify-content: flex-end; }
.vaw-row.vaw-agent { justify-content: flex-start; }

.vaw-bubble-msg {
	max-width: 80%;
	padding: 9px 12px;
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.4;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.vaw-visitor .vaw-bubble-msg {
	background: var(--vaw-accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.vaw-agent .vaw-bubble-msg {
	background: #fff;
	color: #222;
	border: 1px solid #e2e4e8;
	border-bottom-left-radius: 4px;
}

#vaw-typing {
	padding: 4px 14px 8px;
	font-size: 12px;
	color: #888;
}
#vaw-typing.vaw-hidden { display: none; }

#vaw-form {
	display: flex;
	border-top: 1px solid #e2e4e8;
	padding: 8px;
	gap: 8px;
}
#vaw-input {
	flex: 1;
	border: 1px solid #d8dade;
	border-radius: 8px;
	padding: 9px 10px;
	font-size: 14px;
	outline: none;
}
#vaw-input:focus { border-color: var(--vaw-accent); }
#vaw-form button[type="submit"] {
	background: var(--vaw-accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	font-size: 14px;
	cursor: pointer;
}

@media (max-width: 480px) {
	#vaw-panel {
		right: 12px;
		left: 12px;
		width: auto;
		bottom: 84px;
	}
}
