/* checkbox,radio */
label.whcheck {
  height: 34px;
  line-height: 34px;
  font-weight: normal;
  margin: 0;
}

.whcheck-block {
  display: block;
}

.whcheck input[type="checkbox"],
.whcheck input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: auto;
  transform: translateY(4px);
  margin-right: 5px;
  background: transparent;
  border: 1px solid #d2d6de;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.whcheck input[type="checkbox"] {
  border-radius: 3px;
}

.whcheck input[type="radio"] {
  border-radius: 100%;
}

.whcheck input[type="checkbox"]:checked,
.whcheck input[type="radio"]:checked {
  background: #007bff;
  border: 1px solid #007bff;
}

.whcheck input[type="checkbox"]:checked:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  border-right: 2px solid transparent;
  border-bottom: 2px solid transparent;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 5px;
  height: 10px;
  border-color: #fff;
}

.whcheck input[type="radio"]:checked:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100%;
  width: 6px;
  height: 6px;
  background: #fff;
}

/* end */

/* error label */
label.required:after {
  content: "*";
  color: red;
  margin-left: 5px;
  vertical-align: middle;
}

label.error {
  font-size: 12px;
  font-weight: normal;
  color: #ef8f18;
  position: absolute;
  top: 25px;
  left: 1.8em;
  z-index: 9;
  background: #fff;
  margin: 0;
  padding: 0 3px;
  height: 20px;
  line-height: 20px;
  border-radius: 8px;
}

/* end */

/* help-block */
.help-block {
  font-size: 0.8em;
  display: block;
  margin-top: 5px;
  margin-bottom: 10px;
  color: #737373;
}

/* file input label */
.custom-file-input:lang(zh) ~ .custom-file-label::after {
  content: "浏览" !important;
}

.custom-file-label::after {
  content: "浏览" !important;
}

.image-preview img {
  max-width: 200px;
  max-height: 100px;
}
