.bnws-container {
  position: relative;
  display: flex;
  max-width: var(--bnws-max-input-width);
}

.bnws-select {
  padding:0px;
  font-size: 1.0em;
  min-width: 100px;
  width:100%;
  height: 42px;
  max-height: 42px;
  position: relative;
  cursor: pointer;
  max-width: var(--bnws-max-input-width);
  box-sizing: border-box;
}
.phone .bnws-select {
  min-width: 100px;
  max-width: 100px;
  margin-right: var(--bnws-whitespace-l1);
}
.bnws-select .bnws-select-icon {
  position: absolute;
  right: 5px;
  user-select: none;
  top: calc(50% - 12px);
  transition: all 0.3s ease;
}

.bnws-select.opened .material-icons.bnws-select-icon {
  transform: rotate(180deg);
}

.bnws-select-list {
  position: absolute;
  left:0;
  right:0;
  background: var(--bnws-col-gray5);
  z-index: 2;
  max-height: 250px;
  overflow-y: auto;
  display:none;
  width: fit-content;
  max-width: var(--bnws-max-input-width);
  box-shadow: 0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.10),0 5px 5px -3px rgba(0,0,0,.1);
  min-width: 100%;
}
.bnws-search-box {
  padding: 5px;
  margin-bottom: 5px;
  position: sticky;
  top: 0px;
  background: var(--bnws-col-gray7);
  z-index: 2;
}
.bnws-search-field {
  width: 100%;
}
.bnws-select-item, .bnws-not-found{
  width: 100%;
  padding: 0px 8px;
  line-height: 42px;
  height: 42px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
}
.multiline .bnws-select-list .bnws-select-item {
  height: auto;
  min-height: 42px;
  line-height: unset;
  padding: var(--bnws-whitespace-l1) var(--bnws-whitespace-l2);
}

.bnws-tools-select-box-container {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--bnws-whitespace-l1);
  margin-bottom: var(--bnws-whitespace-l2);
}
.bnws-tools-select-box-container .bnws-select-item.selected {
  padding-right: 40px;
  width: max-content;
  display: inline-block;
}


.bnws-tools-select-box-container .bnws-select-item {
  display: inline-flex;
  width: auto;
  border-radius: var(--bnws-whitespace-l5);
  background: var(--bnws-col-gray6);
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.bnws-tools-select-box-container .bnws-select-item:hover {
  background: var(--bnws-col-main-medium);
}

.bnws-select .bnws-select-item, .bnws-not-found {
  border:none;
}
.bnws-select-item.placeholder,.bnws-not-found {
  color: var(--bnws-col-gray3);
}
.bnws-not-found {
  font-style: italic;
  display: none;
  cursor: unset;
}
.bnws-select-item .item-text .custom-select-item {
  display: flex;
  align-items: center;
}
.bnws-select-item .item-text .custom-select-item :not(mark) {
  margin-left: var(--bnws-whitespace-l1);
}

.bnws-select-list .bnws-select-item:hover {
  background: var(--bnws-col-main-light);
}
.bnws-select-item mark {
  background: var(--bnws-col-accent);
}
.bnws-select-item.selected {
  position: relative;
  background: var(--bnws-col-main-medium);
  height: 42px;
  line-height: 42px;
}

.bnws-select-item.selected::after {
  content: 'check';
  position: absolute;
  right: 8px;
  font-family: 'Material Icons';
  /*-webkit-font-feature-settings: 'liga';*/
  border-radius: 100%;
  font-size: 20px;
  background: #fff;
  height: 28px;
  width: 28px;
  text-align: center;
  vertical-align: center;
  line-height: 28px;
  top: 6px;
}

.bnws-tools-select-box-container .bnws-select-item.selected::after {
  content: 'close';
  color: var(--bnws-color-error);
}

.bnws-tools-select-box-container .bnws-select-item .item-text .custom-select-item :not(mark) {
  margin-left: 0;
}

.bnws-select-item .info {
  color: var(--bnws-col-gray2);
}

.bnws-container:not(.phone) .bnws-select-item .item-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 20px);
  display: inline-flex;
  align-items: center;
}

.bnws-select .bnws-selected .finf {
  display: none;
}
.bnws-select .bnws-selected .info {
  color: unset;
}

.bnws-custom-label-select .bnws-select {
  margin-right: var(--bnws-whitespace-l0);
  background: var(--bnws-col-main-medium);
  border-bottom: 2px solid var(--bnws-col-main);
  /*background: transparent;
  border: 1px solid var(--bnws-col-gray4);*/
}

.bnws-select.opened {
  background: var(--bnws-col-main-medium);
}