//
// Modal UI
//
.codevz-modal{
  display: none;
  position: fixed;
  z-index: 100101;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.codevz-modal-icon{
  z-index: 100102;
}

.codevz-modal-table{
  display: table;
  width: 100%;
  height: 100%;
}

.codevz-modal-table-cell{
  display: table-cell;
  vertical-align: middle;
  margin: 100px 0;
}

.codevz-modal-inner{
  position: relative;
  z-index: 10;
  width: 783px;
  height: 750px;
  margin: 0 auto;
  background-color: #fff;
}

.codevz-modal-content{
  overflow: hidden;
  overflow-y: auto;
  height: 592px;

  .codevz-field{
    padding: 15px 30px 15px 15px;
  }

  a{
    &:active,
    &:focus{
      outline: none;
      @include box-shadow(none);
    }
  }

  h4{
    font-size: 13px;

    small{
      font-style: italic;
      font-weight: 400;
      color: #aaa;
    }
  }
}

.codevz-modal-title{
  position: relative;
  background-color: #fcfcfc;
  border-bottom: 1px solid #ddd;
  height: 36px;
  font-size: 16px;
  font-weight: 600;
  line-height: 36px;
  margin: 0;
  padding: 0 36px 0 16px;
}

.codevz-modal-header{
  width: 100%;
  padding: 16px 0;
  background-color: #f5f5f5;
  border-bottom: 1px solid #eee;

  select{
    display: block;
    width: 250px;
    margin: 0 auto;
  }
}

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

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

  &:hover{
    @include opacity(0.5);
  }
}

.codevz-modal-insert-wrapper{
  text-align: center;
  width: 100%;
  padding: 16px 0;
  background-color: #f5f5f5;
  border-top: 1px solid #eee;
}

.codevz-modal-overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  @include opacity(0.5);
}

//
// Shortcode UI
//
.codevz-shortcode{

  pre{
    display: none;
  }
}

.codevz-clone-button-wrapper{
  margin: 10px 0;
  text-align: center;
}

.codevz-shortcode-cloned{

  .codevz-remove-clone{
    display: block;
  }
}

.codevz-shortcode-clone{
  position: relative;
  border-top: 1px dashed #5cb85c;

  &:first-child{
    border: none;
  }

  .codevz-remove-clone{
    cursor: pointer;
    display: none;
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 1;
    padding: 5px;
    color: #ed6f6f;
    @include opacity(0.75);

    &:hover{
      @include opacity(1);
    }
  }
}

//
// Icon Dialog
//
.codevz-modal-icon{

  .codevz-icon-search{
    width: 250px;
    height: 40px;
    line-height: 40px;
  }

  a{
    display: inline-block;
    padding: 3px;
    cursor: pointer;

    .codevz-icon{
      position: relative;
      padding: 5px;
      display: inline-block;
      font-size: 14px;
      width: 30px;
      height: 26px;
      line-height: 26px;
      text-align: center;
      vertical-align: top;
      color: #555;
      border: 1px solid #ccc;
      background-color: #f7f7f7;
      @include border-radius(3px);
      @include box-shadow(0 1px 0 rgba(black, 0.08));
    }

    &:hover .codevz-icon{
      color: #fff;
      border-color: #222;
      background-color: #222;
    }
  }

  .codevz-icon-loading{
    color: #999;
    margin: 10px;
  }

  .codevz-modal-content{
    height: 638px;
  }
}

.codevz-icon-scrolling,
.codevz-shortcode-scrolling{
  overflow: hidden;
  height: 100%;

  .wp-full-overlay{
    z-index: 1;
  }
}

