#mehraz-geo-widget-root {
	position: fixed;
	z-index: 999999;
	bottom: 20px;
	font-family: Tahoma, "Segoe UI", sans-serif;
	direction: rtl;
}
.mehraz-geo-position-bottom-right { right: 20px; }
.mehraz-geo-position-bottom-left  { left: 20px; }

.mgeo-bubble {
	width: 58px; height: 58px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2);
	border: none; color: #fff; font-size: 24px;
	transition: transform .15s ease;
}
.mgeo-bubble:hover { transform: scale(1.06); }

.mgeo-panel {
	position: absolute; bottom: 72px;
	width: 340px; max-width: calc(100vw - 40px);
	height: 460px; max-height: 70vh;
	background: #fff; border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.18);
	display: none; flex-direction: column; overflow: hidden;
}
.mehraz-geo-position-bottom-right .mgeo-panel { right: 0; }
.mehraz-geo-position-bottom-left  .mgeo-panel { left: 0; }
.mgeo-panel.open { display: flex; }

.mgeo-header {
	padding: 12px 16px; color: #fff; font-weight: 600;
	display: flex; align-items: center; justify-content: space-between;
}
.mgeo-header .mgeo-close { cursor: pointer; opacity: .85; font-size: 18px; background:none; border:none; color:#fff; }

.mgeo-messages {
	flex: 1; overflow-y: auto; padding: 12px; font-size: 13.5px; background: #f7f8fa;
}
.mgeo-msg { margin-bottom: 10px; max-width: 88%; line-height: 1.6; }
.mgeo-msg.user { margin-inline-start: auto; }
.mgeo-msg .mgeo-bubble-text { padding: 8px 12px; border-radius: 12px; display: inline-block; white-space: pre-wrap; }
.mgeo-msg.assistant .mgeo-bubble-text { background: #fff; border: 1px solid #e5e7eb; border-start-start-radius: 2px; }
.mgeo-msg.user .mgeo-bubble-text { color: #fff; border-start-end-radius: 2px; }
.mgeo-sources { margin-top: 4px; font-size: 11px; color: #6b7280; }
.mgeo-sources a { color: #6b7280; }

.mgeo-input-row {
	display: flex; gap: 6px; padding: 10px; border-top: 1px solid #eee; background: #fff;
}
.mgeo-input-row input {
	flex: 1; border: 1px solid #d9dce1; border-radius: 20px;
	padding: 9px 14px; font-size: 13px; outline: none;
}
.mgeo-input-row button {
	border: none; color: #fff; border-radius: 20px; padding: 0 16px; cursor: pointer; font-size: 13px;
}
.mgeo-typing { font-size: 12px; color: #9aa0a6; padding: 4px 0; }
