#mdac-chat {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}

.mdac-launcher {
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 13px 22px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(26, 115, 232, 0.35);
	transition: transform 0.15s ease;
}
.mdac-launcher:hover {
	transform: translateY(-1px);
}

.mdac-panel {
	position: absolute;
	right: 0;
	bottom: 60px;
	width: min(360px, calc(100vw - 40px));
	max-height: 70vh;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(14, 27, 43, 0.22);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #d7e6fa;
}

.mdac-messages {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 180px;
	max-height: 360px;
}

.mdac-message {
	padding: 10px 13px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
	max-width: 88%;
}
.mdac-message--user {
	align-self: flex-end;
	background: #1a73e8;
	color: #fff;
	border-bottom-right-radius: 4px;
}
.mdac-message--assistant {
	align-self: flex-start;
	background: #eef6ff;
	color: #0e1b2b;
	border-bottom-left-radius: 4px;
}
.mdac-message a {
	color: inherit;
	text-decoration: underline;
}

.mdac-ctas {
	padding: 0 16px 10px;
}
.mdac-btn {
	display: inline-block;
	background: #1a73e8;
	color: #fff;
	text-decoration: none;
	border: none;
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
}

.mdac-form {
	display: flex;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid #eef2f9;
}
.mdac-input {
	flex: 1;
	resize: none;
	border: 1px solid #d7e6fa;
	border-radius: 10px;
	padding: 8px 10px;
	font-size: 13.5px;
	font-family: inherit;
}
.mdac-send {
	align-self: flex-end;
}

@media (max-width: 480px) {
	#mdac-chat {
		right: 12px;
		bottom: 12px;
	}
	.mdac-panel {
		right: -8px;
	}
}
