/**
 * BuddyBoss profile / group hover preview cards (#profile-card, #group-card).
 *
 * BuddyBoss uses `.bb-popup-card { padding: 10px }`. This file re-applies the same
 * uniform inset with higher specificity so it wins over stylesheet order, and so
 * the cards keep even padding after excluding them from `layout.css` content inset
 * (they are no longer picking up the 48px BP column padding).
 */
#profile-card.bb-profile-card.bb-popup-card {
	padding: 5px;
	box-sizing: border-box;
}

#group-card.bb-group-card.bb-popup-card {
	padding: 10px;
	box-sizing: border-box;
}

/*
 * Profile hover card: keep only Message + View Profile actions.
 * Supports both BuddyBoss standard (`.bb-card-*`) and ReadyLaunch (`.bb-rl-card-*`) markup.
 */
#profile-card .bb-card-body,
#profile-card .bb-rl-card-body {
	display: none;
}

#profile-card .bb-card-action-connect,
#profile-card .bb-card-action-follow,
#profile-card .bb-rl-card-action-connect,
#profile-card .bb-rl-card-action-follow {
	display: none !important;
}

#profile-card .bb-card-footer,
#profile-card .bb-rl-card-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 !important;
	padding: 8px 10px;
}

#profile-card .bb-card-footer .bb-card-action,
#profile-card .bb-rl-card-footer .bb-rl-card-action {
	flex: 0 0 auto;
	margin: 0;
	display: flex;
	align-items: center;
}

/*
 * Keep action labels aligned even when one link includes an icon.
 * Force a consistent inline-flex line box and icon line-height.
 */
#profile-card .bb-card-footer .bb-card-action > a,
#profile-card .bb-rl-card-footer .bb-rl-card-action > a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	line-height: 1;
}

#profile-card .bb-card-footer .bb-card-action > a i,
#profile-card .bb-rl-card-footer .bb-rl-card-action > a i {
	line-height: 1;
}

/*
 * Hide transient skeleton/loading state so only the final styled card is visible.
 */
#profile-card.loading {
	display: none !important;
}

