.activity-card {
	position: relative;

	.card {
		padding: 16px;
		border-radius: var(--jetpack-corners-sharp);
	}

	.activity-card__actor {
		margin-left: 0;
		display: flex;
		align-items: center;

		.activity-card__actor-info {
			display: flex;
			flex-direction: row;
			flex-wrap: wrap;
			margin-left: 8px;

			&:first-child {
				margin-left: 0;
			}
			> *:not(:last-child) {
				margin-right: 8px;
			}
		}
	}

	.activity-card__actor-info,
	.activity-card__actor-role,
	.activity-card__activity-title {
		font-size: 0.75rem;
		color: rgb(100, 105, 112);
	}

	.activity-card__activity-title {
		margin: 8px 0;
		font-style: italic;
	}

	&.with-error {
		.activity-card__time-icon {
			fill: var(--color-error);
		}

		.activity-card__time-text {
			color: var(--color-error);
		}

		.card {
			border: solid 1px var(--color-error);
		}
	}

	&.with-warning {
		.activity-card__time-icon {
			fill: var(--color-warning);
		}

		.activity-card__time-text {
			color: var(--color-warning);
		}

		.card {
			border: solid 1px var(--color-warning);
		}
	}
}

.activity-card__header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	column-gap: 16px;
	margin: 24px 0 8px;
}

.activity-card__time {
	align-items: center;
	display: flex;
	flex-direction: row;
}

.activity-card__time-icon {
	fill: var(--color-neutral-40);
	height: 17px;
	width: 17px;
}

.activity-card__time-text {
	color: var(--color-neutral-40);
	font-size: $font-body-extra-small;
	line-height: 17px;
	margin-left: 4px;
}

.activity-card__share-button svg {
	margin-right: 5px;
}

.activity-card__share-button.button.is-borderless.is-primary {
	margin: 0;
	color: var(--color-neutral-40);
	font-size: $font-body-extra-small;
	line-height: $font-body;
}

.activity-card__share-heading {
	font-size: 1rem;
	font-weight: 600;
	text-align: left;
	margin-bottom: 0.25rem;
}

.activity-card__share-description {
	font-size: 0.875rem;
	margin-bottom: 0.75rem;
	text-align: left;
}

.activity-card__share-popover {
	width: 340px;
}

.activity-card__share-popover .popover__inner {
	padding: 1rem;
}

.activity-card__share-form {
	display: flex;
}

input[type="text"].form-text-input.activity-card__share-email {
	margin-right: 0.5rem;
}

.activity-card__share-submit {
	width: 32%;

	&.form-button {
		margin: 0;
	}
}

.activity-card__share-error {
	color: var(--color-error);
	text-align: left;
	margin-top: 0.25rem;
}

.activity-card__activity-description {
	margin: 1rem 0 0.5rem;
	font-size: $font-body;
	word-wrap: break-word;

	@include breakpoint-deprecated( ">660px" ) {
		font-size: $font-title-small;
	}
}

.activity-card__activity-media {
	margin-bottom: 16px;
}

.activity-card__content {
	margin-top: 32px;
}

.activity-card__streams-item {
	margin: 24px 0;
}

.activity-card__streams-item-title {
	margin-bottom: 12px;
	font-size: $font-body-extra-small;
	text-align: left;
}
