/*
 * https://github.com/morethanwords/tweb
 * Copyright (C) 2019-2021 Eduard Kuzmenko
 * https://github.com/morethanwords/tweb/blob/master/LICENSE
 */

.popup-reacted-list {
  --size: 1.5rem;
  --custom-emoji-size: var(--size);
  --message-primary-color: var(--primary-color);
  $parent: ".popup";

  #{$parent} {
    &-container {
      width: 25rem;
      height: 600px;
      max-height: 600px;
      padding: 0;
    }

    &-header {
      min-height: 3.5625rem;
      margin: 0;
      padding: .25rem .75rem .5rem;
      border-bottom: 1px solid var(--border-color);
    }

    &-close {
      margin-top: .375rem;
      margin-inline-end: .5rem;
      height: 40px;
      order: -1;
    }
  }

  .reaction {
    --reaction-size: var(--size);
    --additional-height: .75rem;
    --margin: .5rem;
    // --background-color: var(--secondary-color);
    --background-color: var(--light-filled-primary-color);
    --counter-color: var(--primary-color);
    flex: 1 0 auto;
    justify-content: space-evenly;
    --margin-vertical: .5rem;

    &.is-chosen {
      &:not(.backwards) {
        // --counter-color: var(--primary-text-color);
        --counter-color: #fff;
      }
    }

    &-sticker-icon {
      font-size: 1.25rem !important;
      margin: 0;
      display: flex;
      align-items: center;
    }
  }

  .sidebar-left-section {
    margin-bottom: 0 !important;
  }

  /* .gradient-delimiter {
    flex: 0 0 auto;
  } */

  .tabs-container {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .tabs-tab {
    background-color: var(--surface-color);
  }

  .chatlist-chat {
    padding-inline-end: 3.25rem !important;
  }
}
