#o2-link-modal {
  position: fixed;
  top: 0;
  left: 50%;

  display: none;
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  width: 500px;
  overflow: hidden;
  margin-left: -250px;
  margin-top: -125px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100105;
  transition: height 0.2s, margin-top 0.2s;

  height: 600px;
  margin-top: -300px;
}

.o2-link-modal-title {
  background: #fff;
  border-bottom: 1px solid #dcdcde;
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
  margin: 0;
  padding: 0 36px 0 16px;
}

.o2-link-modal-close {
  // color: #646970;
  // padding: 0;
  // position: absolute;
  // top: 0;
  // right: 0;
  // width: 36px;
  // height: 36px;
  // text-align: center;
  // background: 0 0;
  // border: none;
  // cursor: pointer;
}

.o2-modal-close {
  color: #646970;
  padding: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 36px;
  text-align: center;
  background: 0 0;
  border: none;
  cursor: pointer;

  &::before {
    font: normal 20px/36px dashicons;
    width: 36px;
    height: 36px;
    content: "\f158";
  }

  &:hover::before {
    color: #135e96;
  }
}

.o2-link-modal-selector {
  padding: 0 16px;
  position: absolute;
  top: calc(2.15384615em + 16px);
  left: 0;
  right: 0;
  bottom: calc(2.15384615em + 19px);
  display: flex;
  flex-direction: column;
  overflow: auto;

  input[type="text"] {
    width: 70%;
  }

  p {
    font-size: 13px;
    margin: 3px 0;
    line-height: 1.5;
  }

  span {
    display: inline-block;
    width: 120px;
    text-align: right;
    padding-right: 5px;
    max-width: 24%;
    vertical-align: middle;
    word-wrap: break-word;
  }
}

.o2-link-modal-footer {
  padding: 8px 16px;
  background: #fff;
  border-top: 1px solid #dcdcde;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.o2-link-modal-options {
  padding: 8px 0 12px;
}

.o2-link-modal-results {
  border: 1px #dcdcde solid;
  margin: 0 0 12px;
  background: #fff;
  overflow: auto;
  max-height: 290px;
  border-radius: 0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
  transition: 0.05s all ease-in-out;
  position: absolute;
  width: calc(100% - 32px);

  ul {
    margin: 0;

    li {
      margin-bottom: 0;
      border-bottom: 1px solid #f0f0f1;
      color: #2c3338;
      padding: 4px 6px 4px 10px;
      cursor: pointer;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;

      &:nth-of-type(2n) {
        background-color: #f6f7f7;
      }

      &:hover {
        background: #f0f6fc;
        color: #101517;
      }

      &.selected {
        background: #dcdcde;
        color: #2c3338;
      }

      span {
        display: block;
        flex: 1;
        max-width: 80%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
      }

      b {
        text-transform: uppercase;
        color: #646970;
        font-size: 11px;
      }
    }
  }
}

.o2-link-modal-notice {
  display: block;
  padding: 6px;
  border-left: 4px solid #72aee6;
}
