#s44s-cb {
	--s44s-cb-accent: #111111;
	--s44s-cb-bg: #ffffff;
	--s44s-cb-soft: #f3f4f6;
	--s44s-cb-text: #1a1a1a;
	--s44s-cb-muted: #6b7280;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 99999;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.45;
	color: var(--s44s-cb-text);
}
#s44s-cb *, #s44s-cb *::before, #s44s-cb *::after { box-sizing: border-box; }

/* Toggle button */
.s44s-cb__toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	margin: 0;
	background: var(--s44s-cb-accent);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
	transition: transform .2s ease, box-shadow .2s ease;
	margin-left: auto;
}
.s44s-cb__toggle:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.s44s-cb__toggle:focus-visible { outline: 3px solid rgba(0, 0, 0, .25); outline-offset: 3px; }
.s44s-cb__icon-close { display: none; }
#s44s-cb.is-open .s44s-cb__icon-chat { display: none; }
#s44s-cb.is-open .s44s-cb__icon-close { display: block; }

/* Panel */
.s44s-cb__panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 360px;
	max-width: calc(100vw - 32px);
	max-height: min(560px, calc(100vh - 120px));
	background: var(--s44s-cb-bg);
	border-radius: 16px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	opacity: 0;
	transform: translateY(10px) scale(.98);
	transform-origin: bottom right;
	transition: opacity .2s ease, transform .2s ease;
}
.s44s-cb__panel[hidden] { display: none; }
#s44s-cb.is-open .s44s-cb__panel { opacity: 1; transform: none; }

.s44s-cb__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px;
	background: var(--s44s-cb-accent);
	color: #fff;
}
.s44s-cb__title { font-weight: 700; font-size: 16px; }
.s44s-cb__subtitle { font-size: 13px; opacity: .8; }
.s44s-cb__close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: .85;
}
.s44s-cb__close:hover { opacity: 1; }

.s44s-cb__body {
	padding: 16px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	scroll-behavior: smooth;
}

/* Messages */
.s44s-cb__msg {
	max-width: 88%;
	padding: 10px 14px;
	border-radius: 14px;
	animation: s44s-cb-in .25s ease both;
	word-wrap: break-word;
}
.s44s-cb__msg--bot {
	align-self: flex-start;
	background: var(--s44s-cb-soft);
	border-bottom-left-radius: 4px;
}
.s44s-cb__msg--user {
	align-self: flex-end;
	background: var(--s44s-cb-accent);
	color: #fff;
	border-bottom-right-radius: 4px;
}
.s44s-cb__msg a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Options */
.s44s-cb__options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	animation: s44s-cb-in .25s ease both;
}
.s44s-cb__opt {
	text-align: left;
	background: var(--s44s-cb-bg);
	color: var(--s44s-cb-text);
	border: 1.5px solid #e5e7eb;
	border-radius: 12px;
	padding: 10px 14px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.s44s-cb__opt:hover, .s44s-cb__opt:focus-visible {
	border-color: var(--s44s-cb-accent);
	background: var(--s44s-cb-soft);
	outline: none;
}
.s44s-cb__opt--ghost {
	border-style: dashed;
	color: var(--s44s-cb-muted);
	font-size: 13px;
}

/* Typing dots */
.s44s-cb__typing { display: inline-flex; gap: 4px; padding: 14px; }
.s44s-cb__typing span {
	width: 6px; height: 6px; border-radius: 50%;
	background: var(--s44s-cb-muted);
	animation: s44s-cb-dot 1s infinite ease-in-out;
}
.s44s-cb__typing span:nth-child(2) { animation-delay: .15s; }
.s44s-cb__typing span:nth-child(3) { animation-delay: .3s; }

@keyframes s44s-cb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes s44s-cb-dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 480px) {
	#s44s-cb { right: 16px; bottom: 16px; }
	.s44s-cb__panel { width: calc(100vw - 32px); bottom: 72px; }
	.s44s-cb__toggle { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	#s44s-cb * { animation: none !important; transition: none !important; }
}
