.notifications-button {
	position: relative;
	float: right;
	width: 16px;
	height: 16px;
	display: block;
	border-radius: 50%;
	text-align: center;
	padding: 10px;
	opacity: .6;

	&:hover,
	&:focus {
		opacity: 1;
	}

	&.hasNotifications {
		opacity: 1 !important;

		&:hover,
		&:focus {
			opacity: .6 !important;
		}
	}

	&,
	img {
		cursor: pointer;
	}
}

.notification-container {
	display: none;
	right: 13px;
	width: 350px;
	max-width: 90%;
	min-height: 100px;

	.notification-wrapper {
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		max-height: 260px;
	}

	.emptycontent {
		margin: 50px 0;

		h2 {
			font-weight: 300;
			font-size: 16px;
		}
	}

	.dismiss-all {
		display: flex;
		color: var(--color-text-maxcontrast);
		padding: 10px;
		margin-left: auto;
		margin-right: auto;

		&:hover,
		.icon-close {
			opacity: 1;
			cursor: pointer;
		}

		.icon-close {
			opacity: .5;
			margin-right: 5px;
		}
	}

	/* Menu arrow */
	&:after {
		right: 101px;
	}
}


.notification {
	padding-bottom: 12px;

	&:not(:last-child) {
		border-bottom: 1px solid var(--color-border);
	}

	.notification-heading {
		display: flex;

		.notification-time {
			color: var(--color-text-maxcontrast);
			margin: 13px 0 13px auto;
		}

		.notification-delete {
			display: flex;
			color: var(--color-text-maxcontrast);
			padding: 14px;

			&:hover,
			.icon-close {
				opacity: 1;
				cursor: pointer;
			}

			.icon-close {
				opacity: .5;
			}
		}
	}


	.notification-subject,
	.notification-message,
	.notification-full-message,
	.notification-actions {
		margin: 0 12px 12px;
	}

	.notification-subject {
		display: flex;

		& > span.text,
		& > a > span.text {
			padding-left: 10px;
		}
	}

	.notification-message,
	.notification-full-message {
		line-height: 20px;
		opacity: .57;
	}

	img.notification-icon {
		width: 32px;
		height: 32px;
		display: flex;
	}

	.notification-message img,
	.notification-full-message img,
	.notification-subject img:not(.notification-icon) {
		max-width: 32px;
		max-height: 32px;
		margin: 0 5px 5px 0;
	}

	strong {
		font-weight: bold;
		opacity: 1;
	}

	.avatar-name-wrapper {
		position: relative;
		cursor: pointer;

		.avatar {
			vertical-align: middle;
			display: inline-block;
			margin: 0 5px 3px;
		}
	}

	.notification-actions {
		.action-button.primary {
			color: var(--color-primary-text);
		}

		&:first-child {
			margin-left: auto;
		}
	}
}
