/* Local Chat Widget --------------------------------------------------------- */

#local-chat-widget {
	font-family: inherit;
	font-size: 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	max-width: 600px;
}

#local-chat-widget.local-chat-inline {
	height: 420px;
}

#local-chat-widget.local-chat-bubble {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 360px;
	height: 480px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
	z-index: 9999;
}


/* Messages ----------------------------------------------------------------- */

.local-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #fafafa;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lchat-message {
	padding: 8px 12px;
	border-radius: 14px;
	max-width: 80%;
	word-wrap: break-word;
	line-height: 1.45;
}

.lchat-user {
	background: #0073aa;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 4px;
}

.lchat-assistant {
	background: #e9e9e9;
	color: #222;
	align-self: flex-start;
	border-bottom-left-radius: 4px;
}

.lchat-error {
	background: #fce8e8;
	color: #c00;
	align-self: center;
	font-size: 13px;
}


/* Input form --------------------------------------------------------------- */

.local-chat-form {
	display: flex;
	border-top: 1px solid #ddd;
	background: #fff;
}

.local-chat-input {
	flex: 1;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	outline: none;
}

.local-chat-send {
	border: none;
	background: #0073aa;
	color: #fff;
	padding: 10px 18px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.15s;
}

.local-chat-send:hover {
	background: #005a87;
}

.local-chat-send:disabled {
	background: #aaa;
	cursor: not-allowed;
}


/* Accessibility ------------------------------------------------------------ */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}
