.mas-wrapper {
  position: relative;
  display: inline-block;
  font-family: system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  position: absolute;
  top: 50%;
  right: 370px;
  transform: translateY(-50%);
}

.mas-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  padding: 6px;
  display: flex;
  align-items: center;
  color: #1d5585;
}

.mas-input-wrap {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  width: 260px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease;
  z-index: 100;
}

.mas-wrapper.active .mas-input-wrap {
  pointer-events: auto;
  opacity: 1;
}

.mas-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background: #fff;
}

.mas-results {
  margin-top: 4px;
  background: #fff;
  /*border: 1px solid #e1e1e1;*/
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  position: absolute;
  top: 72px;
  right: 0;
  width: 260px;
  z-index: 90;
}

.mas-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mas-item {
  border-bottom: 1px solid #f0f0f0;
}

.mas-item:last-child {
  border-bottom: none;
}

.mas-link {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: #222;
  font-size: 14px;
  line-height: 1.2;
}

.mas-link:hover {
  background: #f5f5f5;
}

.mas-none {
  padding: 10px 12px;
  font-size: 14px;
  color: #666;
}

.mas-load-more-wrap {
  text-align: center;
  margin: 8px 0;
}
.mas-load-more {
  background: #f0f0f0;
  border: 1px solid #d1d1d1;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}
.mas-load-more:hover {
  background: #e1e1e1;
}

@media screen and (max-width: 1220px) {

  .mas-wrapper {
    right: 394px;
  }

}

@media screen and (max-width: 700px) {

  .mas-input-wrap, .mas-results {
    right: -120px;
  }

}

@media screen and (max-width: 600px) {

  .mas-wrapper {
    right: 318px;
  }

}

@media screen and (max-width: 550px) {

  .mas-wrapper {
    right: 224px;
  }

}

.mas-input{padding-right:32px}
.mas-spinner{
  position:absolute;
  right:10px;
  top: 12px;
  opacity:0;
  pointer-events:none;
}
.mas-wrapper.mas-loading .mas-spinner{
  opacity:1;
  animation:fa-spin 1s linear infinite;
}
@keyframes fa-spin{to{transform:rotate(360deg)}}
