.root {
  display: flex;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  transform: translateX(100%);
  transition: transform 0.5s ease-out;

  @media (min-width: 448px) {
    transform: translateX(448px);
  }
}

.rootAppear {
  transform: translateX(0);
}

.rootDisappear {
  transition: transform 0.5s ease-in;
}

.sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  background: rgb(var(--primary-background-color));
  max-width: 100%;
  width: 100%;
  height: 100%;

  @media (min-width: 448px) {
    width: 400px;
  }
}

.closeButtonWrapper {
  position: absolute;
  z-index: 1;
  right: 10px;
  top: 18px;
  box-sizing: border-box;
  color: rgb(var(--secondary-text-color));

  @media (min-width: 448px) {
    position: initial;
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
    color: rgb(var(--white-color));
    text-align: right; /* Position close button at right */
  }
}

.header {
  display: flex;
  padding: 16px;
  flex-shrink: 0;
  align-items: center;
}

.content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.errorContent {
  align-self: center;
  text-align: center;
  margin: auto;
}

.error {
  font-size: 14px;
  margin: 0 0 16px;
}

.content::-webkit-scrollbar {
  width: 10px;
}

.content::-webkit-scrollbar-track {
  background: unset;
  border-radius: 3px;
}

.content::-webkit-scrollbar-thumb {
  background-color: rgb(var(--primary-background-color));
  border-radius: 5px;
  border: 2px solid rgb(var(--white-color));
}

.footer {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px;
  text-align: center;
}

.avatar {
  flex-shrink: 0;
  height: 32px;
  width: 32px;
  margin-right: 8px;
}

.info {
  max-width: 100%;
  margin: 0;
  padding-right: 8px;
  overflow: hidden;
  line-height: 1;
}

.name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
}

.id {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--color13);
}

.signout {
  margin-left: auto;
  margin-right: 28px;
  color: rgb(var(--secondary-text-color));

  &:hover {
    color: inherit;
  }

  @media (min-width: 448px) {
    margin-right: 0;
  }
}

.titleWrapper {
  position: sticky;
  top: 0;
  left: 0;
  margin: 0 0 4px;
  background-color: rgb(var(--primary-background-color));
  z-index: 1;

  &::after {
    position: absolute;
    top: 100%;
    left: 0;
    content: '';
    width: 100%;
    height: 20px;
    background-image: linear-gradient(
      0deg,
      rgba(var(--primary-background-color), 0),
      rgba(var(--primary-background-color), 1)
    );
  }
}

.title {
  display: inline;
  margin: 0;
  padding-right: 6px;
  vertical-align: middle;
}

.counterWrapper {
  display: inline-block;
  vertical-align: middle;
}

.preloader {
  margin: auto;
  color: var(--color13);
}

.emptyState {
  margin: auto;
  color: var(--color13);
}

.loadMoreWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 35px;
  flex-shrink: 0;
}
