/* -----------------------------------------------------------------------------
   Activity Feed Mini Profile Cards
   ----------------------------------------------------------------------------- */

.bond-bp-content {
	& #buddypress {
		& .screen-content #activity-stream .activity-list.bp-list > li.xprofile.updated_profile.activity-item.mini:not(.activity-popup) {
			display: flex;
			align-items: flex-start;
			padding: 19px 20px 18px;

			& > .activity-avatar.item-avatar {
				position: relative;
				flex: 0 0 50px;
				width: 50px;
				min-width: 50px;
				height: 40px;
				margin: 0 20px 0 0;
				padding-right: 10px;
				overflow: visible;

				&::before {
					content: "";
					position: absolute;
					top: 0;
					left: 0;
					width: 40px;
					height: 40px;
					border-radius: 50%;
					background: #b6002d;
				}

				& img {
					display: block;
					position: absolute;
					right: -5px;
					bottom: -5px;
					width: 22px;
					height: 22px;
					padding: 0;
					border: 1.2px solid var(--color-background-body);
					border-radius: 50%;
					background: var(--color-background-body);
					object-fit: cover;
				}
			}

			& > .activity-header:not(.activity-header--group) {
				flex: 1 1 auto;
				min-width: 0;
				margin: 0;
				padding: 2px 0 0;

				& p,
				& .activity-topic {
					margin: 0;
					color: var(--color-bond-black);
					font-size: 16px;
					font-weight: 400;
					line-height: 24px;
				}

				& .activity-topic:empty {
					display: none;
				}

				& p {
					display: flex;
					flex-wrap: wrap;
					align-items: baseline;
					column-gap: 0;
					row-gap: 0;
				}

				& p a,
				& p span {
					font-size: inherit;
					line-height: inherit;
				}

				& .activity-time-since,
				& .activity-time-since .time-since {
					color: var(--color-link);
					text-decoration: underline;
					text-decoration-thickness: 1px;
					text-underline-offset: 2px;
				}

				& .time-since::before {
					content: "\00b7";
					margin: 0 3px;
					color: #989482;
				}
			}
		}
	}
}

@media (max-width: 991px) {
	.bond-bp-content #buddypress .screen-content #activity-stream .activity-list.bp-list > li.xprofile.updated_profile.activity-item.mini:not(.activity-popup) {
		padding: 16px 16px 0;

		& > .activity-avatar.item-avatar {
			flex: 0 0 44px;
			width: 44px;
			min-width: 44px;
			height: 40px;
			margin-right: 16px;
			padding-right: 4px;

			&::before {
				width: 40px;
				height: 40px;
			}

			& img {
				width: 22px;
				height: 22px;
			}
		}
	}
}

@media (max-width: 640px) {
	.bond-bp-content #buddypress .screen-content #activity-stream .activity-list.bp-list > li.xprofile.updated_profile.activity-item.mini:not(.activity-popup) {
		padding: 14px 12px 0;

		& > .activity-avatar.item-avatar {
			flex: 0 0 40px;
			width: 40px;
			min-width: 40px;
			height: 40px;
			margin-right: 12px;
			padding-right: 0;

			&::before {
				width: 40px;
				height: 40px;
			}
		}
	}
}
