/* MF WhatsApp Chat */

.mfwc {
	--mfwc-x: 20px;
	--mfwc-y: 20px;
	--mfwc-size: 56px;
	--mfwc-green: #25d366;

	position: fixed;
	bottom: calc(var(--mfwc-y) + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.mfwc--right {
	right: calc(var(--mfwc-x) + env(safe-area-inset-right, 0px));
}

.mfwc--left {
	left: calc(var(--mfwc-x) + env(safe-area-inset-left, 0px));
}

.mfwc .mfwc__btn {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	text-decoration: none;
	outline: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

/* Solda dururken etiket ikonun sağına geçer. */
.mfwc--left .mfwc__btn {
	flex-direction: row-reverse;
}

.mfwc .mfwc__circle {
	position: relative;
	isolation: isolate;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--mfwc-size);
	height: var(--mfwc-size);
	border-radius: 50%;
	background: var(--mfwc-green);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mfwc .mfwc__icon {
	display: block;
	width: 58%;
	height: 58%;
	max-width: none;
	margin: 0;
	fill: currentColor;
}

.mfwc .mfwc__btn:hover .mfwc__circle {
	transform: scale(1.06);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.mfwc .mfwc__btn:active .mfwc__circle {
	transform: scale(0.96);
}

.mfwc .mfwc__btn:focus-visible .mfwc__circle {
	box-shadow: 0 0 0 3px #fff, 0 0 0 6px #128c7e;
}

/* Etiket */
.mfwc .mfwc__label {
	max-width: calc(100vw - var(--mfwc-size) - (var(--mfwc-x) * 2) - 10px);
	padding: 9px 13px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	color: #111b21;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	transform: translateX(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
}

.mfwc--left .mfwc__label {
	transform: translateX(-6px);
}

.mfwc .mfwc__btn:hover .mfwc__label,
.mfwc .mfwc__btn:focus-visible .mfwc__label,
.mfwc--label-always .mfwc__label {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

/* Halka animasyonu */
.mfwc--pulse .mfwc__circle::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: 50%;
	background: var(--mfwc-green);
	opacity: 0;
	animation: mfwc-pulse 2.6s ease-out infinite;
}

@keyframes mfwc-pulse {
	0% {
		transform: scale(1);
		opacity: 0.55;
	}
	70%,
	100% {
		transform: scale(1.7);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mfwc--pulse .mfwc__circle::before {
		animation: none;
	}
	.mfwc .mfwc__circle,
	.mfwc .mfwc__label {
		transition: none;
	}
}

/* Cihaza göre gizleme */
@media (min-width: 768px) {
	.mfwc--hide-desktop {
		display: none !important;
	}
}

@media (max-width: 767.98px) {
	.mfwc--hide-mobile {
		display: none !important;
	}
}

@media print {
	.mfwc {
		display: none !important;
	}
}
