.image-preview {
  overflow: hidden;
  cursor: pointer;
  background: #f4f5f6 center/24px no-repeat;
  border: 1px transparent;
  border-radius: 4px;
  width: 48px;
  height: 48px;
  text-align: center;
  transition: background-color 0.1s;

  &.image-preview__close .se-icon,
  &.image-preview__delete .se-icon {
    display: none;
  }

  &:hover {
    background-color: #ffffff;
    overflow: visible;

    &.image-preview__close .se-icon,
    &.image-preview__delete .se-icon {
      display: table-cell;
    }
  }

  &.image-preview__close .se-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    border-radius: 100px;
    background-color: #313c59;
    color: #ffffff;
    padding: 3px;
    right: -38px;
    top: -12px;
  }

  &.no-img {
    border: 1px dashed #C6CAD2;
    background-color: transparent;

    .se-icon {
      font-size: 24px;
      line-height: 48px;
      color: #444f6c;
    }

    &:hover {
      background-color: #ecf9fd;
    }
  }
}

.image-preview-medium,
.image-preview-large {
  background-size: contain;
}

.image-preview-medium {
  width: 96px;
  height: 96px;
}

.image-preview-large {
  width: 265px;
  height: 265px;
}

.image-preview__delete {
  display: table-cell;
  position: relative;

  .se-icon {
    display: table-cell;
    vertical-align: middle;
    font-size: 24px;
    line-height: 48px;
    color: #ffffff;
    z-index: 999999;
    top: 0;
    right: 0;
  }
}

.image-preview__delete:after {
  position: absolute;
  content: "";
  top:0;
  left:0;
  width:100%;
  height:100%;
  opacity:0;
  border-radius: 4px;
}

.image-preview__delete:hover:after  {
  background-color: #313c59;
  opacity: 0.9;
}

.image-preview__loader {
  width: inherit;
  height: inherit;

  &.image-preview__loader-small .loader {
    margin: 0;
  }
}
