.woowgallery-icon {
  width: 18px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  background: url('../images/woowgallery-icon.png') center top no-repeat;
  background-size: 18px 18px;
}

/* Helper styles */
.woowgallery-hidden {
  display: none !important;
}
.wg-textcenter {
  text-align: center;
}

.wg-clearfix::before,
.wg-clearfix::after {
  content: " ";
  display: table;
  clear: both;
  height: 0;
  overflow: hidden;
}

/** Media Library */
.upload-php .wp-filter {
  .actions > * {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
  }

  .media-toolbar-secondary > select {
    margin-top: 5px;
    margin-bottom: 5px;
  }
}

.compat-field-media_tag,
.compat-field-wg_media_copyright {

  label span::before {
    content: url("../images/woowgallery-icon.svg");
    display: inline-block;
    width: 24px;
    vertical-align: top;
    margin-right: 7px;
    margin-top: -4px;
    margin-bottom: -4px;
  }
}

/** Pager */
.woowgallery-pager {
  display: inline-flex;
  line-height: 18px;
  font-size: 12px;
  height: 22px;

  .woowgallery-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    user-select: none;
    border: 1px solid #b4b9be;
    border-radius: 3px;
    text-decoration: none;
    padding: 0 7px;
    min-width: 18px;

    &:hover {
      text-decoration: none;
    }

    &:active {
      box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    }

    &.disabled {
      pointer-events: none;
      cursor: not-allowed;
      filter: alpha(opacity=65);
      box-shadow: none;
      opacity: .65;
    }

  }

  .woowgallery-btn-group {
    display: inline-flex;

    .woowgallery-btn {
      border-radius: 0;
      margin-left: -1px;

      &:first-child {
        margin-left: 0;
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
      }

      &:last-child {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
      }
    }
  }

  .woowgallery-page-of {
    margin: 0 10px;

    .woowgallery-pager-current-page {
      padding: 1px 4px;
      margin: 0;
      height: 100%;
      width: 45px;
      text-align: center;
      font-size: 13px;
    }

    .woowgallery-btn-addon {
      border: 1px solid #ccc;
      padding: 1px 7px;
      background: #f1f1f1;

      &:first-child {
        border-top-left-radius: 3px;
        border-bottom-left-radius: 3px;
        border-right: none;
      }

      &:last-child {
        border-top-right-radius: 3px;
        border-bottom-right-radius: 3px;
        border-left: none;
      }
    }
  }

}

.woowgallery-simple-pager {
  line-height: 18px;
  padding: 10px 0;
  border-top: 1px solid #ddd;

  .woowgallery-dynamic-query & {
    border: none;
  }

  .woowgallery-label {
    display: inline-block;
    font-weight: 600;
    margin-right: 10px;
  }

  .woowgallery-btn-page {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    user-select: none;
    border: 1px solid #b4b9be;
    border-radius: 3px;
    text-decoration: none;
    padding: 4px 3px;
    min-width: 34px;
    cursor: pointer;

    &:hover {
      box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
      text-decoration: none;
    }

    &:active {
      box-shadow: inset 0 3px 5px rgba(0, 0, 0, .250);
    }

    &.current {
      box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
      background-color: #5a9dd9;
      color: #fff;
      cursor: default;
    }

    &.disabled {
      pointer-events: none;
      cursor: not-allowed;
      filter: alpha(opacity=65);
      box-shadow: none;
      opacity: .65;
    }

  }

  .woowgallery-btn-group {
    display: inline-flex;

    .woowgallery-btn-page {
      border-radius: 0;
      margin-left: -1px;
    }

    :first-child {
      margin-left: 0;
      border-top-left-radius: 3px;
      border-bottom-left-radius: 3px;
    }

    :last-child {
      border-top-right-radius: 3px;
      border-bottom-right-radius: 3px;
    }
  }
}

.xdebug-error {
  position: relative;
  z-index: 9999;
  background-color: #fff;
}
