/* ──────────────────────────────────────────
   Bell Wrapper
────────────────────────────────────────── */
.cfab-bell-wrapper {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

/* ──────────────────────────────────────────
   Bell Icon
────────────────────────────────────────── */
.cfab-bell-icon {
	color: #1B3C53;
	font-size: 1em;
	transition: color 0.2s ease, transform 0.2s ease;
	display: block;
}

.cfab-bell-wrapper:hover .cfab-bell-icon,
.cfab-bell-wrapper.cfab-open .cfab-bell-icon {
	color: #1B3C53;
	opacity: 0.75;
	transform: rotate(-12deg) scale(1.1);
}

/* ──────────────────────────────────────────
   Badge
────────────────────────────────────────── */
.cfab-badge {
	position: absolute;
	top: -0.45em;
	right: -0.6em;
	min-width: 1.3em;
	height: 1.3em;
	padding: 0 0.3em;
	background: #e53e3e;
	color: #fff;
	font-size: 0.52em;
	font-weight: 700;
	line-height: 1.3em;
	text-align: center;
	border-radius: 0.65em;
	white-space: nowrap;
	box-sizing: border-box;
	pointer-events: none;
	letter-spacing: 0;
}

.cfab-badge.cfab-hidden {
	display: none;
}

/* ──────────────────────────────────────────
   Modal
────────────────────────────────────────── */
.cfab-modal {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	width: 300px;
	background: #E5EEE4;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	z-index: 999999;
	overflow: hidden;
	font-size: 0.75rem;
	color: #000000;
	animation: cfabFadeIn 0.15s ease;
}

@keyframes cfabFadeIn {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Header */
.cfab-modal-header {
	padding: 12px 16px 10px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cfab-modal-title {
	font-size: 0.85rem;
	font-weight: 600;
	color: #000000;
	letter-spacing: 0.02em;
}

/* List */
.cfab-modal-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}

.cfab-modal-list::-webkit-scrollbar {
	width: 4px;
}
.cfab-modal-list::-webkit-scrollbar-track {
	background: transparent;
}
.cfab-modal-list::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.cfab-modal-item {
	padding: 10px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	transition: background 0.15s;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.cfab-modal-item:last-child {
	border-bottom: none;
}

.cfab-modal-item:hover {
	background: rgba(0, 0, 0, 0.05);
}

/* Unread dot */
.cfab-item-dot {
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e53e3e;
	margin-top: 5px;
	opacity: 0;
}

.cfab-modal-item.cfab-unread .cfab-item-dot {
	opacity: 1;
}

.cfab-item-body {
	flex: 1;
	min-width: 0;
}

/* 타입 레이블 + 날짜 한 줄 */
.cfab-item-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 3px;
}

.cfab-type-label {
	display: inline-block;
	font-size: 0.65rem;
	font-weight: 700;
	line-height: 1;
	padding: 2px 5px;
	border-radius: 3px;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.cfab-label-notify {
	background: #1B3C53;
	color: #ffffff;
}

.cfab-label-message {
	background: #4a7c5f;
	color: #ffffff;
}

.cfab-item-title {
	font-size: 0.78rem;
	font-weight: 600;
	color: #000000;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 2px;
}

.cfab-item-content {
	font-size: 0.74rem;
	color: #000000;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cfab-item-date {
	font-size: 0.68rem;
	color: #555555;
}

/* Empty / Loading */
.cfab-modal-loading,
.cfab-modal-empty {
	padding: 20px 16px;
	text-align: center;
	color: #555555;
	font-size: 0.78rem;
}

/* Footer */
.cfab-modal-footer {
	padding: 10px 16px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	text-align: center;
}

.cfab-view-notify,
.cfab-view-message {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: #1B3C53;
	text-decoration: none;
	letter-spacing: 0.03em;
	transition: color 0.15s;
}

.cfab-view-notify:hover,
.cfab-view-message:hover {
	color: #000000;
	text-decoration: none;
}

.cfab-footer-sep {
	font-size: 0.75rem;
	color: #aaaaaa;
}

.cfab-view-notify.cfab-hidden,
.cfab-view-message.cfab-hidden,
.cfab-footer-sep.cfab-hidden {
	display: none;
}

/* 항목 내부 링크 래퍼 */
.cfab-item-inner {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	width: 100%;
}

