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