/* Magayiti – J'aime et commentaires Facebook */

.mfbs-like {
	--mfbs-blue: #1877f2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 1.5em 0;
	font-size: 15px;
	line-height: 1.4;
}

.mfbs-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 16px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	opacity: .85;
	transition: background-color .15s, color .15s, border-color .15s, opacity .15s, transform .1s;
}

.mfbs-like-btn:hover { opacity: 1; }
.mfbs-like-btn:active { transform: scale(.96); }
.mfbs-like-btn:focus-visible { outline: 2px solid var(--mfbs-blue); outline-offset: 2px; }
.mfbs-like-btn[disabled] { cursor: progress; }

.mfbs-like.is-liked .mfbs-like-btn {
	background: var(--mfbs-blue);
	border-color: var(--mfbs-blue);
	color: #fff;
	opacity: 1;
}

.mfbs-like-icon { flex: none; }

.mfbs-likers { display: inline-flex; }
.mfbs-likers:empty { display: none; }
.mfbs-likers img {
	width: 24px;
	height: 24px;
	margin: 0 0 0 -6px;
	border: 2px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	background: #ddd;
}
.mfbs-likers img:first-child { margin-left: 0; }

.mfbs-like-count { opacity: .8; }

/* Bloc de connexion à la place du formulaire de commentaire */
.mfbs-comment-login {
	margin: 1em 0;
	padding: 18px 20px;
	border: 1px solid rgba(127, 127, 127, .3);
	border-radius: 8px;
}
.mfbs-comment-login p { margin: 0 0 12px; }

.mfbs-fb-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	margin: 0;
	padding: 8px 20px;
	border: 0;
	border-radius: 6px;
	background: #1877f2;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.mfbs-fb-login:hover { background: #166fe5; }
.mfbs-fb-login:focus-visible { outline: 2px solid #1877f2; outline-offset: 3px; }

.mfbs-logged-in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.mfbs-logged-in img.avatar { border-radius: 50%; margin: 0; }
