.o2-file-field {
  position: relative;
  background-color: $white;
}

.o2-file-field-selected {
  display: flex;
  border: $border;
  height: 96px;
}

.o2-file-field-unselected {
  font-size: 14px;
  .o2-file-field-add {
    margin-right: 6px;
  }
}

.o2-file-field-editor {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background-color: $cream;

  display: flex;
  align-items: center;
  justify-content: center;

  span {
    font-size: 70px;
  }

  button {
    @include reset-button;
    width: 35px;
    height: 35px;
    font-size: 20px;
    position: absolute;
    top: 6px;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
    color: $black-light;

    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .o2-file-field-edit {
    background-color: $cream;
    right: 47px;
    &:hover {
      color: $blue;
      background-color: lighten($blue, 30%);
    }
  }

  .o2-file-field-remove {
    background-color: $cream;
    right: 6px;
    &:hover {
      color: $red;
      background-color: lighten($red, 30%);
    }
  }
}

.o2-file-field-datails {
  height: 100%;
  width: 100%;
  padding: 12px;
  line-height: 1;

  & > div {
    margin-bottom: 2px;
  }

  b {
    font-weight: 700;
  }

  b,
  span {
    font-size: 12px;
  }

  .o2-file-field-details-title {
    font-size: 16px;
    margin-bottom: 4px;
  }

  .o2-file-field-details-filename {
    a {
      font-weight: 500;
    }
  }
}
