/* Icons */

.icon {
  background: url(../images/sprites/icons.png) no-repeat;
  display: inline-block;
  padding: 0 !important;
}

  .icon.live-editor {
    background-position: 0 -25px;
    height: 24px;
    margin-top: -5px;
    vertical-align: middle;
    width: 24px;
  }

  .icon.media {
    height: 15px;
    margin: 0 2px;
    vertical-align: text-top;
    width: 15px;
  }

  .icon.live-editor.post-type {
    background-position: 0 -49px;
    height: 30px;
    width: 30px;
  }

span.le-media-buttons-icon:before {
  color: #ADC44F;
}


/* Buttons */

#wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media,
#wp-fullscreen-buttons #wp_fs_live_editor_media i.mce-i-live_editor_media {
  color: #ADC44F;
  font: 400 20px/1 dashicons;
}

  #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media:before,
  #wp-fullscreen-buttons #wp_fs_live_editor_media i.mce-i-live_editor_media:before {
    content: '\f104';
  }

/* Old sprite button for WordPress 3.5-3.7 */
.branch-3-5 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media,
.branch-3-6 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media,
.branch-3-7 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media {
  background-image: url(../images/sprites/icons.png);
  background-position: 2px 3px;
}

  .branch-3-5 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media:before,
  .branch-3-6 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media:before,
  .branch-3-7 #wp-fullscreen-buttons #wp_fs_live_editor_media span.mce_live_editor_media:before {
    content: '';
  }

.insert-live-editor-media.button {
  padding-left: 0.4em;
}

.live-editor-hide-add-media-buttons {}

  .live-editor-hide-add-media-buttons .insert-media.add_media.button {
    display: none;
  }


/* Modal window */

#live-editor-modal-window {}

  .media-frame-content.live-editor-media-frame-content {
    top: 47px !important;
  }

  @media screen and (min-width: 641px) {
    .media-frame-content.live-editor-media-frame-content {
      top: 56px !important;
    }
  }

  #live-editor-modal-window .media-frame .media-frame-content .media-toolbar input {
    padding: 3px;
  }

  .attachments-browser.live-editor-attachments-browser {
    height: auto;
    padding-bottom: 61px;
  }

  @media screen and (min-width: 641px) {
    .attachments-browser.live-editor-attachments-browser {
      height: 100%;
    }
  }

  .media-toolbar.live-editor-media-toolbar {
    padding: 0 5px;
    position: absolute;
      top: 0;
      left: 0;
      right: 180px;
    width: auto;
  }

    @media screen and (min-width: 641px) {
      .media-toolbar.live-editor-media-toolbar {
        padding-left: 16px;
        padding-right: 16px;
        width: auto;
      }
    }

    @media screen and (min-width: 901px) {
      .media-toolbar.live-editor-media-toolbar {
        right: 300px;
      }
    }

    .paging-input.live-editor-paging-input {
      display: none;
    }

    @media screen and (min-width: 783px) {
      .paging-input.live-editor-paging-input {
        display: inline;
      }
    }

  #live-editor-modal-window #files {
    overflow-y: auto;
    padding: 0 20px 20px;
  }

    #live-editor-modal-window #files .row {
      overflow: hidden;
    }

    #live-editor-modal-window #files .row .file {
         -moz-box-sizing: border-box;
          -ms-box-sizing: border-box;
           -o-box-sizing: border-box;
      -webkit-box-sizing: border-box;
              box-sizing: border-box;
      display: block;
      margin: 0 0.5% 20px;
      overflow: hidden;
    }

      #live-editor-modal-window #files .row .file .thumb {
        display: table;
        overflow: hidden;
        width: 100%;
        /* IE hacks */
        #position: relative;
      }

        #live-editor-modal-window #files .row .file .thumb .thumbnail {
          border: 1px solid #ddd;
             -moz-border-radius: 4px;
              -ms-border-radius: 4px;
               -o-border-radius: 4px;
          -webkit-border-radius: 4px;
                  border-radius: 4px;
          box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
          display: table-cell;
          padding: 4px;
          outline: 0;
          text-align: center;
        }

          #live-editor-modal-window #files .row .file .thumb .thumbnail img {
            display: block;
            height: auto;
            margin-right: auto;
            margin-left: auto;
            max-height: 180px;
            max-width: 260px;
            vertical-align: middle;
            width: 100%;
          }

      #live-editor-modal-window #files .row .file h3 {
        margin: 10px 0 5px;
      }

      #live-editor-modal-window #files .row .file p {
        margin: 0;
      }

  @media screen and (min-width: 1000px) {
    #live-editor-modal-window #files .row .file {
      float: left;
      width: 32%;
    }

      #live-editor-modal-window #files .row .file .thumb .thumbnail {
        height: 180px;
        margin: auto;
        vertical-align: middle;
        width: 100%;
        /* IE hacks */
        #position: absolute;
        #top: 50%;
      }
  }

  #live-editor-modal-window .media-sidebar {}

    #live-editor-modal-window .media-sidebar #collections {}

      #live-editor-modal-window .media-sidebar #collections ul {}

        #live-editor-modal-window .media-sidebar #collections ul li {
          margin-bottom: 0;
        }

          #live-editor-modal-window .media-sidebar #collections ul li label {
            display: block;
          }

          #live-editor-modal-window .media-sidebar #collections ul li ul {
            padding-left: 0;
          }

          @media screen and (min-width: 901px) {
            #live-editor-modal-window .media-sidebar #collections ul li ul {
              padding-left: 14px;
            }
          }

  #live-editor-modal-window #url-form {
    padding: 20px;
  }

  #live-editor-modal-window div.updated,
  #live-editor-modal-window div.error {
    margin: 0 0 20px 0;
  }

  #live-editor-modal-window .copyright {
    color: #999;
    font-size: 11px;
    text-align: right;
  }

    #live-editor-modal-window .copyright a {
      color: #555;
      text-decoration: none;
    }
