#roomoo-chat-root {
	position: fixed;
	bottom: 20px;
	right: 20px;
	/* Above the CookieYes consent banner (it uses up to 999999999) so an
	   open chat panel — especially the full-screen mobile view — is never
	   blocked by it. */
	z-index: 2147483000;
	font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

.roomoo-chat-bubble {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #a7f175;
	color: #131424;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.roomoo-chat-bubble:hover {
	filter: brightness(0.95);
}

.roomoo-chat-panel {
	position: fixed;
	bottom: 90px;
	right: 20px;
	width: 330px;
	max-width: calc(100vw - 40px);
	height: 460px;
	max-height: calc(100vh - 140px);
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.roomoo-chat-panel[hidden] {
	display: none;
}

.roomoo-chat-header {
	background: #131424;
	color: #ffffff;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.roomoo-chat-header-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.roomoo-chat-title {
	font-weight: 600;
	font-size: 15px;
}

.roomoo-chat-ai-badge {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #131424;
	background: #ffffff;
	border-radius: 4px;
	padding: 2px 6px;
	line-height: 1.3;
}

.roomoo-chat-close {
	background: none;
	border: none;
	color: #ffffff;
	font-size: 16px;
	cursor: pointer;
	padding: 4px 6px;
	line-height: 1;
	opacity: 0.85;
}

.roomoo-chat-close:hover {
	opacity: 1;
}

.roomoo-chat-avatar {
	width: 26px;
	height: 26px;
	min-width: 26px;
	border-radius: 50%;
	background: #a7f175;
	color: #131424;
	font-weight: 700;
	font-size: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.roomoo-chat-avatar img {
	width: 60%;
	height: 60%;
	object-fit: contain;
}

.roomoo-chat-avatar-small {
	margin-top: 4px;
}

.roomoo-chat-starters {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-left: 34px;
}

.roomoo-chat-starter-chip {
	align-self: flex-start;
	background: #ffffff;
	border: 1px solid #000099;
	color: #000099;
	border-radius: 8px;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-align: left;
}

.roomoo-chat-starter-chip:hover {
	background: #000099;
	color: #ffffff;
}

.roomoo-chat-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f7f7f9;
}

.roomoo-chat-privacy {
	font-size: 11px;
	line-height: 1.4;
	color: #767680;
	font-style: italic;
	padding-bottom: 6px;
	border-bottom: 1px solid #e5e5ea;
	margin-bottom: 4px;
}

.roomoo-chat-privacy a {
	color: #000099;
}

.roomoo-chat-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.roomoo-chat-row.user {
	justify-content: flex-end;
}

.roomoo-chat-col {
	display: flex;
	flex-direction: column;
	max-width: 78%;
}

.roomoo-chat-row.user .roomoo-chat-col {
	align-items: flex-end;
}

.roomoo-chat-msg {
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.45;
	white-space: pre-wrap;
	word-wrap: break-word;
}

.roomoo-chat-msg.user {
	background: #a7f175;
	color: #131424;
	border-bottom-right-radius: 2px;
}

.roomoo-chat-msg.assistant {
	background: #ffffff;
	color: #131424;
	border: 1px solid #e5e5ea;
	border-bottom-left-radius: 2px;
}

.roomoo-chat-msg.pending {
	opacity: 0.6;
}

.roomoo-chat-msg.error {
	background: #fde8e8;
	color: #8a1f1f;
	border: 1px solid #f3c2c2;
}

.roomoo-chat-msg.notice {
	background: #e8f1fd;
	color: #1a4d8f;
	border: 1px solid #c3dcf7;
}

.roomoo-chat-time {
	font-size: 10px;
	color: #9a9aa2;
	margin-top: 3px;
	padding: 0 2px;
}

.roomoo-chat-feedback {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	padding: 0 2px;
}

.roomoo-chat-feedback-prompt {
	font-size: 11px;
	color: #9a9aa2;
}

.roomoo-chat-feedback-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px 3px;
	line-height: 1;
	color: #9a9aa2;
	display: inline-flex;
	align-items: center;
}

.roomoo-chat-feedback-btn:hover {
	color: #131424;
}

.roomoo-chat-feedback-btn:disabled {
	cursor: default;
}

.roomoo-chat-feedback-btn.selected {
	color: #000099;
}

.roomoo-chat-input-row {
	display: flex;
	align-items: center;
	border-top: 1px solid #e5e5ea;
	padding: 8px;
	gap: 8px;
	background: #ffffff;
}

.roomoo-chat-input-row textarea {
	flex: 1;
	resize: none;
	border: 1px solid #d8d8dd;
	border-radius: 8px;
	padding: 9px 14px;
	font-family: inherit;
	font-size: 14px;
	height: 38px;
	max-height: 90px;
}

.roomoo-chat-input-row textarea:focus {
	outline: none;
	border-color: #000099;
	box-shadow: 0 0 0 2px rgba(0, 0, 153, 0.18);
}

.roomoo-chat-send {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border-radius: 50%;
	background: #000099;
	color: #ffffff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.roomoo-chat-contact-bar {
	text-align: center;
	padding: 6px 12px;
	border-top: 1px solid #e5e5ea;
	background: #ffffff;
}

.roomoo-chat-contact-link {
	background: none;
	border: none;
	color: #000099;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
	padding: 2px;
}

.roomoo-chat-contact-view {
	flex: 1;
	overflow-y: auto;
	padding: 16px 14px;
	background: #f7f7f9;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.roomoo-chat-contact-view[hidden],
.roomoo-chat-messages[hidden],
.roomoo-chat-input-row[hidden],
.roomoo-chat-contact-bar[hidden] {
	display: none;
}

.roomoo-chat-back {
	align-self: flex-start;
	background: none;
	border: none;
	color: #000099;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	margin-bottom: 4px;
}

.roomoo-chat-contact-title {
	font-weight: 700;
	font-size: 15px;
	color: #131424;
}

.roomoo-chat-contact-intro {
	font-size: 13px;
	color: #52525b;
	line-height: 1.4;
}

.roomoo-chat-contact-input,
.roomoo-chat-contact-textarea {
	border: 1px solid #d8d8dd;
	border-radius: 8px;
	padding: 9px 12px;
	font-family: inherit;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}

.roomoo-chat-contact-textarea {
	resize: none;
	height: 80px;
}

.roomoo-chat-contact-input:focus,
.roomoo-chat-contact-textarea:focus {
	outline: none;
	border-color: #000099;
	box-shadow: 0 0 0 2px rgba(0, 0, 153, 0.18);
}

.roomoo-chat-contact-submit {
	background: #a7f175;
	color: #131424;
	border: none;
	border-radius: 8px;
	padding: 10px 14px;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	cursor: pointer;
}

.roomoo-chat-contact-submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.roomoo-chat-contact-status {
	font-size: 13px;
	min-height: 16px;
}

.roomoo-chat-contact-status.error {
	color: #8a1f1f;
}

.roomoo-chat-contact-status.success {
	color: #1f6d2c;
	font-weight: 600;
}

.roomoo-chat-send:disabled {
	opacity: 0.5;
	cursor: default;
}

@media (max-width: 480px) {
	#roomoo-chat-root {
		right: 14px;
		bottom: 14px;
	}

	/* Full-screen takeover on mobile — a fixed corner panel either feels
	   cramped or overlaps content awkwardly at this width, so the chat
	   becomes its own full view instead, same as Intercom/Drift/Zendesk. */
	.roomoo-chat-panel {
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}
}
