:root {
	color-scheme: light;
	--chat-primary: rgb(204,204,51);
    --chat-hover: orange;
	--chat-ink: #20223a;
	--chat-muted: #85879a;
}
.page-content {
	max-width: 960px;
	padding: 80px 28px;
	margin: auto;
}
.page-content h1 {
	font-size: clamp(2rem, 5vw, 3.4rem);
	margin: 0 0 12px;
	letter-spacing: -.04em;
}
.page-content p {
	color: #72758a;
}
.chat-widget {
	position: fixed;
	right: 38px;
	bottom: 35px;
	z-index: 99999;
}
.chat-tooltip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	padding: 10px 15px;
	border-radius: 8px;
	background: rgb(250,250,250);
	color: #222;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	box-shadow: 0 4px 14px #ccc;
	opacity: 0;
	visibility: hidden;
	transform: translate(4px, -50%);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	pointer-events: none;
}
.chat-tooltip::after {
	position: absolute;
	left: 100%;
	top: 50%;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-left-color: rgb(250,250,250);
	content: '';
	transform: translateY(-50%);
}
.chat-toggle:hover .chat-tooltip,
.chat-toggle:focus-visible .chat-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}
.chat-toggle {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	border: 0;
	border-radius: 50%;
	background: var(--chat-primary);
	color: white;
	box-shadow: 0 8px 25px #403bc04a;
	cursor: pointer;
	transition: transform .2s, background .2s;
}
.chat-toggle:hover {
	transform: translateY(-2px);
	background: var(--chat-hover);
}
.chat-toggle svg {
	width: 29px;
	height: 29px;
	fill: currentColor;
}
.chat-panel {
	position: absolute;
	right: 0;
	bottom: 78px;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100vw - 32px));
	height: min(560px, calc(100dvh - 120px));
	min-height: 380px;
	overflow: hidden;
	border: 1px solid #e9e9f1;
	border-radius: 20px;
	background: white;
	box-shadow: 0 18px 60px #24244a26;
	animation: pop-in .18s ease-out;
}
.chat-panel[hidden] {
	display: none;
}
@keyframes pop-in {
from {
	opacity: 0;
	transform: translateY(8px) scale(.98);
}
to {
	opacity: 1;
	transform: translateY(0) scale(1);
}
}
.chat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 17px 18px;
	color: white;
    background-image: linear-gradient(to bottom, rgb(247,199,22), rgb(239,155,34));
}
.agent-avatar {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: rgb(189,188,44);
	font-size: 18px;
	font-weight: 700;
}
.header-copy {
	min-width: 0;
	flex: 1;
}
.header-copy #va-head {
	margin: 0 0 3px;
	font-size: 17px;
	font-weight: 700;
}
.header-copy p {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	color: #fff;
	font-size: 12px;
}
.online-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #82efb0;
}
.close-button {
	align-self: flex-start;
	border: 0;
	padding: 0 2px;
	color: #fff;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.close-button:hover {
	opacity: 1;
}
.chat-messages {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 12px;
	overflow-y: auto;
	padding: 20px 16px;
	background: #fbfbfe;
	scroll-behavior: smooth;
}
.message-row {
	display: flex;
	width: 100%;
}
.assistant-row {
	justify-content: flex-start;
}
.user-row {
	justify-content: flex-end;
}
.message {
	max-width: 84%;
	padding: 11px 14px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.5;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}
.assistant-message {
	border: 1px solid #ececf3;
	border-bottom-left-radius: 5px;
	color: #303148;
	background: white;
}
.assistant-message a {
	color: rgb(1,105,204) !important;
    font-weight: bold;
}
.assistant-message a:hover {
	text-decoration: underline;
}
.user-message {
	border-bottom-right-radius: 5px;
	color: white;
    font-weight: bold;
	background: var(--chat-primary);
}
.typing {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	min-width: 48px;
}
.typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #9a9bad;
	animation: blink 1s infinite ease-in-out;
}
.typing span:nth-child(2) {
	animation-delay: .15s;
}
.typing span:nth-child(3) {
	animation-delay: .3s;
}
@keyframes blink {
0%, 60%, 100% {
	opacity: .35;
	transform: translateY(0);
}
30% {
	opacity: 1;
	transform: translateY(-3px);
}
}
.chat-form {
	display: flex;
	align-items: flex-end;
	gap: 9px;
	padding: 12px 13px 10px;
	border-top: 1px solid #eeeef4;
	background: white;
}
.chat-form textarea {
	display: block;
	flex: 1;
	max-height: 110px;
	min-height: 42px;
	resize: none;
	padding: 11px 12px;
	border: 1px #aaa;
	border-radius: 13px;
	outline: none;
	color: var(--chat-ink);
	background: #fafafd;
	font: inherit;
	font-size: 14px;
	line-height: 1.4;
}
.chat-form textarea:focus {
	border-color: #ddd;
	box-shadow: 0 0 0 1px #ddd;
}
.chat-form textarea::placeholder {
	color: gray;
}
.send-button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 13px;
	color: white;
	background: var(--chat-hover);
	cursor: pointer;
	transition: opacity .15s, transform .15s;
}
.send-button:hover {
	transform: translateY(-1px);
	background: var(--chat-primary);
}
.send-button:disabled {
	opacity: .5;
	cursor: wait;
}
.send-button svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}
.chat-footer {
	padding: 0 12px 10px;
	color: #a1a2b0;
	background: white;
	text-align: center;
	font-size: 10px;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 480px) {
.chat-widget {
	right: 16px;
	bottom: 16px;
}
.chat-panel {
	bottom: 72px;
	width: calc(100vw - 32px);
	height: min(600px, calc(100dvh - 100px));
}
}
@media (prefers-reduced-motion: reduce) {
*, *:: before, *:: after {
	animation-duration: .01ms !important;
	scroll-behavior: auto !important;
	transition-duration: .01ms !important;
}
}
