/* Floating assistant → Makine Bulucu */

.mmb-float {
	position: fixed;
	left: max(1.25rem, env(safe-area-inset-left));
	bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 5rem));
	z-index: 99980;
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: inherit;
	isolation: isolate;
}

.mmb-float__icon {
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: #1b542d;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(27, 84, 45, 0.32);
	flex-shrink: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.mmb-float__icon svg {
	display: block;
	width: 34px;
	height: 34px;
}

.mmb-float__bubble {
	position: relative;
	max-width: 17rem;
	padding: 0.85rem 1.05rem;
	background: #fff;
	color: #242424;
	border: 1px solid #e8e8e8;
	font-family: Hind, Arial, Helvetica, sans-serif;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	border-radius: 14px;
	box-shadow: 0 8px 22px rgba(16, 24, 32, 0.12);
	white-space: normal;
	transition: opacity 0.4s ease, transform 0.4s ease, max-width 0.4s ease, padding 0.4s ease, border-width 0.4s ease, margin 0.4s ease;
}

.mmb-float__bubble::after {
	content: "";
	position: absolute;
	left: -7px;
	top: 50%;
	margin-top: -6px;
	border-width: 6px 7px 6px 0;
	border-style: solid;
	border-color: transparent #fff transparent transparent;
	filter: drop-shadow(-1px 0 0 #e8e8e8);
	transition: opacity 0.3s ease;
}

.mmb-float__bubble--hide {
	opacity: 0;
	transform: translateX(-8px);
	max-width: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
	border-width: 0 !important;
	overflow: hidden;
	pointer-events: none;
}

.mmb-float__bubble--hide::after {
	opacity: 0;
}

.mmb-float:hover .mmb-float__icon,
.mmb-float:focus-visible .mmb-float__icon {
	transform: translateY(-2px) scale(1.04);
	background: #164626;
	box-shadow: 0 12px 28px rgba(27, 84, 45, 0.4);
}

.mmb-float:focus-visible {
	outline: none;
}

.mmb-float:focus-visible .mmb-float__icon {
	outline: 2px solid #1b542d;
	outline-offset: 3px;
}

@media (max-width: 560px) {
	.mmb-float {
		left: max(0.85rem, env(safe-area-inset-left));
		/* WoodMart mobil alt menünün üstünde kalsın — WhatsApp ile aynı bottom */
		bottom: max(7.75rem, calc(env(safe-area-inset-bottom) + 7.25rem));
		gap: 0.55rem;
	}

	.mmb-float__icon {
		width: 56px;
		height: 56px;
	}

	.mmb-float__icon svg {
		width: 28px;
		height: 28px;
	}

	.mmb-float__bubble {
		max-width: 12.5rem;
		font-size: 0.8125rem;
		padding: 0.7rem 0.85rem;
	}
}
