/* ==========================================================
   PICKER DE RÉACTIONS
   !important partout : le CSS de l'ancien système payant (encore chargé,
   dormant) a des règles plus prioritaires sur ces mêmes classes.
   ========================================================== */

.bp-generic-meta {
	position: relative !important;
}

.ac-emotions_list {
	display: none !important;
	position: absolute !important;
	bottom: 100% !important;
	top: auto !important;
	left: 0 !important;
	margin-bottom: 14px !important;
	background: #fff !important;
	border-radius: 24px !important;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
	padding: 8px 10px !important;
	z-index: 60 !important;
	white-space: nowrap !important;
	width: auto !important;
	height: auto !important;
}

.bp-generic-meta.bbff-emotions-visible .ac-emotions_list {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 2px !important;
}

.bp-like-button .bbff-injected-icon {
	width: 12px;
	height: 12px;
	font-size: 12px;
}

.ac-emotion_item {
	display: flex !important;
	width: 30px !important;
	height: 30px !important;
	align-items: center !important;
	justify-content: center !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ac-emotion_item.is-active-reaction {
	background: #f0eefc !important;
	border-radius: 50% !important;
}

.ac-emotion_btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	line-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ac-emotion_btn i,
.ac-emotion_btn img.emotions {
	display: block !important;
	margin: auto !important;
	font-size: 18px !important;
	width: 20px !important;
	height: 20px !important;
	object-fit: contain !important;
}



/* ==========================================================
   POPUP "QUI A RÉAGI"
   Structure réutilisée à l'identique (mêmes classes que ton
   ancien template), on ajoute juste l'ouverture/fermeture propre.
   ========================================================== */

.activity-state-popup {
	display: none !important;
	position: fixed;
	inset: 0;
	z-index: 100000;
	align-items: center;
	justify-content: center;
}

.activity-state-popup.bbff-popup-open {
	display: flex !important;
}

.activity-state-popup.bbff-popup-open .activity-state-popup_inner {
	display: block !important;
}

.activity-state-popup_overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.activity-state-popup_inner {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 380px;
	width: 90%;
	max-height: 70vh;
	overflow-y: auto;
	padding: 16px 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.activity-state-popup_title {
	padding: 0 20px 12px;
	border-bottom: 1px solid #eee;
}

.activity-state-popup_title h4 {
	margin: 0;
	font-size: 16px;
}

.activity-state-popup_tab_panel ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 8px 20px;
	gap: 16px;
	border-bottom: 1px solid #eee;
}

.activity-state-popup_tab_panel a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 4px;
	text-decoration: none;
	color: #555;
	font-size: 13px;
	border-bottom: 2px solid transparent;
}

.activity-state-popup_tab_panel a i {
	font-size: 15px;
}

.activity-state-popup_tab_panel a img.emotions {
	width: 16px;
	height: 16px;
}

.activity-state-popup_tab_panel a.active {
	color: #6b4c9a;
	border-bottom-color: #6b4c9a;
	font-weight: 600;
}

.activity-state-popup_tab_item {
	display: none;
	padding: 8px 20px 0;
}

.activity-state-popup_tab_item.active {
	display: block;
}

.activity-state_users {
	list-style: none;
	margin: 0;
	padding: 0;
}

.activity-state_user {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
}

.activity-state_user__avatar {
	position: relative;
	flex-shrink: 0;
}

.activity-state_user__avatar img.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: block;
}

.activity-state_user__reaction {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px #fff;
}

.activity-state_user__reaction i {
	font-size: 12px;
}

.activity-state_user__reaction img.emotions {
	width: 13px;
	height: 13px;
}

.activity-state_user__name {
	flex: 1;
	font-size: 14px;
	font-weight: 500;
}

.activity-state_user__name a {
	color: inherit;
	text-decoration: none;
}

.activity-state_user__role {
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
	white-space: nowrap;
}

/* ==========================================================
   ÉTATS DE CHARGEMENT
   ========================================================== */

.bp-generic-meta.bbff-loading .bp-like-button,
.bp-generic-meta.bbff-loading .ac-emotion_btn {
	opacity: 0.6;
	/* Volontairement pas de pointer-events: none ici — si la classe reste
	   collée suite à un imprévu (requête interrompue, etc.), on ne veut
	   jamais bloquer durablement le clic pour l'utilisateur. */
}

.bbff-pin-toggle.bbff-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ==========================================================
   BADGE DE RÉACTIONS SUR LES COMMENTAIRES
   Positionné en dehors visuellement (collé au bord droit de la
   bulle de commentaire), icônes + avatars, pas de pseudos.
   ========================================================== */

.acomment-content_block {
	position: relative;
}

.comment-reactions .activity-state-reactions {
	position: absolute;
	right: -6px;
	bottom: -8px;
	display: flex;
	align-items: center;
	gap: 2px;
	background: #fff;
	border-radius: 12px;
	padding: 2px 6px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	cursor: pointer;
}

.bbff-badge-icons {
	display: flex;
	align-items: center;
}

.bbff-badge-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	margin-left: -3px;
}

.bbff-badge-icon:first-child {
	margin-left: 0;
}

.bbff-badge-icon i {
	font-size: 12px;
}

.bbff-badge-icon img.emotions {
	width: 12px;
	height: 12px;
}
