/* Notification card and views */
.notification-card {
	background-color: var(--core-primary);
	box-shadow: 0 0 8px 0 rgb(0 0 0 / 50%);
	display: flex;
	flex-direction: column;
	font-family: var(--notification-font-family);
	min-height: 120px;
	padding: 8px 10px;
	margin: 0 5px;
}

.notification-card.new {
	box-shadow: 0 0 9px 0 var(--notification-highlight-border-color);
}

.notification-card.read {
	background-color: var(--core-primary-opacity);
	color: var(--font-shadow-light);
}

.notification-day {
	color: var(--font-shadow-light);
	font-size: var(--font-size);
	font-weight: bold;
	margin: 10px auto;
	padding: 0 0 0 5px;
}

.notification-card__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.notification-card__header .default-img {
	margin-right: 8px;
}

.notification-card__title {
	display: block;
	font-size: var(--font-size-large);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-right: auto;
	width: 100%;
}

.notification-card__more-options__no-toggle,
.notification-card__more-options__toggle {
	cursor: pointer;
	white-space: nowrap;
	display: grid;
	grid-template-rows: 30px;
	align-items: center;
	grid-template-columns: minmax(80px, auto);
	justify-items: end;
	margin-left: 2px;
}

.js-toasts .notification-card__more-options__no-toggle,
.js-toasts .notification-card__more-options__toggle {
	grid-template-columns: 25px 20px;
}

.notification-card__more-options__toggle .notification-card_context_menu,
.notification-card__more-options__toggle:hover .notification-card_timestamp {
	display: none;
}

.notification-card__more-options__no-toggle .notification-card_context_menu,
.notification-card__more-options__toggle:hover .notification-card_context_menu {
	display: flex;
}

.notification-card__dismiss.finsemble-icon__btn i {
	font-size: var(--titleBar-icon-font-size);
}

.notification-card__more-options__no-toggle .notification-card__dismiss:hover {
	color: var(--titleBar-button-hover-negative-color);
}

.notification-card__body {
	gap: 10px;
	display: flex;
	flex-direction: row;
	font-size: var(--font-size-large);
	margin-top: 8px;
}

.notification-card__body_text {
	display: -webkit-box; /* stylelint-disable-line */
	-webkit-box-orient: vertical; /* stylelint-disable-line */
	-webkit-line-clamp: 4;
	color: var(--core-primary-5);
	overflow: hidden;
}

.notification-card__body_img_container {
	width: 50px;
	height: 50px;
	padding-bottom: 5px;
}

.notification-card__body_img_container img {
	width: inherit;
	height: inherit;
}

.notification-card.read .notification-card__body_text {
	color: var(--font-color-1-shadow);
}

.actions-panel {
	max-width: 120px;
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	margin-left: auto;
}

.actions-panel__btn:hover {
	opacity: 0.75;
}

.notification-card .overflow-menu__container,
.notification-card.read .overflow-menu__container {
	color: var(--font-color);
}

.notification-card__header img {
	object-fit: contain;
	margin-right: 8px;
	max-width: 18px;
	max-height: 18px;
	width: auto;
	height: auto;
}

.finsemble-icon__btn {
	align-items: center;
	color: var(--core-primary-5);
	cursor: pointer;
	display: flex;
	height: 24px;
	justify-content: center;
	position: relative;
	width: 24px;
}

.finsemble-icon__btn.active {
	color: var(--accent-primary);
}

.finsemble-icon__btn:hover:not(.no-hover) {
	background: var(--menu-actions-hover-color);
	border-radius: 50%;
}

.finsemble-icon__btn i {
	font-size: var(--font-size-large);
}

/* fix for storybook - css not included in Finsemble is bleeding in somehow */
#notifications-toasts .divider::before {
	content: none;
}
