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

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

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

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

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

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

  .csf-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;
    }
  }
}

.csf-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;
}

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

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

.csf-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);
  }
}

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

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

//
// Shortcode UI
//
.csf-shortcode{

  pre{
    display: none;
  }
}

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

.csf-shortcode-cloned{

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

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

  &:first-child{
    border: none;
  }

  .csf-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
//
.csf-modal-icon{

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

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

    .csf-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 .csf-icon{
      color: #fff;
      border-color: #222;
      background-color: #222;
    }
  }

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

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

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

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

