/* NL Notifications — in-app / web bell */

.nl-notif-bell {
	position: relative;
	display: inline-block;
	color: inherit;
}

.nl-notif-floating {
	position: fixed;
	bottom: 18px;
	inset-inline-end: 18px;
	z-index: 99990;
}

.nl-notif-floating .nl-notif-bell__btn {
	background: var(--nl-brand-bg, var(--nl-brand, #9B1847));
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}

.nl-notif-bell__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	line-height: 0;
}

.nl-notif-bell__badge {
	position: absolute;
	top: 2px;
	inset-inline-end: 2px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: #e63946;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}

/* Force light theme on the whole panel regardless of device/site dark mode */
.nl-notif-panel {
	color-scheme: light;
	position: absolute;
	inset-inline-end: 0;
	top: calc(100% + 8px);
	width: 340px;
	max-width: 88vw;
	max-height: 70vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--nl-glass-bg, #fff) !important;
	-webkit-backdrop-filter: var(--nl-glass-blur, none) !important;
	backdrop-filter: var(--nl-glass-blur, none) !important;
	color: #222 !important;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
	border: 1px solid var(--nl-glass-border, transparent);
	z-index: 99991;
}

.nl-notif-floating .nl-notif-panel {
	bottom: calc(100% + 8px);
	top: auto;
}

.nl-notif-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 14px;
	border-bottom: 1px solid #eee;
	background: linear-gradient(135deg, #9B1847 0%, #D4336E 100%) !important;
	color: #fff !important;
	flex-shrink: 0;
}

.nl-notif-panel__title {
	font-weight: 700;
	font-size: 15px;
	flex: 1 1 auto;
	text-align: center;
	color: #fff !important;
	background: transparent !important;
}

/* ── Back button — full reset then our styles ── */
.nl-notif-panel__head .nl-notif-panel__back {
	all: unset;
	box-sizing: border-box !important;
	display: none;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 34px !important;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	aspect-ratio: 1 / 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .18) !important;
	color: #fff !important;
	cursor: pointer !important;
	line-height: 0 !important;
	outline: none !important;
}

.nl-notif-panel__head .nl-notif-panel__back:hover {
	background: rgba(255, 255, 255, .32) !important;
}

.nl-notif-panel__back svg {
	display: block !important;
	pointer-events: none !important;
	fill: #fff !important;
}

/* Arrow points → for RTL "go back" */
[dir="rtl"] .nl-notif-panel__back svg {
	transform: scaleX(-1) !important;
}

/* ── Mark-all button — full reset then our styles ── */
.nl-notif-panel__head .nl-notif-panel__markall {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 28px !important;
	width: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	height: 28px !important;
	min-height: 28px !important;
	max-height: 28px !important;
	aspect-ratio: 1 / 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, .20) !important;
	color: #fff !important;
	cursor: pointer !important;
	line-height: 0 !important;
	outline: none !important;
}

.nl-notif-panel__head .nl-notif-panel__markall:hover {
	background: rgba(255, 255, 255, .38) !important;
}

.nl-notif-panel__markall svg {
	display: block !important;
	pointer-events: none !important;
	fill: #fff !important;
}

/* ── Notification list ── */
.nl-notif-panel__list {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	overflow-y: auto !important;
	flex: 1 1 auto !important;
	background: #fff !important;
}

.nl-notif-item {
	display: flex !important;
	gap: 10px !important;
	padding: 12px 14px !important;
	border-bottom: 1px solid #f2f2f2 !important;
	cursor: pointer !important;
	text-decoration: none !important;
	color: #222 !important;
	background: #fff !important;
}

.nl-notif-item:hover {
	background: #faf5f7 !important;
}

.nl-notif-item.is-unread {
	background: #fdeef3 !important;
}

.nl-notif-item__img {
	flex: 0 0 auto !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 8px !important;
	object-fit: cover !important;
	background: #eee !important;
}

.nl-notif-item__body {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	background: transparent !important;
}

.nl-notif-item__title {
	font-weight: 600 !important;
	font-size: 14px !important;
	color: #222 !important;
	background: transparent !important;
	margin: 0 0 2px !important;
}

.nl-notif-item__icon {
	display: inline-block !important;
	margin-inline-end: 4px !important;
	font-size: 14px !important;
	line-height: 1 !important;
	background: transparent !important;
}

.nl-notif-item__text {
	font-size: 13px !important;
	color: #555 !important;
	background: transparent !important;
	margin: 0 0 4px !important;
	overflow-wrap: anywhere !important;
}

.nl-notif-item__time {
	font-size: 11px !important;
	color: #999 !important;
	background: transparent !important;
}

.nl-notif-empty,
.nl-notif-loading {
	padding: 22px 14px !important;
	text-align: center !important;
	color: #888 !important;
	font-size: 13px !important;
	background: #fff !important;
}
