.sdl-bell {
  position: relative;
  width: 36px;
  height: 36px;
  margin-right: 14px;
  border: 0;
  background: #f6f6f6;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.75);
  flex-shrink: 0;
}

.sdl-bell svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sdl-bell:hover {
  color: #ff4d4f;
}

.sdl-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff4d4f;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}

.sdl-bell-badge[hidden] {
  display: none !important;
}

.sdl-bell--h5 {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 80;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.sdl-bell--h5.sdl-on-member {
  position: absolute;
  top: 18px;
  right: 52px;
  box-shadow: none;
}

.sdl-msg-mask {
  position: fixed;
  inset: 0;
  z-index: 4000;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: flex-end;
}

.sdl-msg-mask[hidden] {
  display: none !important;
}

.sdl-msg-panel {
  width: min(420px, 100%);
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
}

.sdl-msg-head {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
}

.sdl-msg-head button {
  border: 0;
  background: transparent;
  color: #1677ff;
  cursor: pointer;
  font-size: 13px;
}

.sdl-msg-list {
  flex: 1;
  overflow: auto;
  padding: 8px 0;
}

.sdl-msg-empty {
  padding: 48px 20px;
  text-align: center;
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.sdl-msg-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f6f6f6;
}

.sdl-msg-item.unread {
  background: #fff1f0;
}

.sdl-msg-item:hover {
  background: #fafafa;
}

.sdl-msg-title {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.88);
  line-height: 22px;
}

.sdl-msg-excerpt {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
  line-height: 18px;
}

.sdl-msg-time {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
  .sdl-msg-panel {
    width: 100%;
  }
}
