/* Sticky Notifications - theme-neutral, responsive presentation layer. */
.sn-stack {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 auto 16px;
	max-width: 1180px;
	padding: 0 12px;
	position: relative;
	width: 100%;
	z-index: 20;
}

.sn-stack-bottom {
	margin: 16px auto 0;
}

.sn-card {
	align-items: stretch;
	background: #fff;
	border: 1px solid rgba(20, 35, 55, .14);
	border-left: 4px solid #2d6cdf;
	border-left: 4px solid var(--sn-accent, #2d6cdf);
	border-radius: 8px;
	box-shadow: 0 5px 18px rgba(20, 35, 55, .10);
	box-sizing: border-box;
	display: flex;
	gap: 14px;
	margin: 0;
	overflow: hidden;
	padding: 16px 46px 16px 16px;
	position: relative;
	text-align: left;
	transition: box-shadow .18s ease, transform .18s ease, opacity .18s ease;
}

/* MyAlerts popup/page rows use this modifier when the Sticky formatter is
 * embedded in the provider's native row template.  The row itself supplies
 * the outer link; keep the card compact and preserve the premium accent. */
.myalerts-popup-row.alert--sticky_notification .sn-alert-content,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content {
	--sn-accent: #2d6cdf;
	border-left: 3px solid var(--sn-accent, #2d6cdf);
	box-shadow: none;
	margin: -4px 0;
	min-width: 0;
	padding: 10px 34px 10px 10px;
	width: 100%;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content:hover,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content:hover {
	box-shadow: none;
	transform: none;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content .sn-title,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content .sn-title {
	font-size: 14px;
	line-height: 1.35;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content .sn-message,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content .sn-message {
	font-size: 13px;
	line-height: 1.45;
}

/* The Stabilizer/MyAlerts shell clips the first child of a row to two lines.
 * A Sticky card is deliberately a complete notification: title, rich message
 * and CTA must remain readable in the widened dropdown. */
.myalerts-popup-row.alert--sticky_notification .myalerts-popup-row_main > div:first-child,
.usercp_private_messagebit.alert--sticky_notification .usercp_private_messagebit_main > div:first-child {
	max-height: none;
	overflow: visible;
	text-overflow: clip;
	white-space: normal;
}

.myalerts-popup-row.alert--sticky_notification .myalerts-popup-row_main > div:first-child > a,
.usercp_private_messagebit.alert--sticky_notification .usercp_private_messagebit_main > a {
	display: block;
	max-height: none;
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content .sn-media,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content .sn-media {
	flex-basis: 34px;
	min-height: 34px;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content .sn-media-icon,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content .sn-media-icon {
	height: 32px;
	width: 32px;
	font-size: 15px;
}

.myalerts-popup-row.alert--sticky_notification .sn-alert-content .sn-media-image,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content .sn-media-image {
	height: 34px;
	width: 44px;
}

.sn-card:hover {
	box-shadow: 0 8px 24px rgba(20, 35, 55, .15);
	transform: translateY(-1px);
}

/* MyAlerts owns the popup/list row around the formatter output.  Keep the
 * Sticky card compact inside that shell and scope every rule to our alert
 * code so other MyAlerts providers retain the board theme unchanged. */
.myalerts-popup-row.alert--sticky_notification .sn-alert-content,
.usercp_private_messagebit.alert--sticky_notification .sn-alert-content {
	border-left-width: 3px;
	border-radius: 6px;
	box-shadow: none;
	margin: -4px 0;
	min-width: 0;
	padding: 10px 38px 10px 10px;
	transform: none;
	width: 100%;
}

.myalerts-popup-row.alert--sticky_notification:hover .sn-alert-content,
.usercp_private_messagebit.alert--sticky_notification:hover .sn-alert-content {
	box-shadow: 0 3px 12px rgba(20, 35, 55, .12);
}

.myalerts-popup-row.alert--sticky_notification .sn-media,
.usercp_private_messagebit.alert--sticky_notification .sn-media {
	flex-basis: 38px;
	min-height: 38px;
}

.myalerts-popup-row.alert--sticky_notification .sn-media-icon,
.usercp_private_messagebit.alert--sticky_notification .sn-media-icon {
	height: 34px;
	width: 34px;
}

.myalerts-popup-row.alert--sticky_notification .sn-media-image,
.usercp_private_messagebit.alert--sticky_notification .sn-media-image {
	height: 38px;
	width: 52px;
}

.myalerts-popup-row.alert--sticky_notification .sn-title,
.usercp_private_messagebit.alert--sticky_notification .sn-title {
	font-size: 14px;
	margin-bottom: 2px;
}

.myalerts-popup-row.alert--sticky_notification .sn-message,
.usercp_private_messagebit.alert--sticky_notification .sn-message {
	font-size: 12px;
	line-height: 1.4;
	/* Sticky cards are intentionally complete in the MyAlerts dropdown.  The
	 * native row may clip provider messages, but truncating here would hide
	 * administrator-authored HTML and make the card unreadable. */
	max-height: none;
	overflow: visible;
	white-space: normal;
}

/* Muting suppresses the animated unread indicator without deleting or marking
 * any alert read. The next request applies the same preference to MyAlerts'
 * enabled-type filter, while this rule keeps the current page responsive. */
body.sn-alerts-muted #myalerts_headericon > span.stabilizer-member-icon,
body.sn-alerts-muted #headerpm-popup_holder > .headerpm-popup_icon > span.stabilizer-member-icon {
	animation: none !important;
	background-color: transparent !important;
	opacity: .3 !important;
	filter: saturate(.3) brightness(.72) !important;
}


.myalerts-popup-row.alert--sticky_notification .sn-cta,
.usercp_private_messagebit.alert--sticky_notification .sn-cta {
	font-size: 12px;
	margin-top: 6px;
}

.sn-alert-dismiss {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: 20px;
	height: 30px;
	justify-content: center;
	line-height: 1;
	opacity: .55;
	padding: 0;
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	transition: background .15s ease, opacity .15s ease;
	width: 30px;
	z-index: 3;
}

.sn-alert-dismiss:hover,
.sn-alert-dismiss:focus {
	background: rgba(0, 0, 0, .08);
	opacity: 1;
}

.sn-alert-dismiss:focus {
	outline: 2px solid var(--sn-accent, #2d6cdf);
	outline-offset: 2px;
}

.myalerts-popup-row.alert--sticky_notification.sn-alert-enhanced .myalerts-popup-row_icon,
.myalerts-popup-row.alert--sticky_notification.sn-alert-enhanced .myalerts-popup-row_avatar,
.usercp_private_messagebit.alert--sticky_notification.sn-alert-enhanced .myalerts-popup-row_icon,
.usercp_private_messagebit.alert--sticky_notification.sn-alert-enhanced .usercp_private_messagebit_avatar {
	display: none;
}

@media (max-width: 640px) {
	.myalerts-popup-row.alert--sticky_notification .sn-alert-content,
	.usercp_private_messagebit.alert--sticky_notification .sn-alert-content {
		padding: 9px 36px 9px 8px;
	}
}

.sn-card.sn-is-closing {
	opacity: 0;
	transform: translateY(-5px);
}

.myalerts-popup-row.sn-is-closing,
.usercp_private_messagebit.sn-is-closing {
	opacity: 0;
	transform: translateY(-5px);
	transition: opacity .18s ease, transform .18s ease;
}

.sn-media {
	align-items: center;
	display: flex;
	flex: 0 0 52px;
	justify-content: center;
	min-height: 52px;
}

.sn-media-icon {
	align-items: center;
	background: rgba(45, 108, 223, .10);
	background: color-mix(in srgb, var(--sn-accent, #2d6cdf) 12%, #fff);
	border-radius: 50%;
	color: #2d6cdf;
	color: var(--sn-accent, #2d6cdf);
	display: inline-flex;
	font-size: 22px;
	height: 48px;
	justify-content: center;
	width: 48px;
}

.sn-media-image {
	border-radius: 6px;
	display: block;
	height: 52px;
	object-fit: cover;
	width: 72px;
}

.sn-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sn-title {
	color: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 5px;
}

.sn-message {
	color: inherit;
	font-size: 14px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.sn-message img {
	height: auto;
	max-width: 100%;
}

.sn-message a {
	text-decoration: underline;
}

.sn-cta {
	align-items: center;
	color: #2d6cdf;
	color: var(--sn-accent, #2d6cdf);
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	gap: 4px;
	margin-top: 10px;
	text-decoration: none;
}

.sn-cta:hover,
.sn-cta:focus {
	text-decoration: underline;
}

.sn-cta:focus {
	outline: 2px solid #2d6cdf;
	outline: 2px solid var(--sn-accent, #2d6cdf);
	outline-offset: 2px;
}

.sn-dismiss {
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: inherit;
	cursor: pointer;
	font-size: 24px;
	height: 34px;
	line-height: 30px;
	opacity: .55;
	padding: 0;
	position: absolute;
	right: 9px;
	text-align: center;
	top: 9px;
	transition: background .15s ease, opacity .15s ease;
	width: 34px;
}

.sn-dismiss:hover,
.sn-dismiss:focus {
	background: rgba(0, 0, 0, .08);
	opacity: 1;
}

.sn-dismiss:focus {
	outline: 2px solid #2d6cdf;
	outline: 2px solid var(--sn-accent, #2d6cdf);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sn-card {
		transition: none;
	}
}

@media (prefers-color-scheme: dark) {
	.sn-card {
		background: #1b2028;
		border-color: rgba(255, 255, 255, .16);
		color: #edf2f7;
	}
	.sn-media-icon {
		background: rgba(255, 255, 255, .10);
	}
}

@media (max-width: 640px) {
	.sn-stack {
		gap: 8px;
		padding: 0 8px;
	}
	.sn-card {
		gap: 10px;
		padding: 13px 40px 13px 12px;
	}
	.sn-media {
		flex-basis: 38px;
		min-height: 38px;
	}
	.sn-media-icon {
		font-size: 17px;
		height: 36px;
		width: 36px;
	}
	.sn-media-image {
		height: 40px;
		width: 54px;
	}
	.sn-title {
		font-size: 15px;
	}
	.sn-message {
		font-size: 13px;
	}
}
