.StickerSearch {
  container: stickers / inline-size;
  overflow-x: hidden;
  overflow-y: scroll;

  height: 100%;
  padding: 0 0.5rem;

  .helper-text {
    margin-bottom: 0.125rem;
    padding: 1rem;
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
  }

  .sticker-set {
    margin-bottom: 1rem;

    &-header {
      display: flex;
      justify-content: space-between;
      padding: 0.5rem;

      .title-wrapper {
        overflow: hidden;
      }

      .title {
        overflow: hidden;

        margin: 0;

        font-size: 1rem;
        line-height: 1.6875rem;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .count {
        margin: 0;
        color: var(--color-text-secondary);
      }

      .Button {
        flex-shrink: 0;
        margin-left: 1rem;

        &.is-added {
          color: var(--color-text-secondary);
          background: var(--color-chat-hover);

          &:hover,
          &:active {
            background: var(--color-item-active) !important;
          }
        }
      }
    }

    &-main {
      display: flex;
      flex-wrap: nowrap;
    }

    &[dir="rtl"] {
      .title-wrapper {
        text-align: right;
      }

      .Button {
        margin-right: 1rem;
        margin-left: 0;
      }
    }
  }

  .StickerButton {
    margin: 0.125rem;

    @media (max-width: 380px) {
      &:last-child {
        display: none;
      }
    }
  }
}

@container (max-width: 376px) {
  .StickerSearch .StickerButton:last-child {
    display: none;
  }
}
