/* checkbox custom */
/* Base for label styling */
[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
[type="checkbox"]:not(:checked) + label,
[type="checkbox"]:checked + label {
  position: relative;
  padding-left: 1.34rem;
  cursor: pointer;
  margin-right: 8px;
  top: 1px;
}
/* checkbox aspect */
[type="checkbox"]:not(:checked) + label:before,
[type="checkbox"]:checked + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #dcdcdc;
  background: #eee;
}
[type="checkbox"]:checked + label:before {
  background-color: #223b62;
  border-color: #223b62;
}
/* checked mark aspect */
[type="checkbox"]:not(:checked) + label:after,
[type="checkbox"]:checked + label:after {
  content: "";
  background: url("/images/sub/checkbox.png") no-repeat center;
  width: 14px;
  height: 10px;
  position: absolute;
  left: 4px;
  top: 5px;
  display: inline-block;
  transition: all 0.2s;
}
/* checked mark aspect changes */
[type="checkbox"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
[type="checkbox"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}
/* disabled checkbox */
[type="checkbox"]:disabled:not(:checked) + label:before,
[type="checkbox"]:disabled:checked + label:before {
  box-shadow: none;
  border-color: #bbb;
  background-color: #ddd;
}
[type="checkbox"]:disabled:checked + label:after {
  color: #999;
}
[type="checkbox"]:disabled + label {
  color: #aaa;
}
label:hover:before {
  border: 1px solid #2b8feb !important;
}

/* radio custom */
/* Base for label styling */
[type="radio"]:not(:checked),
[type="radio"]:checked {
  position: absolute;
  left: -9999px;
}
[type="radio"]:not(:checked) + label,
[type="radio"]:checked + label {
  position: relative;
  padding-left: 1.34rem;
  cursor: pointer;
  margin-right: 8px;
  top: 1px;
}
/* radio aspect */
[type="radio"]:not(:checked) + label:before,
[type="radio"]:checked + label:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #dcdcdc;
  background: #eee;
}
[type="radio"]:checked + label:before {
  background-color: #223b62;
  border-color: #223b62;
}
/* checked mark aspect */
[type="radio"]:not(:checked) + label:after,
[type="radio"]:checked + label:after {
  content: "";
  background: url("/images/sub/checkbox.png") no-repeat center;
  width: 14px;
  height: 10px;
  position: absolute;
  left: 4px;
  top: 5px;
  display: inline-block;
  transition: all 0.2s;
}
/* checked mark aspect changes */
[type="radio"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}
[type="radio"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}
/* disabled radio */
[type="radio"]:disabled:not(:checked) + label:before,
[type="radio"]:disabled:checked + label:before {
  box-shadow: none;
  border-color: #bbb;
  background-color: #ddd;
}
[type="radio"]:disabled:checked + label:after {
  color: #999;
}
[type="radio"]:disabled + label {
  color: #aaa;
}
label:hover:before {
  border: 1px solid #2b8feb !important;
}

/* input file custom */
[type="file"] {
  position: absolute;
  left: -9999px;
}
.filebox {
  width: 80%;
  max-width: 80%;
  display: flex;
  justify-content: space-between;
}
.filebox .btn {
  width: 25%;
  font-weight: 300;
  margin: 0;
  display: inline-block;
  vertical-align: top;
  margin-left: 1.2%;
}
.filebox .file-list {
  width: 73%;
  max-width: 73%;
  border: 1px solid #c5c9d6;
  padding: 0.84em 1.5em;
  min-height: 50px;
  color: #333;
  line-height: 1em;
  height: 1em;
  border-radius: 5px;
  vertical-align: middle;
  letter-spacing: -1px;
  font-weight: 400;
  display: inline-block;
  flex-wrap: wrap;
  text-overflow: ellipsis;
  white-space: normal;
  word-wrap: normal;
  overflow: hidden;
  -webkit-line-clamp: 1;
}
.filebox .file-list span {
  max-width: 100%;
  display: inline-block;
  cursor: default;
  word-break: break-all;
  white-space: normal;
  /* line-height: 38px; */
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  height: 1em;
}
.filebox .file-list span img {
  cursor: pointer;
  vertical-align: middle;
  margin-left: 7px;
}
@media screen and (max-width: 1023.99px) {
  .filebox {
    width: 100%;
    max-width: 100%;
  }
  .filebox .file-list {
    min-height: 40px;
    padding: 0 1.5em;
    line-height: 40px;
    font-size: 1rem;
  }
}
@media screen and (max-width: 644.9px) {
  .filebox .file-list {
    width: 70%;
    max-width: 70%;
    display: inline-block;
    height: 40px;
    padding: 0 0.5em;
  }
  .filebox .file-list span {
    height: 40px;
  }
}
