/* RoufaiShop — cloche de notifications (web). */

.rs-notif {
	position: relative;
	display: inline-block;
}

.rs-notif-bell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid #e3e6ee;
	border-radius: 50%;
	background: #fff;
	color: #002374;
	cursor: pointer;
	padding: 0;
	transition: border-color 0.15s;
}

.rs-notif-bell:hover {
	border-color: #002374;
}

.rs-notif-bell svg {
	fill: currentColor;
}

.rs-notif-badge {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #fe6803;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	box-sizing: border-box;
}

.rs-notif-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 340px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border: 1px solid #e3e6ee;
	border-radius: 14px;
	box-shadow: 0 12px 32px rgba(0, 35, 116, 0.12);
	z-index: 999;
	overflow: hidden;
}

.rs-notif-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	border-bottom: 1px solid #e3e6ee;
	font-weight: 700;
	color: #002374;
	font-size: 0.95rem;
}

.rs-notif-readall {
	background: none;
	border: none;
	color: #6b7280;
	font-size: 0.78rem;
	cursor: pointer;
	padding: 0;
}

.rs-notif-readall:hover {
	color: #fe6803;
}

.rs-notif-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 380px;
	overflow-y: auto;
}

.rs-notif-item {
	border-bottom: 1px solid #f1f3f8;
}

.rs-notif-item:last-child {
	border-bottom: none;
}

.rs-notif-item.is-unread {
	background: #f7f9ff;
}

.rs-notif-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	text-decoration: none;
	color: inherit;
}

.rs-notif-link:hover {
	background: #f7f8fb;
}

.rs-notif-title {
	font-weight: 600;
	font-size: 0.88rem;
	color: #1c2333;
}

.rs-notif-body {
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.45;
}

.rs-notif-time {
	font-size: 0.72rem;
	color: #a0a4b0;
}

.rs-notif-empty,
.rs-notif-loading {
	padding: 32px 16px;
	text-align: center;
	color: #6b7280;
	font-size: 0.85rem;
}

@media (max-width: 480px) {
	.rs-notif-panel {
		position: fixed;
		top: auto;
		left: 16px;
		right: 16px;
		width: auto;
	}
}
