.mpw-chatbot {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 99996;
	font-family: inherit;
}

.mpw-chatbot__panel[hidden] {
	display: none !important;
}

.mpw-chatbot__toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #1d4ed8;
	color: #fff;
	border: 0;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.mpw-chatbot__toggle:hover {
	background: #f97316;
}

.mpw-chatbot__panel {
	position: absolute;
	right: 0;
	bottom: 70px;
	width: 320px;
	max-width: calc(100vw - 36px);
	height: 420px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.mpw-chatbot__header {
	background: #1d4ed8;
	color: #fff;
	padding: 10px 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mpw-chatbot__close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
}

.mpw-chatbot__messages {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.mpw-chatbot__msg {
	max-width: 80%;
	padding: 8px 12px;
	border-radius: 10px;
	white-space: pre-wrap;
	font-size: 0.92rem;
	line-height: 1.4;
}

.mpw-chatbot__msg--assistant {
	background: #e0e7ff;
	color: #1e293b;
	align-self: flex-start;
	border-bottom-left-radius: 2px;
}

.mpw-chatbot__msg--user {
	background: #1d4ed8;
	color: #fff;
	align-self: flex-end;
	border-bottom-right-radius: 2px;
}

.mpw-chatbot__msg--pending {
	opacity: 0.6;
	font-style: italic;
}

.mpw-chatbot__form {
	display: flex;
	gap: 6px;
	padding: 10px;
	border-top: 1px solid #e2e8f0;
}

.mpw-chatbot__input {
	flex: 1;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit;
}

.mpw-chatbot__send {
	background: #f97316;
	color: #fff;
	border: 0;
	border-radius: 8px;
	width: 38px;
	font-size: 20px;
	cursor: pointer;
}

@media (max-width: 480px) {
	.mpw-chatbot__panel {
		width: calc(100vw - 24px);
		right: 0;
		bottom: 64px;
	}
}
