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

.popup-forward {
  $parent: ".popup";

  #{$parent} {
    &-container {
      width: 420px;
      max-width: 420px;
      //padding: 12px 20px 32.5px;
      padding: 7px 0 0 0;
      max-height: unquote('min(40.625rem, 100%)');
      height: 40.625rem;
    }

    &-header {
      flex: 0 0 auto;
      margin-bottom: 7px;
      padding: 0 1rem;

      @include respond-to(handhelds) {
        padding-left: .8125rem;
      }
    }

    &-title {
      flex-grow: 1;
      padding: 0;
      height: 100%;
    }
  }

  .selector,
  .chatlist-container {
    height: auto;
    overflow: hidden;
    display: flex;
    width: 100%;
    flex-direction: row;
    flex: 1 1 auto;
  }

  .selector {
    &-search-input {
      font-size: var(--font-size-20);
      line-height: 1;
      padding: .5rem 1.5rem;
      width: 100%;
      height: 100%;

      @include respond-to(handhelds) {
        padding-left: 1.1875rem;
      }
    }

    .chatlist {
      margin-top: 0 !important;
    }
  }

  .gradient-delimiter {
    display: none;
  }

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