/* ── FLOATING BUTTON ── */
#mec-chat-btn {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #0d2137;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	transition: transform 0.2s, box-shadow 0.2s;
}

#mec-chat-btn:hover {
	transform: scale(1.07);
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
}

#mec-chat-btn svg {
	display: block;
}

/* ── NOTIFICATION BADGE ── */
#mec-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #c9a84c;
	border: 2px solid #fff;
	display: none;
}

/* ── CHAT WINDOW ── */
#mec-chat-window {
	position: fixed;
	bottom: 92px;
	right: 24px;
	width: 360px;
	height: 520px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	display: flex;
	flex-direction: column;
	font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
	z-index: 9998;
	transform: scale(0.92) translateY(16px);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.22s cubic-bezier(.4, 0, .2, 1), opacity 0.22s ease;
}

#mec-chat-window.open {
	transform: scale(1) translateY(0);
	opacity: 1;
	pointer-events: all;
}

/* ── HEADER ── */
#mec-header {
	background: #0d2137;
	padding: 14px 16px;
	display: flex;
	align-items: center;
	gap: 11px;
	flex-shrink: 0;
}

#mec-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #c9a84c;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

#mec-header-text {
	flex: 1;
}

#mec-header-name {
	color: #fff;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.2px;
	line-height: 1.3;
}

#mec-header-sub {
	color: #c9a84c;
	font-size: 10px;
	letter-spacing: 0.7px;
	text-transform: uppercase;
	margin-top: 1px;
}

#mec-online {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #8ab0c8;
	font-size: 10.5px;
}

#mec-online-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #4cbb8a;
}

#mec-close-btn {
	background: none;
	border: none;
	cursor: pointer;
	color: #8ab0c8;
	padding: 2px 4px;
	font-size: 18px;
	line-height: 1;
	margin-left: 6px;
}

#mec-close-btn:hover {
	color: #fff;
}

/* ── MESSAGES ── */
#mec-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	background: #f6f6f4;
	scroll-behavior: smooth;
}

#mec-messages::-webkit-scrollbar {
	width: 3px;
}

#mec-messages::-webkit-scrollbar-thumb {
	background: #ccc;
	border-radius: 2px;
}

/* ── MESSAGE BUBBLES ── */
.mec-msg-row {
	display: flex;
	align-items: flex-end;
	gap: 7px;
}

.mec-msg-row.user {
	justify-content: flex-end;
}

.mec-msg-row.bot {
	justify-content: flex-start;
}

.mec-msg-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #0d2137;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.mec-bubble {
	max-width: 78%;
	padding: 9px 13px;
	font-size: 13.5px;
	line-height: 1.6;
}

.mec-bubble.bot {
	background: #fff;
	color: #1a1a1a;
	border-radius: 14px 14px 14px 4px;
	border: 0.5px solid #e0e0e0;
}

.mec-bubble.user {
	background: #0d2137;
	color: #fff;
	border-radius: 14px 14px 4px 14px;
}

/* ── TYPING DOTS ── */
#mec-typing {
	display: none;
}

.mec-dots {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 2px 0;
}

.mec-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #c9a84c;
	animation: mec-pulse 1.2s infinite;
}

.mec-dot:nth-child(2) {
	animation-delay: 0.4s;
}

.mec-dot:nth-child(3) {
	animation-delay: 0.8s;
}

@keyframes mec-pulse {

	0%,
	100% {
		opacity: 0.2;
		transform: scale(0.8);
	}

	50% {
		opacity: 1;
		transform: scale(1);
	}
}

/* ── INPUT AREA ── */
#mec-input-area {
	padding: 10px 12px;
	border-top: 0.5px solid #e8e8e8;
	background: #fff;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
}

#mec-input {
	flex: 1;
	border: 0.5px solid #d4d4d4;
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 13px;
	font-family: 'Lato', Arial, sans-serif;
	background: #f6f6f4;
	color: #1a1a1a;
	outline: none;
}

#mec-input:focus {
	border-color: #0d2137;
}

#mec-send {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #0d2137;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.18s;
}

#mec-send:hover {
	background: #1a3a5c;
}

#mec-send:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* ── FOOTER ── */
#mec-footer {
	padding: 4px 12px 8px;
	background: #fff;
	text-align: center;
	font-family: 'Lato', Arial, sans-serif;
	font-size: 10px;
	color: #b0b0b0;
	border-top: 0.5px solid #f0f0f0;
}

/* ── MOBILE ── */
@media (max-width: 420px) {
	#mec-chat-window {
		right: 0;
		bottom: 0;
		width: 100vw;
		height: 100dvh;
		border-radius: 0;
	}

	#mec-chat-btn {
		bottom: 16px;
		right: 16px;
	}
}