:host {
  display: block;
  position: relative;
  width: 100%;
}

.search-wrapper {
  margin-top: 35px;
  position: relative;
  height: 60px;
  border-radius: 40px;
  border: 1.5px solid #9cb1c6;
  outline: none;
  display: flex;
  align-items: center;

  &.branch {
    border: 1.5px solid #c6cbd0;
  }
}

.search-box {
  width: 100%;
  height: 49px;
  position: relative;
  outline: none;
  border: none;
  background-color: transparent;
  margin-left: 20px;
  padding-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-bottom: 5px;
  color: black;
  font-weight: bold;
  font-size: 21px;
  z-index: 7;
  caret-color: #f70400;
}

.autocomplete {
  position: relative;
  left: 21px;
  top: -57px;
  z-index: 1;
  color: silver;
  font-weight: bold;
  font-size: 21px;
  width: 180%;
  height: 49px;
  outline: none;
  border: none;
  background-color: white;
}

.autocomplete-result-item {
  width: 90%;
  padding-top: 12px;
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: 12px;

  span {
    font-size: 16px;
    color: #000000;
    cursor: pointer;
  }
}

.autocomplete-result-item-ipad {
  padding-top: 15px;
  padding-bottom: 15px;
}

.active {
  background-color: #e6eff9;
}

.autocomplete-wrapper {
  overflow: inherit;
  position: absolute;
  box-shadow: 0 0 24px 2px #dce2e9;
  background-color: white;
  width: 100%;
  margin-top: 10px;
  z-index: 8;
  border-radius: 4px;
  padding-top: 12.5px;
  max-height: 255px;
  overflow: scroll;
  @media screen and (max-height: 1024px) {
    max-height: 255px;
  }
  @media screen and (max-height: 768px) {
    max-height: 255px;
  }
}

.autocompleate-ipad-padding {
  padding-bottom: 20px;
  padding-top: 20px;
  max-height: 255px;
}

.search-icon {
  z-index: 2;
  width: 24px;
  min-height: 24px;
  margin-right: 26px;
  margin-left: 20px;
  cursor: pointer;
}

.clear-icon {
  z-index: 2;
  width: 24px;
  min-height: 24px;
  margin-left: 20px;
}

.search-box::placeholder {
  color: #9cb1c6;
  text-overflow: ellipsis !important;
}

.placeholder-branch::placeholder {
  color: #c6cbd0;
}

.error-message {
  animation: shake 0.3s cubic-bezier(0.7, 0.07, 0.19, 0.97) both;
  transform: translate3d(0, 0, 0);
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  margin-left: 20px;
  z-index: 100;

  color: #f70400;
  white-space: nowrap;
}

@keyframes shake {
  10% {
    transform: translate3d(-1px, 0, 0);
  }

  50% {
    transform: translate3d(2px, 0, 0);
  }

  70% {
    transform: translate3d(-3px, 0, 0);
  }

  90% {
    transform: translate3d(3px, 0, 0);
  }
}

.spinner {
  background-image: url(/assets/images/Icon_Loading_Grey.svg);
  background-size: 30px 30px;
  width: 35px;
  height: 29px;
  padding-top: 1px;
  scale: 0.6;
  background-repeat: no-repeat;
  margin-right: 20px;
  margin-top: 15px;
  -webkit-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
