.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 200ms ease-in;
  pointer-events: none;
  margin: 0;
  padding: 0;

  -webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
  overflow-y: auto;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 10px;
}

@media (min-width: 768px) {
  .modal-dialog {
    max-width: 600px;
    margin: 30px auto;
  }
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  background-clip: padding-box;
  border-radius: 4px;
  outline: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E5E5E5;
}

.modal-title {
  color: black;
  font-size: 16px;
  font-weight: 400;
}

.close {
  float: right;
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: .5;
  text-decoration: none;
}

.close:focus, .close:hover {
  color: #000;
  text-decoration: none;
  cursor: pointer;
  opacity: .75;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 16px 20px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  border-top: 1px solid #E5E5E5;
}

.scrollable {
  height: 400px;
  overflow-y: auto;
}

.scrollable::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: #EFEFEF;
}

.scrollable::-webkit-scrollbar-thumb {
  background-color: #C4C4C4;
  border-radius: 4px;
}

.scrollable::-webkit-scrollbar-thumb:hover {
  background-color: #AFAFAF;
}

.sortable {
  margin: 0;
  padding: 0 10px 0 0;
  list-style: none;
}

.sortable__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid #E5E5E5;
  border-radius: 4px;
  background-color: white;
  padding: 12px 15px;
  width: 100%;
  margin-bottom: 5px;
}

.sortable__item:last-child {
  margin-bottom: 0;
}

.sortable__item svg {
  fill: #C4C4C4;
  margin-right: 15px;
  flex-shrink: 0;
  cursor: grab;
}

.sortable__item .sortable-chosen svg {
  cursor: grabbing;
}

.sortable__item svg:hover {
  fill: #9D9D9D;
}

.sortable__checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.sortable__checkbox input {
  opacity: 0;
  visibility: hidden;
}

.sortable__label {
  position: relative;
  padding-left: 33px;
  cursor: pointer;
  display: unset;
  width: unset;
  height: unset;
  border: unset;
  background-image: unset!important;
  background-color: unset!important;
}

.sortable__label:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid #cfd0d0;
  cursor: pointer;
}

.sortable__label span {
  display: block;
  width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sortable__checkbox input:checked + label:before {
  background-image: url(../img/check.svg);
  background-color: var(--color);
  background-repeat: no-repeat;
  background-size: 90%;
  background-position: 1px center;
  border-color: var(--color);
}

.sortable__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-left: auto;
  flex-shrink: 0;
}

.sortable__controls button {
  font-size: 12px;
  background: #EBEBEB;
  border: 0;
  outline: 0;
  border-radius: 2px;
  padding: 3px 8px;
  cursor: pointer;
  margin-right: 10px;
  transition: all 0.1s ease-in-out;
}

.sortable__controls button:last-child {
  margin-right: 0;
}

.sortable__controls button:hover {
  color: white;
  background: var(--color);
}

.modal-footer__inner-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.modal-footer__inner-wrapper button {
  width: 100px;
}

.modal-footer__inner-wrapper button:first-child {
  margin-right: 10px;
}

.modal-footer__main-controls {
  margin-left: auto;
}

.modal-footer__field {
  max-width: 334px;
  margin-right: 12px;
  width: 100%;
}

.modal-footer__field input {
  height: 35px;
}

.modal-footer__field input::placeholder {
  opacity: 50%;
}

.modal-footer__field .modal-field-error {
  color: red;
  font-size: 9px;
  position: absolute;
  bottom: -13px;
  left: 1px;
}

.option-list {
  display: none;
}

.option-list__item {
  margin-bottom: 12px;
}

.option-list__item:last-child {
  margin-bottom: 0;
}

.option-list__item .sortable__label span {
  display: block;
  width: unset;
  white-space: unset;
  overflow: unset;
  text-overflow: unset;
}

.option-list__item .sortable__label:before {
  top: 0;
  transform: unset;
}

.modal-open-btn {
  display: block;
  margin: auto;
  max-width: 140px;
}

.modal-tooltip {
  position: relative;
  margin-left: auto;
  margin-right: 10px;
}

.modal-tooltip span {
  position: absolute;
  display: block;
  font-size: 12px;
  background: #fff;
  border: 1px solid #cbcbcb;
  border-radius: 4px;
  box-shadow: 0px 5px 10px 2px rgba(34, 60, 80, 0.2);
  width: 180px;
  height: auto;
  padding: 6px;
  transform: translateX(calc(-100% + 16px));
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: all 0.2s ease-in-out;
}

.modal-tooltip svg:hover + span {
  opacity: 1;
  pointer-events: auto;
}