/* =====================================================================
 * FASK — Centro notifiche (T5A): campanella, badge, dropdown, toast.
 * ================================================================== */
.pwscrm-fask-notif {
	position: relative;
	display: inline-flex;
	align-items: center;
	margin-right: 0.5rem;
}
.pwscrm-fask-notif__bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid #d8e0f2;
	border-radius: 999px;
	background: #fff;
	color: #2150ad;
	cursor: pointer;
}
.pwscrm-fask-notif__bell:hover {
	background: #eef2fb;
}
.pwscrm-fask-notif__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: #ed9432;
	color: #fff;
	font-size: 10px;
	line-height: 16px;
	font-weight: 700;
	text-align: center;
}
.pwscrm-fask-notif__panel {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 320px;
	max-width: 86vw;
	background: #fff;
	border: 1px solid #d8e0f2;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(33, 80, 173, 0.15);
	z-index: 1000;
	overflow: hidden;
}
.pwscrm-fask-notif--up .pwscrm-fask-notif__panel {
	top: auto;
	bottom: calc(100% + 8px);
	right: auto;
	left: 0;
}
.pwscrm-fask-notif__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 12px;
	border-bottom: 1px solid #eef2fb;
}
.pwscrm-fask-notif__title {
	font-weight: 700;
	color: #2150ad;
	font-size: 13px;
}
.pwscrm-fask-notif__all {
	border: 0;
	background: transparent;
	color: #2150ad;
	font-size: 12px;
	cursor: pointer;
}
.pwscrm-fask-notif__all:hover {
	text-decoration: underline;
}
.pwscrm-fask-notif__list {
	max-height: 60vh;
	overflow-y: auto;
}
.pwscrm-fask-notif__empty {
	padding: 18px 12px;
	text-align: center;
	color: #718096;
	font-size: 13px;
}
.pwscrm-fask-notif__item {
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #f2f5fb;
	background: #fff;
	cursor: pointer;
	font-size: 13px;
	color: #2d3748;
}
.pwscrm-fask-notif__item:hover {
	background: #f7f9fe;
}
.pwscrm-fask-notif__item.is-unread {
	background: #eef2fb;
	font-weight: 600;
}
.pwscrm-fask-notif__item.is-unread:hover {
	background: #e4ebfa;
}
.pwscrm-fask-notif__text {
	display: block;
	white-space: normal;
	word-break: break-word;
}

/* Toast in pagina per le nuove notifiche */
.pwscrm-fask-toast {
	position: fixed;
	right: 16px;
	bottom: 16px;
	max-width: 320px;
	padding: 12px 14px;
	background: #2150ad;
	color: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 26px rgba(33, 80, 173, 0.28);
	font-size: 13px;
	z-index: 2000;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}
.pwscrm-fask-toast.is-in {
	opacity: 1;
	transform: translateY(0);
}

/* Web Push (T5B): footer opt-in del pannello notifiche. */
.pwscrm-fask-notif__foot {
	border-top: 1px solid #edf2f7;
	padding: 8px 12px;
	text-align: center;
}
.pwscrm-fask-notif__push {
	border: 1px solid #2150ad;
	border-radius: 6px;
	background: transparent;
	color: #2150ad;
	font-size: 12px;
	font-weight: 600;
	padding: 6px 12px;
	cursor: pointer;
}
.pwscrm-fask-notif__push[data-fask-push-on="1"] {
	background: #2150ad;
	color: #fff;
}
.pwscrm-fask-notif__push:hover {
	border-color: #ed9432;
}

/* Bottone "Cancella tutte" (distruttivo) accanto a "Segna tutte lette" */
.pwscrm-fask-notif__all--danger {
	color: #c0392b;
}
.pwscrm-fask-notif__all--danger:hover {
	text-decoration: underline;
}
