.portal-chatbot {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	font-family: inherit;
}

.portal-chatbot-toggle {
	width: 56px;
	height: 56px;
	padding: 0;
	background: transparent;
	color: #111827;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.portal-chatbot-toggle-icon {
	width: 54px;
	height: 54px;
	border-radius: 999px;
	overflow: hidden;
	display: block;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
	border: 2px solid rgba(255, 255, 255, 0.95);
}

.portal-chatbot-toggle-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.portal-chatbot-panel {
	width: 360px;
	height: 520px;
	margin-top: 12px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 22px;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.portal-chatbot-panel[hidden] {
	display: none !important;
}

.portal-chatbot.is-open .portal-chatbot-toggle {
	opacity: 0;
	pointer-events: none;
}

.portal-chatbot-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 12px;
	border-bottom: 1px solid #eef0f3;
	background: #ffffff;
}

.portal-chatbot-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.portal-chatbot-avatar {
	width: 30px;
	height: 30px;
	border-radius: 999px;
	object-fit: cover;
	display: block;
}

.portal-chatbot-title {
	font-size: 13px;
	font-weight: 600;
	color: #111827;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 240px;
}

.portal-chatbot-close {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	border: 1px solid #eef0f3;
	background: #ffffff;
	color: #111827;
	cursor: pointer;
	display: grid;
	place-items: center;
	font-size: 18px;
	line-height: 1;
}

.portal-chatbot-close:hover {
	background: #f7f7f9;
}

.portal-chatbot-intro {
	padding: 14px 14px 0;
}

.portal-chatbot-intro[hidden] {
	display: none !important;
}

.portal-chatbot-intro-title {
	font-size: 26px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.2px;
	margin-top: 8px;
}

.portal-chatbot-intro-subtitle {
	margin-top: 8px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.35;
}

.portal-chatbot-cta {
	margin-top: 12px;
	width: 100%;
	border: 0;
	border-radius: 14px;
	padding: 10px 12px;
	background: #111827;
	color: #ffffff;
	cursor: pointer;
	font-weight: 600;
}

.portal-chatbot-cta:hover {
	filter: brightness(1.05);
}

.portal-chatbot-messages {
	flex: 1;
	padding: 12px 14px;
	overflow: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.portal-chatbot-msg {
	max-width: 90%;
	padding: 10px 12px;
	border-radius: 12px;
	line-height: 1.35;
	font-size: 14px;
	white-space: pre-wrap;
}

.portal-chatbot-msg-user {
	align-self: flex-end;
	background: #2563eb;
	color: #ffffff;
}

.portal-chatbot-msg-bot {
	align-self: flex-start;
	background: #f3f4f6;
	color: #111827;
}

.portal-chatbot-form {
	display: flex;
	gap: 8px;
	padding: 10px;
	border-top: 1px solid #e5e7eb;
}

.portal-chatbot-input {
	flex: 1;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	padding: 10px 12px;
}

.portal-chatbot-send {
	background: #2563eb;
	color: #ffffff;
	border: 0;
	border-radius: 999px;
	padding: 10px 12px;
	cursor: pointer;
}
