/* MotherBot — click-to-chat widget */

.motherbot-fab {
	position: fixed;
	bottom: 24px;
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.motherbot-fab.motherbot-right { right: 24px; }
.motherbot-fab.motherbot-left  { left: 24px; align-items: flex-start; }

.motherbot-fab-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 18px;
	border-radius: 999px;
	background: var(--motherbot-colour, #25D366);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform .18s ease, box-shadow .18s ease;
}

.motherbot-fab-button:hover,
.motherbot-fab-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(0, 0, 0, .24);
	color: #fff !important;
}

.motherbot-icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

/* On small screens the label is dead weight — collapse to a round icon button. */
@media (max-width: 600px) {
	.motherbot-fab { bottom: 16px; }
	.motherbot-fab.motherbot-right { right: 16px; }
	.motherbot-fab.motherbot-left  { left: 16px; }
	.motherbot-fab-label { display: none; }
	.motherbot-fab-button { padding: 15px; }
}

.motherbot-hide-mobile { display: none; }
@media (min-width: 783px) { .motherbot-hide-mobile { display: flex; } }

/* Greeting bubble */
.motherbot-bubble {
	position: relative;
	max-width: 260px;
	padding: 12px 30px 12px 14px;
	border-radius: 14px;
	background: #fff;
	color: #111;
	font-size: 13.5px;
	line-height: 1.45;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
	animation: motherbot-pop .3s ease;
}

.motherbot-bubble p { margin: 0; }

.motherbot-bubble-close {
	position: absolute;
	top: 4px;
	right: 6px;
	border: 0;
	background: transparent;
	color: #999;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	padding: 2px 4px;
}
.motherbot-bubble-close:hover { color: #333; }

.motherbot-bubble.is-hidden { display: none; }

@keyframes motherbot-pop {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.motherbot-bubble { animation: none; }
	.motherbot-fab-button { transition: none; }
}

@media (prefers-color-scheme: dark) {
	.motherbot-bubble { background: #232323; color: #f2f2f2; }
	.motherbot-bubble-close { color: #888; }
	.motherbot-bubble-close:hover { color: #eee; }
}

/* Inline shortcode button */
.motherbot-inline-button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	background: var(--motherbot-colour, #25D366);
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
}
.motherbot-inline-button:hover { filter: brightness(.94); color: #fff !important; }
.motherbot-inline-button .motherbot-icon { width: 18px; height: 18px; }

.motherbot-inline-icon { padding: 10px; border-radius: 999px; }

.motherbot-inline-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--motherbot-colour, #128C7E);
	font-weight: 600;
}
