.notifications-wrapper {
    position: relative;
    display: inline-block;
}


/* Main palette */

.notifications-palette {
    position: absolute;

    top: calc(100% + 8px);
    right: 0;

    width: 380px;
    max-height: 520px;

    background: white;

    border: 1px solid #ddd;
    border-radius: 10px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);

    overflow: hidden;

    z-index: 1000;

    display: none;
}


/* Header */

.notifications-header {
    height: 56px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eee;
}

.notifications-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

.notifications-mark-read {
    border: none;
    background: transparent;

    color: #41729F;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;
}

.notifications-mark-read:hover {
    text-decoration: underline;
}


/* Notification list */

.notifications-list {
    max-height: calc(50vh - 80px);
    overflow-y: auto;
}


/* Individual notification */

.notification-item {
    position: relative;

    display: flex;

    padding: 12px 16px;

    text-decoration: none;

    color: inherit;

    border-bottom: 1px solid #f0f0f0;

    transition: background 0.15s;
}

.notification-item:hover {
    background: #f5f6f7;
}


/* Unread notification */

.notification-item.unread {
    background: #eef6ff;
}

.notification-item.unread:hover {
    background: #e4f0ff;
}


/* Icon */

.notification-icon {
    flex: 0 0 40px;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #e9f2ff;
    color: #41729F;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 12px;
}


/* Content */

.notification-content {
    flex: 1;

    min-width: 0;

    padding-right: 10px;
}

.notification-text {
    font-size: 14px;
    line-height: 20px;

    color: #333;
}

.notification-text strong {
    font-weight: 600;
    color: #222;
}

.notification-time {
    margin-top: 4px;

    font-size: 12px;
    color: #888;
}


/* Unread indicator */

.notification-unread-dot {
    position: absolute;

    right: 12px;
    top: 50%;

    width: 8px;
    height: 8px;

    margin-top: -4px;

    border-radius: 50%;

    background: #1877f2;
}


/* Footer */

.notifications-footer {
    padding: 12px;

    text-align: center;

    border-top: 1px solid #eee;

    background: #fafafa;
}

.notifications-footer a {
    color: #41729F;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
}

.notifications-footer a:hover {
    text-decoration: underline;
}