.blueimp-links {
  list-style-type: none;
  flex-wrap: wrap;
}

.blueimp-links li {
  position: relative;
  display: inline-block;
  vertical-align: top;
}

.blueimp-links a{
  display: inline-block;
}

.blueimp-links .delete {
  display: inline-block;
  position: absolute;
  right: 4px;
  top: 12px;
  width: 21px;
  height: 21px;
  text-align: center;
  color: rgba(255, 0, 0, 0.5);
  background: rgba(255, 182, 182, 0.6);
  border: 1px solid rgba(255, 244, 0, 0.6);
  border-radius: 20%;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.blueimp-links .delete:hover {
  color: rgba(255, 0, 0, 0.9);
  background: rgba(255, 182, 182, 1);
  border: 1px solid rgba(255, 244, 0, 1);
  border-radius: 20%;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

#file-form {
  position: relative;
  vertical-align: top;
}

.blueimp-links .img-box {
  height: 146px;
  width: 146px;
  background-color: rgb(255, 255, 255);
  border: 1px solid rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueimp-links[img-type="header"] .file-form .file-area {
  width: 500px;
}

.blueimp-links[img-type="header"] .img-box {
  width: 500px;
}

.blueimp-links[img-type="mHeader"] .file-form .file-area {
  width: 350px;
}

.blueimp-links[img-type="mHeader"] .img-box {
  width: 350px;
}

.blueimp-links a img {
  width:auto;
  height:auto;
  max-width: 100%;
  max-height: 100%;
}

.file-area {
  width: 148px;
  height: 146px;
  position: relative;
  margin: 10px;
}

.file-area input[type=file] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.file-area .file-dummy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding-left: 5px;
  padding-right: 5px;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.05);
  border: 2px dashed rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: background 0.3s ease-in-out;
}

.file-area .file-dummy .success {
  visibility: hidden;
}

.file-area input[type=file]:valid+.file-dummy .success {
  visibility: visible;
}

.file-area:hover .file-dummy {
  background: rgba(0, 0, 0, 0.1);
}

.photo-icon:before {
  -webkit-font-smoothing: antialiased;
  font-size: 5rem;
  margin-bottom: 0px;
  margin-top: 0px;
  line-height: inherit;
  color: #ccc;
  content: '\e63c';
  font-family: 'Admin Icons';
  vertical-align: middle;
  display: inline-block;
  font-weight: normal;
  overflow: hidden;
  speak: none;
  text-align: center;
}

.file-area input[type=file]:focus+.file-dummy {
  outline: 2px solid rgba(255, 255, 255, 0.4);
  outline: none;
}

.file-area input[type=file]:valid+.file-dummy {
  border-color: rgba(168, 213, 250, 1);
  background-color: rgba(168, 213, 250, 0.6);
}

.file-area input[type=file]:valid+.file-dummy .success {
  display: inline-block;
}

.file-area input[type=file]:valid+.file-dummy .default {
  display: none;
}
