.sh-select {
  position: relative;
  width: 100%;

  .sh-select-selection {
    align-items: center;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    position: relative;

    input {
      height: 100%;
      left: 0;
      opacity: 0;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: -1;
    }
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding-right: 10px;
  }

  .tag {
    align-items: center;
    background: #e0e0e0;
    border-radius: 3px;
    display: flex;
    gap: 4px;
    padding: 2px 5px;
  }

  .remove-tag {
    cursor: pointer;
    height: 16px;
    position: relative;
    transform: scale(.75);
    transform-origin: right;
    width: 16px;

    &::before,
    &::after {
      background-color: #707070;
      border-radius: 99px;
      content: "";
      height: 2px;
      left: 0;
      position: absolute;
      top: calc(50% - 1px);
      transform: rotate(45deg);
      width: 100%;
    }

    &::after {
      transform: rotate(-45deg);
    }
  }

  .select-filter {
    background-color: #fff;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 99;
  }

  .filter-form {
    align-items: center;
    background-color: #f2f2f2;
    border-radius: 6px;
    display: flex;
    gap: 6px;
    height: 32px;
    padding: 0 10px;

    input {
      background-color: transparent;
      border: none;
      flex: 1 0 0;
      font-size: 14px;
      font-weight: 400;
      height: 100%;
      padding: 0;
    }
  }

  .content-single {
    padding: 10px 5px;
  }

  .dropdown-icon {
    height: 18px;
    position: relative;
    width: 18px;

    &::before,
    &::after {
      border-top: 1px solid #ccc;
      content: "";
      position: absolute;
      top: 50%;
      transition: .3s;
      width: 58%;
    }

    &::before {
      left: 0;
      transform: rotate(45deg);
    }

    &::after {
      right: 0;
      transform: rotate(-45deg);
    }
  }

  .results-zone {
    align-items: flex-end;
    display: flex;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }

  .placeholder-text {
    color: #707070;
    white-space: nowrap;
  }

  &.select-disabled .sh-select-selection {
    background-color: #d8d8d8;
    border-color: #c5c5c5;
    cursor: not-allowed;
  }

  &.select-disabled .results-zone>span {
    color: #707070;
  }

  &.select-disabled .dropdown-icon::before,
  &.select-disabled .dropdown-icon::after {
    border-color: #808080;
  }
}

.sh-select .select-multiple {
  padding: 6px 10px;
}

.sh-select-content {
  background: white;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 11px 15px -7px rgba(0, 0, 0, .2), 0 24px 38px 3px rgba(0, 0, 0, .14), 0 9px 46px 8px rgba(0, 0, 0, .12);
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 8px);
  width: 100%;
  z-index: 1000;

  .sh-select-option {
    cursor: pointer;
    margin: 3px 0;
    position: relative;

    label {
      align-items: center;
      border-radius: 3px;
      display: flex;
      gap: 14px;
      justify-content: space-between;
      margin: 0;
      padding: 4px 5px 4px 6px;
      transition: .3s;
    }

    label:hover,
    label.option_checked {
      background-color: #f0f0f0;
    }

    input {
      cursor: pointer;
      height: 100%;
      left: 0;
      margin: 0;
      opacity: 0;
      padding: 0;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: 9;
    }

    .remark {
      background-color: transparent;
      flex: 14px 0 0;
      height: 14px;
      width: 14px;
    }
  }

  input:checked~.remark {
    background: transparent url("../images/ico-check.svg") no-repeat center;
  }

  .content-group {
    margin: 9px 0 11px;
    padding: 0 12px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  .content-group>span {
    color: #008964;
    display: inline-block;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
  }

  .content-group .sh-select-option {
    padding-left: 8px;
  }

  .loading {
    padding: 20px;
    text-align: center;
  }
}

.sh-select-content.drop_down {
  transform-origin: top;
}

.sh-select-content.drop_up {
  bottom: calc(100% + 8px);
  box-shadow: 0 -11px 15px -7px rgba(0, 0, 0, .2), 0 -24px 38px 3px rgba(0, 0, 0, .14), 0 -9px 46px 8px rgba(0, 0, 0, .12);
  top: auto;
  transform-origin: bottom;
}

.sh-select-content.display_center {
  left: 50%;
  max-height: min(600px, 80vh);
  max-width: calc(100% - 32px);
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
}

.sh-select-content .text {
  -webkit-box-orient: vertical;
  display: -webkit-box;
  font-size: 14px;
  font-weight: 400;
  -webkit-line-clamp: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sh-select-content .text.clam-2 {
  -webkit-line-clamp: 2;
}

.sh-select-content .text.clam-3 {
  -webkit-line-clamp: 3;
}

.sh-select.open .dropdown-icon {
  &::before {
    transform: rotate(135deg);
  }

  &::after {
    transform: rotate(-135deg);
  }
}

.select-header {
  background-color: #ececec;
  border-radius: 5px 5px 0 0;
  display: flex;
  justify-content: center;
  padding: 10px 10px 11px;
  position: relative;
}

.select-header h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.select-header .close-select {
  background-color: transparent;
  border: none;
  cursor: pointer;
  height: 20px;
  padding: 0;
  position: absolute;
  right: 10px;
  top: 11px;
  transform: scale(.88);
  width: 20px;

  &:before,
  &:after {
    background-color: #4f4f4f;
    border-radius: 9px;
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    top: calc(50% - 1px);
    transform: rotate(45deg);
    width: 100%;
  }


  &:after {
    transform: rotate(-45deg);
  }
}